![]() |
DSPatch v.9.7.5
|
Signal container. More...
#include <SignalBus.h>
Public Member Functions | |
NONCOPYABLE (SignalBus) | |
SignalBus (SignalBus &&) | |
void | SetSignalCount (int signalCount) |
int | GetSignalCount () const |
fast_any::any * | GetSignal (int signalIndex) |
bool | HasValue (int signalIndex) const |
template<typename ValueType > | |
ValueType * | GetValue (int signalIndex) const |
template<typename ValueType > | |
void | SetValue (int signalIndex, const ValueType &newValue) |
template<typename ValueType > | |
void | MoveValue (int signalIndex, ValueType &&newValue) |
void | SetSignal (int toSignalIndex, const fast_any::any &fromSignal) |
void | MoveSignal (int toSignalIndex, fast_any::any &fromSignal) |
void | ClearAllValues () |
const fast_any::type_info & | GetType (int signalIndex) const |
Signal container.
Components process and transfer data between each other in the form of "signals" via interconnected wires. SignalBuses are signal containers. Via the Process_() method, a Component receives signals into its "inputs" SignalBus and provides signals to its "outputs" SignalBus. The SignalBus class provides public getters and setters for manipulating its internal signal values, abstracting the need to retrieve and interface with them directly.
Signals can be dynamically typed at runtime, this means a signal has the ability to change its data type at any point during program execution. This is designed such that a SignalBus can hold any number of different typed variables, as well as to allow for a variable to dynamically change its 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 56 of file SignalBus.h.
|
inline |
Definition at line 94 of file SignalBus.h.
|
inline |
Definition at line 204 of file SignalBus.h.
|
inline |
Definition at line 109 of file SignalBus.h.
|
inline |
Definition at line 104 of file SignalBus.h.
|
inline |
Definition at line 212 of file SignalBus.h.
|
inline |
Definition at line 144 of file SignalBus.h.
|
inline |
Definition at line 131 of file SignalBus.h.
|
inline |
Definition at line 186 of file SignalBus.h.
|
inline |
Definition at line 170 of file SignalBus.h.
|
inline |
Definition at line 178 of file SignalBus.h.
|
inline |
Definition at line 99 of file SignalBus.h.
|
inline |
Definition at line 161 of file SignalBus.h.