DSPatch  v.2.42
C++ Cross-Platform, Object-Oriented, Flow-Based Programming Library
 All Classes Pages
Classes | Public Member Functions | Static Public Member Functions
DspRunType Class Reference

Dynamically typed variable. More...

#include <DspRunType.h>

List of all members.

Classes

class  _DspRtValue
class  _DspRtValueHolder

Public Member Functions

template<typename ValueType >
 DspRunType (const ValueType &value)
 DspRunType (const DspRunType &other)
DspRunTypeMoveTo (DspRunType &rhs)
void CopyFrom (const DspRunType &rhs)
template<typename ValueType >
DspRunTypeoperator= (const ValueType &rhs)
DspRunTypeoperator= (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)

Detailed Description

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.


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