|
Honeycomb
0.1
Component-Model Framework
|
Holds a slot that can receive signals. More...
#include <Listener.h>


Public Types | |
| typedef SharedPtr< Listener > | Ptr |
| typedef SharedPtr< const Listener > | ConstPtr |
Public Types inherited from honey::AllocatorObject< Alloc > | |
| template<class T > | |
| using | Allocator = Alloc< T > |
Public Member Functions | |
| virtual | ~Listener () |
| SlotBase & | slot () const |
| Get slot. More... | |
| const void * | obj () const |
| Get object instance for listener identification. More... | |
| const Id & | id () const |
| Get listener id. More... | |
Public Member Functions inherited from honey::SharedObj< Listener > | |
| SharedObj (Alloc &&a=Alloc()) debug_if( | |
| Construct with allocator that is called to deallocate this shared object when all references have been released. More... | |
Public Member Functions inherited from honey::AllocatorObject< Alloc > | |
| void * | operator new (szt size) |
| void * | operator new (szt, void *ptr) |
| void * | operator new (szt size, const char *srcFile, int srcLine) |
| void * | operator new[] (szt size) |
| void * | operator new[] (szt, void *ptr) |
| void * | operator new[] (szt size, const char *srcFile, int srcLine) |
| void | operator delete (void *p) |
| void | operator delete[] (void *p) |
Static Public Member Functions | |
| template<class Signal , class F > | |
| static Listener & | create (F &&f, const void *obj=nullptr, const Id &id=idnull) |
Construct with slot to receive Signal using function F. The object instance and id are used together to identify this listener. More... | |
Protected Member Functions | |
| Listener (SlotBase &slot, const void *obj, const Id &id) | |
Protected Member Functions inherited from honey::SharedObj< Listener > | |
| void | finalize () |
| Destroys object. Called when strong reference count reaches 0. May be overridden to prevent destruction. More... | |
Protected Attributes | |
| UniquePtr< SlotBase > | _slot |
| const void * | _obj |
| Id | _id |
Holds a slot that can receive signals.
| typedef SharedPtr<const Listener> honey::Listener::ConstPtr |
| typedef SharedPtr<Listener> honey::Listener::Ptr |
|
inlinevirtual |
|
inlinestatic |
Construct with slot to receive Signal using function F. The object instance and id are used together to identify this listener.
|
inline |
Get listener id.
|
inline |
Get object instance for listener identification.
|
inline |
Get slot.
|
protected |
|
protected |
1.8.10