Symbols are unique objects with a name stored in a hash table. More...
#include <symbol.hh>
Public Member Functions | |
ostream & | print (ostream &fout) const |
print a symbol on a stream | |
Friends | |
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. |
Symbols are unique objects with a name stored in a hash table.
Definition at line 53 of file symbol.hh.
ostream & Symbol::print | ( | ostream & | fout | ) | const |