|
NGSolve
5.3
|
A symbol table. More...
#include <symboltable.hpp>


Public Member Functions | |
| SymbolTable () | |
| Creates a symboltable. | |
| SymbolTable (const SymbolTable &tab2) | |
| SymbolTable (SymbolTable &&tab2) | |
| int | Size () const |
| number of identifiers | |
| T & | operator[] (const string &name) |
| Returns reference to element. exception for unused identifier. | |
| 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 string & | GetName (int i) const |
| Returns name of i-th element. | |
| void | Set (const string &name, const T &el) |
| Associates el to the string name, overrides if 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