|
NGSolve
4.9
|
A symbol table. More...
#include <symboltable.hpp>
Public Member Functions | |
| SymbolTable () | |
| Creates a symboltable. | |
| int | Size () const |
| number of identifiers | |
| T & | operator[] (const char *name) |
| Returns reference to element. exception for unused identifier. | |
| T & | operator[] (const string &name) |
| Returns reference to element. exception for unused identifier. | |
| const T & | operator[] (const char *name) const |
| Returns element, error if not used. | |
| const T & | operator[] (const string &name) const |
| T & | operator[] (int i) |
| Returns reference to i-th element. | |
| const T & | operator[] (int i) const |
| Returns const reference to i-th element. | |
| const char * | GetName (int i) const |
| Returns name of i-th element. | |
| void | Set (const char *name, const T &el) |
| Associates el to the string name, overrides if name is used. | |
| void | Set (const string &name, const T &el) |
| bool | Used (const char *name) const |
| Checks whether name is used. | |
| bool | Used (const string &name) const |
| void | DeleteAll () |
| Deletes symboltable. | |
| SymbolTable< T > & | operator= (const SymbolTable< T > &tab2) |
A symbol table.
The symboltable provides a mapping from string identifiers to the generic type T. The strings are copied.
1.7.6.1