Vital
|
A container managing a fixed number of ModulationConnections. More...
#include <synth_types.h>
Public Member Functions | |
ModulationConnectionBank () | |
Constructs the bank and pre-allocates all modulation connection slots. | |
~ModulationConnectionBank () | |
Destroys the ModulationConnectionBank and its connections. | |
ModulationConnection * | createConnection (const std::string &from, const std::string &to) |
Creates a new modulation connection by finding an empty slot and assigning source/destination. | |
ModulationConnection * | atIndex (int index) |
Retrieves a ModulationConnection by index. | |
size_t | numConnections () |
Returns the total number of connections allocated (including unused ones). | |
A container managing a fixed number of ModulationConnections.
ModulationConnectionBank pre-allocates a fixed number of connections (kMaxModulationConnections). It provides methods to create new connections by assigning a source and destination to an available slot.
vital::ModulationConnectionBank::ModulationConnectionBank | ( | ) |
Constructs the bank and pre-allocates all modulation connection slots.
vital::ModulationConnectionBank::~ModulationConnectionBank | ( | ) |
Destroys the ModulationConnectionBank and its connections.
|
inline |
Retrieves a ModulationConnection by index.
index | The connection index (0-based). |
ModulationConnection * vital::ModulationConnectionBank::createConnection | ( | const std::string & | from, |
const std::string & | to ) |
Creates a new modulation connection by finding an empty slot and assigning source/destination.
from | The modulation source name. |
to | The destination parameter name. |
|
inline |
Returns the total number of connections allocated (including unused ones).