A MultiPlug provides a variable number of actual Plugs to one input slot.
More...
#include <C:/Trend/Development/Trax3/Code/trax/Plug.h>
|
| virtual Plug & | Make (SocketRegistry *pRegistry=nullptr)=0 |
| | Creates a clone for the plug.
|
| virtual Plug & | Unplugged (SocketRegistry *pRegistry=nullptr)=0 |
| virtual void | Release (Plug &plug)=0 |
| | Tells the MultiPlug that the plug clone is no longer needed.
|
|
virtual void | Clear ()=0 |
| | Releases all the clone plugs.
|
| virtual const char * | TypeName () const noexcept=0 |
| virtual Jack * | Plugged () const noexcept=0 |
| | Is this Plug already plugged into a jack?
|
| virtual bool | IsCyclic () const noexcept=0 |
| virtual const Plug & | Tail () const =0 |
| | receives the tail (last element) of a Plug chain.
|
| virtual Plug & | Tail ()=0 |
| | receives the tail (last element) of a Plug chain.
|
| virtual Jack & | JackOnPulse () noexcept=0 |
| | Get a Jack that triggers a pulse if the Plug receives a pulse.
|
| virtual const Jack & | JackOnPulse () const noexcept=0 |
| | Get a Jack that triggers a pulse if the Plug receives a pulse.
|
| virtual PlugEnumerator & | Parent () const noexcept=0 |
|
virtual void | Remove () noexcept=0 |
| virtual const std::string & | Reference (const std::string &name) const=0 |
| | Gets a reference that was set for this object by name.
|
|
virtual const std::vector< char const * > & | ReferenceNames (const std::string &namePart) const=0 |
| | Searches for all reference names that countain namePart as substring in the name.
|
| virtual IDType | ID () const noexcept=0 |
|
| Identified (const Identified &)=delete |
|
Identified & | operator= (const Identified &)=delete |
| virtual int | CountPlugs () const =0 |
|
Plug & | GetPlug (int idx) |
|
const Plug & | GetPlug (int idx) const |
|
| virtual void | Release () noexcept |
| virtual void | Pulse (bool) noexcept |
|
virtual void | ConnectTo (Jack &) noexcept |
|
| 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.
|
|
|
typedef PlugEnumerator | collection_type |
|
typedef Plug | value_type |
A MultiPlug provides a variable number of actual Plugs to one input slot.
If a clone plug gets pulsed it will pulse the base plug and thereby the target object.
◆ Make()
Creates a clone for the plug.
- Parameters
-
| pRegistry | If not nullptr, the function registers a plug clone |
- Returns
- A reference to the newly created plug.
◆ Release() [1/2]
| virtual void trax::Plug::Release |
( |
| ) |
|
|
inlineprotectedvirtualnoexcept |
◆ Release() [2/2]
| virtual void trax::MultiPlug::Release |
( |
Plug & | plug | ) |
|
|
pure virtual |
Tells the MultiPlug that the plug clone is no longer needed.
This will invalidate the index assignment to all plug clones.
◆ Unplugged()
- Returns
- The base plug if it is free, otherwise a clone is created and returned.
- Parameters
-
| pRegistry | If not nullptr, the function registers a plug clone |
The documentation for this struct was generated from the following file:
- C:/Trend/Development/Trax3/Code/trax/Plug.h