|
Honeycomb
0.1
Component-Model Framework
|
Base class for components. Components can only be attached to one ComObject at a time. More...
#include <Component.h>


Public Types | |
| typedef SharedPtr< Component > | Ptr |
| typedef SharedPtr< const Component > | ConstPtr |
Public Member Functions | |
| Component () | |
| virtual | ~Component () |
| virtual const ComRegistry::Type & | comType () const =0 |
| Get type of component. More... | |
| virtual void | setInstId (const Id &id) |
| Override from object, updates ComObject map. More... | |
| ComObject & | obj () const |
| Get ComObject that this component belongs to. More... | |
| bool | hasObj () const |
| Check if component is attached to a ComObject. More... | |
| ListenerList & | listeners () |
| Get listener list. More... | |
Public Member Functions inherited from honey::Object | |
| Object (const Id &id=idnull) | |
| virtual | ~Object () |
| const Id & | getInstId () const |
Public Member Functions inherited from honey::SharedObj< Object > | |
| SharedObj (Alloc &&a=Alloc()) debug_if( | |
| Construct with allocator that is called to deallocate this shared object when all references have been released. More... | |
Protected Member Functions | |
| virtual void | onComInsert () |
| Called after component is inserted into ComObj. More... | |
| virtual void | onComRemove () |
| Called before component is removed from ComObj. More... | |
Protected Member Functions inherited from honey::SharedObj< Object > | |
| void | finalize () |
| Destroys object. Called when strong reference count reaches 0. May be overridden to prevent destruction. More... | |
Static Protected Member Functions | |
| static ComRegistry::DepNode | createTypeDep () |
| Called when dep graph is built to determine component type dependencies. May be overridden by subclass. More... | |
Friends | |
| class | ComRegistry |
| class | ComObject |
Additional Inherited Members | |
Protected Attributes inherited from honey::Object | |
| Id | _instId |
Base class for components. Components can only be attached to one ComObject at a time.
| typedef SharedPtr<const Component> honey::Component::ConstPtr |
| typedef SharedPtr<Component> honey::Component::Ptr |
|
inline |
|
inlinevirtual |
|
pure virtual |
Get type of component.
|
inlinestaticprotected |
Called when dep graph is built to determine component type dependencies. May be overridden by subclass.
|
inline |
Check if component is attached to a ComObject.
|
inline |
Get listener list.
|
inlineprotectedvirtual |
Called after component is inserted into ComObj.
|
inlineprotectedvirtual |
Called before component is removed from ComObj.
|
virtual |
Override from object, updates ComObject map.
Reimplemented from honey::Object.
|
friend |
|
friend |
1.8.10