OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::Variable Class Reference

#include "Variable.h"

Public Member Functions

 Variable ()
 
 Variable (float value)
 
 Variable (double value)
 
 Variable (int32_t value)
 
 Variable (int64_t value)
 
 Variable (bool value)
 
 Variable (const char *value)
 
 Variable (const std::string &value)
 
 Variable (std::string &&value) noexcept
 
 Variable (const complex &value)
 
 Variable (complex &&value) noexcept
 
 Variable (const Variable &other)=default
 
 Variable (Variable &&other)=default
 
Variableoperator= (const Variable &other)
 
Variableoperator= (Variable &&other) noexcept
 
void setValue (float value)
 
void setValue (double value)
 
void setValue (int32_t value)
 
void setValue (int64_t value)
 
void setValue (bool value)
 
void setValue (const char *value)
 
void setValue (const std::string &value)
 
void setValue (std::string &&value)
 
void setValue (const complex &_value)
 
void setValue (complex &&_value)
 
bool isFloat () const
 
bool isDouble () const
 
bool isInt32 () const
 
bool isInt64 () const
 
bool isBool () const
 
bool isConstCharPtr () const
 
bool isComplex () const
 
float getFloat () const
 
double getDouble () const
 
int32_t getInt32 () const
 
int64_t getInt64 () const
 
bool getBool () const
 
const char * getConstCharPtr () const
 
const complex getComplex () const
 
bool operator== (const Variable &other) const
 
bool operator> (const Variable &other) const
 
bool operator< (const Variable &other) const
 
std::string getTypeName () const
 

Constructor & Destructor Documentation

◆ Variable() [1/13]

ot::Variable::Variable ( )
inline

◆ Variable() [2/13]

ot::Variable::Variable ( float value)

◆ Variable() [3/13]

ot::Variable::Variable ( double value)

◆ Variable() [4/13]

ot::Variable::Variable ( int32_t value)

◆ Variable() [5/13]

ot::Variable::Variable ( int64_t value)

◆ Variable() [6/13]

ot::Variable::Variable ( bool value)

◆ Variable() [7/13]

ot::Variable::Variable ( const char * value)

◆ Variable() [8/13]

ot::Variable::Variable ( const std::string & value)

◆ Variable() [9/13]

ot::Variable::Variable ( std::string && value)
noexcept

◆ Variable() [10/13]

ot::Variable::Variable ( const complex & value)

◆ Variable() [11/13]

ot::Variable::Variable ( complex && value)
noexcept

◆ Variable() [12/13]

ot::Variable::Variable ( const Variable & other)
default

◆ Variable() [13/13]

ot::Variable::Variable ( Variable && other)
default

Member Function Documentation

◆ getBool()

bool ot::Variable::getBool ( ) const

◆ getComplex()

const ot::complex ot::Variable::getComplex ( ) const

◆ getConstCharPtr()

const char * ot::Variable::getConstCharPtr ( ) const

◆ getDouble()

double ot::Variable::getDouble ( ) const

◆ getFloat()

float ot::Variable::getFloat ( ) const

◆ getInt32()

int32_t ot::Variable::getInt32 ( ) const

◆ getInt64()

int64_t ot::Variable::getInt64 ( ) const

◆ getTypeName()

std::string ot::Variable::getTypeName ( ) const

◆ isBool()

bool ot::Variable::isBool ( ) const

◆ isComplex()

bool ot::Variable::isComplex ( ) const

◆ isConstCharPtr()

bool ot::Variable::isConstCharPtr ( ) const

◆ isDouble()

bool ot::Variable::isDouble ( ) const

◆ isFloat()

bool ot::Variable::isFloat ( ) const

◆ isInt32()

bool ot::Variable::isInt32 ( ) const

◆ isInt64()

bool ot::Variable::isInt64 ( ) const

◆ operator<()

bool ot::Variable::operator< ( const Variable & other) const

◆ operator=() [1/2]

ot::Variable & ot::Variable::operator= ( const Variable & other)

◆ operator=() [2/2]

ot::Variable & ot::Variable::operator= ( Variable && other)
noexcept

◆ operator==()

bool ot::Variable::operator== ( const Variable & other) const

◆ operator>()

bool ot::Variable::operator> ( const Variable & other) const

◆ setValue() [1/10]

void ot::Variable::setValue ( bool value)

◆ setValue() [2/10]

void ot::Variable::setValue ( complex && _value)

◆ setValue() [3/10]

void ot::Variable::setValue ( const char * value)

◆ setValue() [4/10]

void ot::Variable::setValue ( const complex & _value)

◆ setValue() [5/10]

void ot::Variable::setValue ( const std::string & value)

◆ setValue() [6/10]

void ot::Variable::setValue ( double value)

◆ setValue() [7/10]

void ot::Variable::setValue ( float value)

◆ setValue() [8/10]

void ot::Variable::setValue ( int32_t value)

◆ setValue() [9/10]

void ot::Variable::setValue ( int64_t value)

◆ setValue() [10/10]

void ot::Variable::setValue ( std::string && value)

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