OpenWalnut
1.4.0
|
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. More... | |
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. More... | |
WDisconnectCombiner (boost::shared_ptr< WModuleConnector > srcConnector, boost::shared_ptr< WModuleConnector > targetConnector) | |
Creates a combiner which disconnects the specified connection. More... | |
virtual | ~WDisconnectCombiner () |
Destructor. More... | |
virtual void | apply () |
Disconnects the specified connection. More... | |
![]() | |
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. More... | |
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. More... | |
virtual | ~WModuleOneToOneCombiner () |
Destructor. More... | |
boost::shared_ptr< WModule > | getSrcModule () const |
Gets the source module. More... | |
std::string | getSrcConnector () const |
The output connector of m_srcModule to connect with m_targetConnector. More... | |
boost::shared_ptr< WModule > | getTargetModule () const |
The module/prototype to connect with m_srcModule. More... | |
std::string | getTargetConnector () const |
The input connector the target module to connect with m_srcConnector. More... | |
![]() | |
WModuleCombiner (boost::shared_ptr< WModuleContainer > target) | |
Creates an empty combiner. More... | |
WModuleCombiner () | |
Creates an empty combiner. More... | |
virtual | ~WModuleCombiner () |
Destructor. More... | |
virtual void | run () |
Run thread and call apply(). More... | |
![]() | |
WThreadedRunner () | |
Default constructor. More... | |
virtual | ~WThreadedRunner () |
Destructor. More... | |
void | run (THREADFUNCTION f) |
Run thread. More... | |
void | wait (bool requestFinish=false) |
Wait for the thread to be finished. More... | |
virtual void | requestStop () |
This method's purpose is to request a stop without waiting for it. More... | |
virtual boost::signals2::connection | subscribeSignal (THREAD_SIGNAL signal, t_ThreadErrorSignalHandlerType notifier) |
Connects a specified notify function with a signal this thread instance is offering. More... | |
const WBoolFlag & | isCrashed () const |
Checks whether this thread has been crashed. More... | |
const std::string & | getCrashMessage () const |
Get the message of the exception finally causing the crash. More... | |
void | setThreadName (std::string name) |
Set the name of the thread. More... | |
std::string | getThreadName () const |
Returns the current thread name. More... | |
Additional Inherited Members | |
![]() | |
typedef boost::function< void(void) > | THREADFUNCTION |
Type used for simple thread functions. More... | |
![]() | |
static void | setThisThreadName (std::string name) |
Static function to set the name of the calling thread. More... | |
![]() | |
virtual void | threadMain () |
Function that has to be overwritten for execution. More... | |
![]() | |
boost::shared_ptr< WModule > | m_srcModule |
The source module to connect with the target. More... | |
std::string | m_srcConnector |
The output connector of m_srcModule to connect with m_targetConnector. More... | |
boost::shared_ptr< WModule > | m_targetModule |
The module/prototype to connect with m_srcMdodule. More... | |
std::string | m_targetConnector |
The input connector the target module to connect with m_srcConnector. More... | |
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.