31 Id(
unsigned int id );
36 Id(
const std::string&
path,
const std::string& separator =
"/" );
59 static unsigned int numIds();
79 std::string
path(
const std::string& separator =
"/" )
const;
112 static Id str2Id(
const std::string& s );
119 unsigned int value()
const;
140 return (
id_ < other.
id_ );
174 static vector< Element* >&
elements();
187 return std::hash<unsigned int>()( x.
value() );
size_t operator()(const Id &x) const
void bindIdToElement(Element *e)
static void clearAllElements()
Element * element() const
Synonym for Id::operator()()
std::string path(const std::string &separator="/") const
unsigned int value() const
friend istream & operator>>(istream &s, Id &i)
bool operator!=(const Id &other) const
bool operator<(const Id &other) const
bool operator==(const Id &other) const
static vector< Element * > & elements()
static unsigned int numIds()
static bool isValid(unsigned int id)
static bool isValid(Id id)
friend ostream & operator<<(ostream &s, const Id &i)
static std::string id2str(Id id)
static Id str2Id(const std::string &s)