ls1-MarDyn
ls1-MarDyn molecular dynamics code
Classes | Public Types | Public Member Functions | List of all members
Expression::Value Class Reference

Classes

union  TUvalue
 

Public Types

typedef union TUvalue Tvalue
 

Public Member Functions

 Value ()
 Constructor.
 
 Value (enum Evaltype type, Tvalue value)
 Constructor. More...
 
 Value (int valInt)
 Constructor. More...
 
 Value (long valInt)
 
 Value (float valFloat)
 Constructor. More...
 
 Value (double valFloat)
 
Tvaltype getType () const
 get value type More...
 
Tvalue getValue () const
 get value More...
 
bool isInt () const
 is the value an integer value? More...
 
bool isFloat () const
 is the value an floating point value? More...
 
Tfloat getValueFloat () const
 get value as floating point number More...
 
 operator Tfloat () const
 
Tint getValueInt () const
 get value as integer number More...
 
 operator Tint () const
 
void write (std::ostream &ostrm=std::cout) const
 write value to stream More...
 
 operator std::string () const
 
bool operator== (Value const &v) const
 
bool operator> (Value const &v) const
 
bool operator>= (Value const &v) const
 
bool operator< (Value const &v) const
 
bool operator<= (Value const &v) const
 
const Value operator+ (Value const &v) const
 
const Value operator- (Value const &v) const
 
const Value operator* (Value const &v) const
 
const Value operator/ (Value const &v) const
 

Constructor & Destructor Documentation

◆ Value() [1/3]

Expression::Value::Value ( enum Evaltype  type,
Tvalue  value 
)
inline

Constructor.

parameter type Evaltype type (INT/FLOAT) parameter Tvalue Tfloat value

◆ Value() [2/3]

Expression::Value::Value ( int  valInt)
inline

Constructor.

parameter valInt integer value

◆ Value() [3/3]

Expression::Value::Value ( float  valFloat)
inline

Constructor.

parameter Tfloat floating point real value

Member Function Documentation

◆ getType()

Tvaltype Expression::Value::getType ( ) const
inline

get value type

parameter Evaltype
retval Tvaltype value type

◆ getValue()

Tvalue Expression::Value::getValue ( ) const
inline

get value

retval Tvalue value

◆ getValueFloat()

Tfloat Expression::Value::getValueFloat ( ) const
inline

get value as floating point number

retval Tfloat value

◆ getValueInt()

Tint Expression::Value::getValueInt ( ) const
inline

get value as integer number

retval Tint value

◆ isFloat()

bool Expression::Value::isFloat ( ) const
inline

is the value an floating point value?

retval bool result

◆ isInt()

bool Expression::Value::isInt ( ) const
inline

is the value an integer value?

retval bool result

◆ write()

void Expression::Value::write ( std::ostream &  ostrm = std::cout) const
inline

write value to stream

parameter std::ostrm& stream


The documentation for this class was generated from the following files: