MechSys  1.0
Computing library for simulations in continuum and discrete mechanics
Public Member Functions | Public Attributes
Dict Class Reference

#include <maps.h>

Inheritance diagram for Dict:
GUI::WxDictTable

List of all members.

Public Member Functions

 Dict ()
 Default constructor.
 Dict (Dict const &R)
 Copy constructor.
void Set (int Key, const char *Str,...)
 Set given key, keys, and vals: Set(-1, "ux uy", 1.0,2.0). NOTE: valus must be double.
void Set (int Key, SDPair const &P)
 Set given SDPair (does merge)
void SetZero (int Key, Array< String > const &keys)
 Create dictionary with all keys set to zero.
void Del (int Key)
 Delete item corresponding to Key.
SDPair const & operator() (int Key) const
SDPairoperator() (int Key)
void operator= (Dict const &R)
 Assignment operator.
void operator+= (Dict const &R)
 Used to merge keys.
bool HasKey (int Key) const
void clear ()

Public Attributes

Array< int > Keys

Detailed Description

Dictionary.


Constructor & Destructor Documentation

Dict::Dict ( ) [inline]

Default constructor.

Dict::Dict ( Dict const &  R) [inline]

Copy constructor.


Member Function Documentation

void Dict::clear ( ) [inline]
void Dict::Del ( int  Key) [inline]

Delete item corresponding to Key.

bool Dict::HasKey ( int  Key) const [inline]
SDPair const & Dict::operator() ( int  Key) const [inline]
SDPair & Dict::operator() ( int  Key) [inline]
void Dict::operator+= ( Dict const &  R) [inline]

Used to merge keys.

void Dict::operator= ( Dict const &  R) [inline]

Assignment operator.

Reimplemented in GUI::WxDictTable.

void Dict::Set ( int  Key,
const char *  Str,
  ... 
) [inline]

Set given key, keys, and vals: Set(-1, "ux uy", 1.0,2.0). NOTE: valus must be double.

void Dict::Set ( int  Key,
SDPair const &  P 
) [inline]

Set given SDPair (does merge)

void Dict::SetZero ( int  Key,
Array< String > const &  keys 
) [inline]

Create dictionary with all keys set to zero.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines