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

A symbol table. More...

#include <symboltable.hpp>

Inheritance diagram for ngstd::SymbolTable< T >:
Inheritance graph
[legend]
Collaboration diagram for ngstd::SymbolTable< T >:
Collaboration graph
[legend]

List of all members.

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)

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: