OpenWalnut
1.2.5
|
Combiner which disconnects the specified connection. More...
#include <WDisconnectCombiner.h>
Public Member Functions | |
WDisconnectCombiner (boost::shared_ptr< WModuleContainer > target, boost::shared_ptr< WModule > srcModule, std::string srcConnector, boost::shared_ptr< WModule > targetModule, std::string targetConnector) | |
Creates a combiner which disconnects the specified connection. | |
WDisconnectCombiner (boost::shared_ptr< WModule > srcModule, std::string srcConnector, boost::shared_ptr< WModule > targetModule, std::string targetConnector) | |
Creates a combiner which disconnects the specified connection. | |
WDisconnectCombiner (boost::shared_ptr< WModuleConnector > srcConnector, boost::shared_ptr< WModuleConnector > targetConnector) | |
Creates a combiner which disconnects the specified connection. | |
virtual | ~WDisconnectCombiner () |
Destructor. | |
virtual void | apply () |
Disconnects the specified connection. | |
![]() | |
WModuleOneToOneCombiner (boost::shared_ptr< WModuleContainer > target, boost::shared_ptr< WModule > srcModule, std::string srcConnector, boost::shared_ptr< WModule > targetModule, std::string targetConnector) | |
Creates a combiner which sets up the specified modules and prototype combination. | |
WModuleOneToOneCombiner (boost::shared_ptr< WModule > srcModule, std::string srcConnector, boost::shared_ptr< WModule > targetModule, std::string targetConnector) | |
Creates a combiner which sets up the specified modules and prototype combination. | |
virtual | ~WModuleOneToOneCombiner () |
Destructor. | |
boost::shared_ptr< WModule > | getSrcModule () const |
Gets the source module. | |
std::string | getSrcConnector () const |
The output connector of m_srcModule to connect with m_targetConnector. | |
boost::shared_ptr< WModule > | getTargetModule () const |
The module/prototype to connect with m_srcModule. | |
std::string | getTargetConnector () const |
The input connector the target module to connect with m_srcConnector. | |
![]() | |
WModuleCombiner (boost::shared_ptr< WModuleContainer > target) | |
Creates an empty combiner. | |
WModuleCombiner () | |
Creates an empty combiner. | |
virtual | ~WModuleCombiner () |
Destructor. | |
virtual void | run () |
Run thread and call apply(). | |
![]() | |
WThreadedRunner () | |
Default constructor. | |
virtual | ~WThreadedRunner () |
Destructor. | |
void | run (THREADFUNCTION f) |
Run thread. | |
void | wait (bool requestFinish=false) |
Wait for the thread to be finished. | |
virtual void | requestStop () |
This method's purpose is to request a stop without waiting for it. |
Additional Inherited Members | |
![]() | |
boost::shared_ptr< WModule > | m_srcModule |
The source module to connect with the target. | |
std::string | m_srcConnector |
The output connector of m_srcModule to connect with m_targetConnector. | |
boost::shared_ptr< WModule > | m_targetModule |
The module/prototype to connect with m_srcMdodule. | |
std::string | m_targetConnector |
The input connector the target module to connect with m_srcConnector. | |
![]() | |
boost::shared_ptr < WModuleContainer > | m_container |
The module container to use for the modules. | |
![]() | |
boost::thread | m_thread |
Thread instance. | |
WBoolFlag | m_shutdownFlag |
Condition getting fired whenever the thread should quit. |
Combiner which disconnects the specified connection.
Definition at line 46 of file WDisconnectCombiner.h.
WDisconnectCombiner::WDisconnectCombiner | ( | boost::shared_ptr< WModuleContainer > | target, |
boost::shared_ptr< WModule > | srcModule, | ||
std::string | srcConnector, | ||
boost::shared_ptr< WModule > | targetModule, | ||
std::string | targetConnector | ||
) |
Creates a combiner which disconnects the specified connection.
If the specified connection does not exist (anymore), nothing will happen.
target | the target container |
srcModule | the module whose connector should be disconnected |
srcConnector | the srcModule connector to disconnect |
targetModule | the module whose connector should be disconnected from srcConnector |
targetConnector | the targetModule connector to disconnect. |
Definition at line 29 of file WDisconnectCombiner.cpp.
WDisconnectCombiner::WDisconnectCombiner | ( | boost::shared_ptr< WModule > | srcModule, |
std::string | srcConnector, | ||
boost::shared_ptr< WModule > | targetModule, | ||
std::string | targetConnector | ||
) |
Creates a combiner which disconnects the specified connection.
If the specified connection does not exist (anymore), nothing will happen.
srcModule | the module whose connector should be disconnected |
srcConnector | the srcModule connector to disconnect |
targetModule | the module whose connector should be disconnected from srcConnector |
targetConnector | the targetModule connector to disconnect. |
Definition at line 36 of file WDisconnectCombiner.cpp.
WDisconnectCombiner::WDisconnectCombiner | ( | boost::shared_ptr< WModuleConnector > | srcConnector, |
boost::shared_ptr< WModuleConnector > | targetConnector | ||
) |
Creates a combiner which disconnects the specified connection.
If the specified connection does not exist (anymore), nothing will happen.
srcConnector | connector 1 |
targetConnector | connector 2 |
Definition at line 42 of file WDisconnectCombiner.cpp.
|
virtual |
Destructor.
Definition at line 48 of file WDisconnectCombiner.cpp.
|
virtual |
Disconnects the specified connection.
Implements WModuleOneToOneCombiner.
Definition at line 53 of file WDisconnectCombiner.cpp.
References WModuleOneToOneCombiner::m_srcConnector, WModuleOneToOneCombiner::m_srcModule, WModuleOneToOneCombiner::m_targetConnector, and WModuleOneToOneCombiner::m_targetModule.