Honeycomb  0.1
Component-Model Framework
Public Member Functions | Friends | List of all members
honey::ComRegistry::Type Class Reference

Component type. More...

#include <Component.h>

Inheritance diagram for honey::ComRegistry::Type:
Inheritance graph
[legend]
Collaboration diagram for honey::ComRegistry::Type:
Collaboration graph
[legend]

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 Stringname () 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)
 
Idoperator= (const Id &rhs)
 
Idoperator= (Id &&rhs)
 
Idoperator= (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 Stringname () 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
 

Detailed Description

Component type.

Constructor & Destructor Documentation

template<class Com >
honey::ComRegistry::Type::Type ( const String name,
mt::identity< Com >   
)
inline
template<class Com , class SuperCom >
honey::ComRegistry::Type::Type ( const String name,
mt::identity< Com >  com,
mt::identity< SuperCom >   
)
inline

Member Function Documentation

int honey::ComRegistry::Type::depOrder ( ) const
inline

Get dependency order. A component type can depend only on those with a lower order.

const vector<Type*>& honey::ComRegistry::Type::hierarchy ( ) const
inline

Get hierarchy: this type and all supertypes. Base supertype is at front, this type is at back.

bool honey::ComRegistry::Type::isSubtypeOf ( const Id base) const
inline

Returns true if this type is base or inherits from base

Friends And Related Function Documentation

friend class ComRegistry
friend

The documentation for this class was generated from the following file: