diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/managed/Managed.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/core/managed/Managed.hpp b/src/core/managed/Managed.hpp index dd1a23a..48198c2 100644 --- a/src/core/managed/Managed.hpp +++ b/src/core/managed/Managed.hpp @@ -94,6 +94,14 @@ public: Manager &getManager() { return mgr; } /** + * Returns the unique identifier (UID) of this object. Valid UIDs are + * positive non-zero values. + * + * @return the unique id of the object. + */ + ManagedUid getUid() { return mgr.getUid(this); } + + /** * Acquires a reference to the object wraped in the given handle -- creates * a new Owned handle instance with this Managed instance as owner and the * given object handle as the referenced object. @@ -151,8 +159,7 @@ public: * object. The event id must be used when unregistering event handlers. */ EventId registerEvent(EventType type, EventHandler handler, - Handle<Managed> owner, - void *data = nullptr); + Handle<Managed> owner, void *data = nullptr); /** * Unregisters the event handler with the given signature. |