NGSolve  4.9
Public Member Functions
ngstd::SymbolTable< T > Class Template Reference

A symbol table. More...

#include <symboltable.hpp>

Inheritance diagram for ngstd::SymbolTable< T >:
ngstd::BaseSymbolTable

List of all members.

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)

Detailed Description

template<class T>
class ngstd::SymbolTable< T >

A symbol table.

The symboltable provides a mapping from string identifiers to the generic type T. The strings are copied.


The documentation for this class was generated from the following file: