#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 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.
1.5.9