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

Value container used to carry data between components. More...

#include <DspSignal.h>

List of all members.

Public Member Functions

 DspSignal (std::string signalName="")
template<class ValueType >
bool SetValue (const ValueType &newValue)
template<class ValueType >
bool GetValue (ValueType &returnValue) const
bool SetSignal (const DspSignal *newSignal)
void ClearValue ()
const std::type_info & GetSignalType () const
std::string GetSignalName () const

Detailed Description

Value container used to carry data between components.

DspComponents process and transfer data between each other in the form of "signals" via interconnecting wires. The DspSignal class holds a single value that can be dynamically typed at runtime. Furthermore, a DspSignal has the ability to change it's data type at any point during program execution. This is designed such that a signal bus can hold any number of different typed variables, as well as to allow for a variable to dynamically change it's type when needed -this can be useful for inputs that accept a number of different data types (E.g. Varying sample size in an audio buffer: array of byte / int / float).

Definition at line 49 of file DspSignal.h.


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