![]() |
Trax3 3.1.0
trax track library
|
Interface for enumerating the Plugs an object provides. More...
#include <C:/Trend/Development/Trax3/Code/trax/Plug.h>

Public Types | |
Type information for iterator implementation | |
| typedef PlugEnumerator | collection_type |
| typedef Plug | value_type |
Public Member Functions | |||||
| virtual int | CountPlugs () const =0 | ||||
GetPlug | |||||
Get one of the object's Plugs.
| |||||
| Plug & | GetPlug (int idx) | ||||
| const Plug & | GetPlug (int idx) const | ||||
Protected Member Functions | |
| PlugEnumerator (const PlugEnumerator &)=default | |
| PlugEnumerator (PlugEnumerator &&)=default | |
| PlugEnumerator & | operator= (const PlugEnumerator &)=default |
| PlugEnumerator & | operator= (PlugEnumerator &&)=default |
| virtual const Plug & | _GetPlug (int idx) const =0 |
| to be implemented for an object that provides plugs. | |
Interface for enumerating the Plugs an object provides.
The interface can be retrieved by dynamic_cast for every object that provides Plugs. There is a begin/end pair of functions defined, that can get used for iterating, e.g. in a range-for loop.
|
protectedpure virtual |
to be implemented for an object that provides plugs.
Do not rely on constness of the returned plug. The alternative would have been to implement all the GetPlug a second time for constness.
|
pure virtual |