Public Types | Public Member Functions

MPMA::Vary Class Reference

A variable that can have eithar an integral, real, or string type. It can convert itself between the different types. More...

#include <Vary.h>

Inherited by MPMA::VaryString.

List of all members.

Public Types

enum  Type { INTEGER, REAL, STRING }
 

Type of variable.

More...

Public Member Functions

 Vary ()
 ctor
 Vary (const Vary &o)
 ctor
 Vary (const sint64 &ival)
 ctor
 Vary (const uint64 &ival)
 ctor
 Vary (const sint32 &ival)
 ctor
 Vary (const uint32 &ival)
 ctor
 Vary (const sint16 &ival)
 ctor
 Vary (const uint16 &ival)
 ctor
 Vary (const sint8 &ival)
 ctor
 Vary (const uint8 &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
 Vary (const size_t &ival)
 ctor
const Type GetType () const
 Retrieves the current type.
void Clear ()
 Resets the value of the variable, but not the type.
const Varyoperator= (const Vary &vval)
 op=
const Varyoperator= (const sint64 &ival)
 op=
const Varyoperator= (const uint64 &ival)
 op=
const Varyoperator= (const float &rval)
 op=
const Varyoperator= (const std::string &sval)
 op=
const Varyoperator= (const char *sval)
 op=
const Varyoperator= (const std::vector< char > &sval)
 op=
 operator const sint64 () const
 conversion
 operator const std::string & () const
 conversion
 operator const float () const
 conversion
const sint64 AsInt () const
 conversion
const std::string & AsString () const
 conversion
const float AsFloat () const
 conversion
const char * c_str () const
 Gets a c string that represents this variable.
void MakeInt ()
 Changes the current type.
void MakeReal ()
 Changes the current type.
void MakeString ()
 Changes the current type.
const Varyoperator+= (const Vary &var)
 Addition (for numeric) and concatenation (for string).
const Vary operator+ (const Vary &var) const
 Addition (for numeric) and concatenation (for string).
Varyoperator++ ()
 Increment (valid only on INTEGER and REAL types).
Varyoperator-- ()
 Decrement (valid on all types, on strings it removes the last character (if any)).
 Vary (Vary &&o)
const Varyoperator= (Vary &&o)

Detailed Description

A variable that can have eithar an integral, real, or string type. It can convert itself between the different types.


Member Enumeration Documentation

Type of variable.

Enumerator:
INTEGER 

signed integer

REAL 

floating point type

STRING 

character string


Constructor & Destructor Documentation

MPMA::Vary::Vary ( Vary &&  o  )  [inline]
Parameters:
o move constructor

Member Function Documentation

const Vary& MPMA::Vary::operator= ( Vary &&  o  )  [inline]
Parameters:
o move assignment operator

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