A library to create and manipulate symbols with a unique name. More...
#include <string>
Go to the source code of this file.
Classes | |
class | Symbol |
Symbols are unique objects with a name stored in a hash table. More... | |
Functions | |
Symbol * | symbol (const char *str) |
Returns (and creates if new) the symbol of name str . | |
Symbol * | symbol (const string &str) |
Returns (and creates if new) the symbol of name str . | |
Symbol * | unique (const char *str) |
Returns a new unique symbol of name strxxx. | |
const char * | name (Symbol *sym) |
Returns the name of a symbol. | |
void * | getUserData (Symbol *sym) |
Returns user data. | |
void | setUserData (Symbol *sym, void *d) |
Set user data. |
A library to create and manipulate symbols with a unique name.
A library of functions to create and manipulate symbols with a unique name.
API:
Properties:
If p and q are two symbols then : p != q <=> name(p) != name(q)
Definition in file symbol.hh.