Honeycomb
0.1
Component-Model Framework
|
Holds both a name string and its hashed value, and unlike Id the name is never compiled out. More...
#include <Id.h>
Public Member Functions | |
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 | |
ostream & | operator<< (ostream &os, const NameId &val) |
ByteStream & | operator<< (ByteStream &os, const NameId &val) |
Named id to bytes. More... | |
ByteStream & | operator>> (ByteStream &is, NameId &val) |
Named id from bytes. More... | |
Additional Inherited Members | |
Protected Attributes inherited from honey::Id | |
String | _name |
szt | _hash |
Holds both a name string and its hashed value, and unlike Id the name is never compiled out.
|
default |
|
inline |
|
inline |
|
inlineexplicit |
Create with id, leaving name empty.
Create with name and precalculated id.
|
inline |
|
friend |
|
friend |
Named id to bytes.
|
friend |
Named id from bytes.