Honeycomb
0.1
Component-Model Framework
|
#include <Component.h>
Public Member Functions | |
template<class Com > | |
Type (const String &name, mt::identity< Com >) | |
template<class Com , class SuperCom > | |
Type (const String &name, mt::identity< Com > com, mt::identity< SuperCom >) | |
const vector< Type * > & | hierarchy () const |
Get hierarchy: this type and all supertypes. Base supertype is at front, this type is at back. More... | |
int | depOrder () const |
Get dependency order. A component type can depend only on those with a lower order. More... | |
bool | isSubtypeOf (const Id &base) const |
Returns true if this type is base or inherits from base More... | |
Public Member Functions inherited from honey::NameId | |
NameId ()=default | |
NameId (const String &name) | |
NameId (const char *name) | |
NameId (const Id &id) | |
Create with id, leaving name empty. More... | |
NameId (const String &name, const Id &id) | |
Create with name and precalculated id. More... | |
const String & | name () const |
Public Member Functions inherited from honey::Id | |
Id () | |
Id (const String &name) | |
Id (const String &name, szt hash) | |
Construct with precalculated hash. More... | |
Id (const IdLiteral &rhs) | |
Id (const Id &rhs) | |
Id (Id &&rhs) | |
Id & | operator= (const Id &rhs) |
Id & | operator= (Id &&rhs) |
Id & | operator= (const IdLiteral &rhs) |
bool | operator== (const Id &rhs) const |
bool | operator!= (const Id &rhs) const |
bool | operator< (const Id &rhs) const |
bool | operator> (const Id &rhs) const |
bool | operator<= (const Id &rhs) const |
bool | operator>= (const Id &rhs) const |
bool | operator== (const IdLiteral &rhs) const |
bool | operator!= (const IdLiteral &rhs) const |
bool | operator< (const IdLiteral &rhs) const |
bool | operator> (const IdLiteral &rhs) const |
bool | operator<= (const IdLiteral &rhs) const |
bool | operator>= (const IdLiteral &rhs) const |
const String & | name () const |
Get name string that this id represents. More... | |
szt | hash () const |
Get hashed integral value of name. More... | |
operator szt () const | |
Same as hash() More... | |
Friends | |
class | ComRegistry |
Additional Inherited Members | |
Protected Attributes inherited from honey::Id | |
String | _name |
szt | _hash |
Component type.
|
inline |
|
inline |
|
inline |
Get dependency order. A component type can depend only on those with a lower order.
|
inline |
Get hierarchy: this type and all supertypes. Base supertype is at front, this type is at back.
|
inline |
Returns true if this type is base
or inherits from base
|
friend |