|
void | resetInputToDefault () |
| resets the selected input to the default.
|
|
void | resetOutputToDefault () |
| resets the selected output to the default.
|
|
Patchable & | in (const char *tag) |
| sets the selected input to the one tagged with "tag", if tag is a valid string, and returns this Patchable ready to be patched. More...
|
|
Patchable & | out (const char *tag) |
| sets the selected output to the one tagged with "tag", if tag is a valid string, and returns this Patchable ready to be patched. More...
|
|
void | disconnectIn () |
| disconnects all the outputs connected to the selected input, then resets the selected input to the default.
|
|
void | disconnectOut () |
| disconnects all the inputs connected to the selected output, then resets the selected output to the default.
|
|
void | disconnectAll () |
| disconnects all the inputs and outputs to their connected outputs and inputs. Also resets the selected input and output to the default.
|
|
InputNode & | getSelectedInput () |
| returns the selected input, you can patch a Patchable or OutputNode to it with the >> operator.
|
|
OutputNode & | getSelectedOutput () |
| returns the selected output, you can patch it to another Patchable or InputNode with the >> operator.
|
|
std::vector< std::string > | getInputsList () |
| returns a vector of the valid input tags
|
|
std::vector< std::string > | getOutputsList () |
| returns a vector of the valid input tags
|
|
Abstract class for implementing Units and Modules.
Patchable is a base class that rapresent everything that has in_ and out_ methods and can be patched with the >> operator. It is a superclass of Unit and it can be used as superclass to implement modules ( classes made from pre-patched Units )
sets the selected input to the one tagged with "tag", if tag is a valid string, and returns this Patchable ready to be patched.
- Parameters
-
[in] | tag | tag of input to select |
sets the selected input to the one tagged with "tag", if tag is a valid string, and returns this Patchable ready to be patched. If an invalid tag is given the selected input is set to a dummy input that will invalidate the next >> operation, a message will be sent to std::cout and an assert will be raised if you are debugging.
sets the selected output to the one tagged with "tag", if tag is a valid string, and returns this Patchable ready to be patched.
- Parameters
-
[in] | tag | tag of output to select |
sets the selected output to the one tagged with "tag", if tag is a valid string, and returns this Patchable ready to be patched. If an invalid tag is given the selected input is set to a dummy output that will invalidate the next >> operation, a message will be sent to std::cout and an assert will be raised if you are debugging.