#include <Vary.h>
Public Types | |
enum | Type { INTEGER, REAL, STRING } |
Type of variable. More... | |
Public Member Functions | |
Vary () | |
ctor | |
Vary (const Vary &o) | |
ctor | |
Vary (const int &ival) | |
ctor | |
Vary (const uint &ival) | |
ctor | |
Vary (const float &rval) | |
ctor | |
Vary (const std::string &sval) | |
ctor | |
Vary (const char *sval) | |
ctor | |
Vary (const std::vector< char > &sval) | |
ctor | |
const Type | GetType () const |
Retrieves the current type. | |
void | Clear () |
Resets the value of the variable, but not the type. | |
const Vary & | operator= (const Vary &vval) |
op= | |
const Vary & | operator= (const int &ival) |
op= | |
const Vary & | operator= (const uint &ival) |
op= | |
const Vary & | operator= (const float &rval) |
op= | |
const Vary & | operator= (const std::string &sval) |
op= | |
const Vary & | operator= (const char *sval) |
op= | |
const Vary & | operator= (const std::vector< char > &sval) |
op= | |
operator const int () const | |
conversion | |
operator const std::string & () const | |
conversion | |
operator const float () const | |
conversion | |
const int | AsInt () const |
conversion | |
const std::string & | AsString () const |
conversion | |
const float | AsFloat () const |
conversion | |
void | MakeInt () |
Changes the current type. | |
void | MakeReal () |
Changes the current type. | |
void | MakeString () |
Changes the current type. | |
const Vary & | operator+= (const Vary &var) |
Addition (for numeric) and concatenation (for string). | |
const Vary | operator+ (const Vary &var) const |
Addition (for numeric) and concatenation (for string). | |
Vary & | operator++ () |
Increment (valid only on INTEGER and REAL types). | |
Vary & | operator-- () |
Decrement (valid on all types, on strings it removes the last character (if any)). |
enum MPMA::Vary::Type |