![]() |
MechSys
1.0
Computing library for simulations in continuum and discrete mechanics
|
#include <maps.h>
Public Member Functions | |
void | Set (const char *Str,...) |
Set given keys and vals: Set("a b", 1,2). NOTE: vals must be int. | |
int & | operator() (char const *Key) |
int const & | operator() (char const *Key) const |
int & | operator() (String const &Key) |
int const & | operator() (String const &Key) const |
void | Del (const char *Key) |
Delete key (and value) from pair. | |
bool | HasKey (char const *Key) const |
bool | HasKey (String const &Key) const |
void | clear () |
Public Attributes | |
Array< String > | Keys |
String-Int Pair.
void SIPair::clear | ( | ) | [inline] |
void SIPair::Del | ( | const char * | Key | ) | [inline] |
Delete key (and value) from pair.
bool SIPair::HasKey | ( | char const * | Key | ) | const [inline] |
bool SIPair::HasKey | ( | String const & | Key | ) | const [inline] |
int & SIPair::operator() | ( | char const * | Key | ) | [inline] |
int const & SIPair::operator() | ( | char const * | Key | ) | const [inline] |
int& SIPair::operator() | ( | String const & | Key | ) | [inline] |
int const& SIPair::operator() | ( | String const & | Key | ) | const [inline] |
void SIPair::Set | ( | const char * | Str, |
... | |||
) | [inline] |
Set given keys and vals: Set("a b", 1,2). NOTE: vals must be int.