![]() |
Trax3 3.1.0
trax track library
|
A Plug of some object can get plugged into a jack of some object, specific to a certain event. More...
#include <C:/Trend/Development/Trax3/Code/trax/Plug.h>

Public Member Functions | |
| 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 |
| Public Member Functions inherited from trax::Identified< Plug > | |
| 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 |
Protected Member Functions | |
| virtual void | Pulse (bool) noexcept |
| virtual void | Release () noexcept |
| virtual void | ConnectTo (Jack &) noexcept |
Friends | |
| class | Jack_Imp |
A Plug of some object can get plugged into a jack of some object, specific to a certain event.
The plug will receive a Pulse() call if that event occures. The pulse is always going from jack to plug. The plugs are provided by objects, too. These would take a pulse, received from a jack of another object as a trigger to perform a certain action. The Pulse() - method has no parameters! There is no meaning to a pulse and no message forewarded. All the 'meaning' of a pulse is laying in the connection of a specific plug to a specific jack.
|
pure virtualnoexcept |
Implemented in trax::Plug_Imp.
|
pure virtualnoexcept |
Get a Jack that triggers a pulse if the Plug receives a pulse.
Implemented in trax::Plug_Imp.
|
pure virtualnoexcept |
Get a Jack that triggers a pulse if the Plug receives a pulse.
This can be used to cascade several Plugs to receive the pulse from one single Jack.
Implemented in trax::Plug_Imp.
|
pure virtualnoexcept |
Every object that provides plugs will implement this interface.
Implemented in trax::Plug_Imp.
|
pure virtualnoexcept |
Is this Plug already plugged into a jack?
Implemented in trax::Plug_Imp.
|
inlineprotectedvirtualnoexcept |
Reimplemented in trax::Plug_Imp, and trax::Plug_Imp_ParentPointer< ParentType >.
|
pure virtual |
receives the tail (last element) of a Plug chain.
Plugs provide themselves a Jack so they can get cascaded. The function receives the last element in this chain.
| std::logic_error | if the connection happens to be cyclic, i.e., there is no empty jack. |
Implemented in trax::Plug_Imp.
|
pure virtual |
receives the tail (last element) of a Plug chain.
Plugs provide themselves a Jack so they can get cascaded. The function receives the last element in this chain.
| std::logic_error | if the connection happens to be cyclic, i.e., there is no empty jack. |
Implemented in trax::Plug_Imp.
|
pure virtualnoexcept |
Implemented in trax::Plug_Imp.