![]() |
DSPatch
v.2.42
C++ Cross-Platform, Object-Oriented, Flow-Based Programming Library
|
#include <DspSignalBus.h>
Public Member Functions | |
bool | AddSignal (std::string signalName="") |
bool | SetSignal (unsigned short signalIndex, const DspSignal *newSignal) |
bool | SetSignal (std::string signalName, const DspSignal *newSignal) |
DspSignal * | GetSignal (unsigned short signalIndex) |
DspSignal * | GetSignal (std::string signalName) |
bool | FindSignal (std::string signalName, unsigned short &returnIndex) const |
bool | FindSignal (unsigned short signalIndex, unsigned short &returnIndex) const |
unsigned short | GetSignalCount () const |
void | RemoveAllSignals () |
template<class ValueType > | |
bool | SetValue (unsigned short signalIndex, const ValueType &newValue) |
template<class ValueType > | |
bool | SetValue (std::string signalName, const ValueType &newValue) |
template<class ValueType > | |
bool | GetValue (unsigned short signalIndex, ValueType &returnValue) const |
template<class ValueType > | |
bool | GetValue (std::string signalName, ValueType &returnValue) const |
void | ClearValue (unsigned short signalIndex) |
void | ClearValue (std::string signalName) |
void | ClearAllValues () |
DspSignal container.
A DspSignalBus contains DspSignals (see DspSignal). Via the Process_() method, a DspComponent receives signals into it's "inputs" DspSignalBus and provides signals to it's "outputs" DspSignalBus. Although DspSignals can be acquired from a DspSignalBus, the DspSignalBus class provides public getters and setters for manipulating it's internal DspSignal values directly, abstracting the need to retrieve and interface with the contained DspSignal objects. Likewise, signals can be added and removed from a DspSignalBus via public methods.
Definition at line 44 of file DspSignalBus.h.