MBDyn-1.7.3
|
#include <table.h>
Classes | |
class | ErrNameAlreadyDefined |
Public Types | |
typedef std::map< std::string, NamedValue * > | VM |
Public Member Functions | |
Table (bool bSetConstants) | |
virtual | ~Table (void) |
Var * | Put (const std::string &name, const TypedValue &v) |
const NamedValue * | Put (NamedValue *p) |
NamedValue * | Get (const std::string &name) const |
VM::const_iterator | begin (void) const |
VM::const_iterator | end (void) const |
Private Attributes | |
VM | vm |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Table &T) |
typedef std::map<std::string, NamedValue *> Table::VM |
Table::Table | ( | bool | bSetConstants | ) |
Definition at line 82 of file table.cc.
References consts, DEBUGCOUT, MBDYN_EXCEPT_ARGS, tmp_sym::name, Put(), TypedValue::SetConst(), and tmp_sym::val.
|
virtual |
|
inline |
|
inline |
NamedValue * Table::Get | ( | const std::string & | name | ) | const |
Definition at line 150 of file table.cc.
References vm.
Referenced by DriveHandler::DriveHandler(), MathParser::expr(), GetEnviron(), MathParser::InsertSym(), Put(), MathParser::readplugin(), and MathParser::stmt().
Var * Table::Put | ( | const std::string & | name, |
const TypedValue & | v | ||
) |
Definition at line 110 of file table.cc.
References Get(), MBDYN_EXCEPT_ARGS, and vm.
Referenced by DriveHandler::DriveHandler(), GetEnviron(), MathParser::InsertSym(), MathParser::readplugin(), MathParser::stmt(), and Table().
const NamedValue * Table::Put | ( | NamedValue * | p | ) |
Definition at line 131 of file table.cc.
References Get(), NamedValue::GetName(), MBDYN_EXCEPT_ARGS, and vm.
|
friend |
|
private |