Input class public functions

int connectionQ(int index);
Returns true (1) if there is a signal connected at index, otherwise will return false (0) if index is invalid or there is a NULL signal stored at index.
int getSize(void);
returns the allocated size of the input array.
Signal* insert(Signal& aSignal, int index);
Signal* insert(Signal* aSignal, int index);
Will insert a Signal pointer into the input array at index. The default value of index is -1. If the index is less than 0, then the signal pointer will be added to the first empty element in the input array, otherwise it will be appended to the array. If an index greater than the size of the array is specified, then the array will grow, and the intervening elements will be set to NULL.
sampleType operator[](int index);
Returns the current input signal value. Returns 0 if no signal connected at index.
void printChannels(void);
Prints the input channel selectors for each input signal to standard error.
Signal* remove(int index);
default value index = -1. If index is a valid index for the input array, then the element at that index in the input array will be removed. When the element is removed, its erased value is returned. If an invalid element index is given, then all elements in the array will be removed, and a NULL will be returned. The default value of index is -1 so that remove() by itself will remove all elements from the input array.
int remove(Signal& aSignal);
int remove(Signal* aSignal);
Removes the first connection to aSignal that is found and returns 1. If aSignal is not found in the inputs, then return a 0;
sampleType setDefault(int index, sampleType aNewDefault);
If no signal is connected at index, then Inputs[index] will return aNewDefault value.
Signal* signal(int index);
Returns a pointer to the signal connected at index. Returns NULL if none, or an invalid index.
void tick(long tickNumber);
updates all input signals. If tickNumber is equal to the input signal's stored tickNumber, then that input signal will ignore the tick.