![]() |
DSPatch
v.2.42
C++ Cross-Platform, Object-Oriented, Flow-Based Programming Library
|
Dynamically typed variable. More...
#include <DspRunType.h>
Classes | |
class | _DspRtValue |
class | _DspRtValueHolder |
Public Member Functions | |
template<typename ValueType > | |
DspRunType (const ValueType &value) | |
DspRunType (const DspRunType &other) | |
DspRunType & | MoveTo (DspRunType &rhs) |
void | CopyFrom (const DspRunType &rhs) |
template<typename ValueType > | |
DspRunType & | operator= (const ValueType &rhs) |
DspRunType & | operator= (DspRunType rhs) |
bool | IsEmpty () const |
const std::type_info & | GetType () const |
Static Public Member Functions | |
template<typename ValueType > | |
static ValueType * | RunTypeCast (DspRunType *operand) |
template<typename ValueType > | |
static const ValueType * | RunTypeCast (const DspRunType *operand) |
Dynamically typed variable.
DspRunType holds a variable that can be dynamically typed at run-time (hence the name). The DspRunType class makes use of an internal template class and public template methods to allow users to get and set the contained variable as any type they wish. A DspRunType object also has the ability to change type at any point during program execution. Built-in typecasting and error checking (via the RunTypeCast() method) prevents critical runtime errors from occurring when signal types are mismatched.
Definition at line 45 of file DspRunType.h.