Version: 9.12.0
TMemFun2ArgEvent< TObject, TRes, TArg, TArg1, TStoreArg, TStoreArg1 > Class Template Reference

Template class for event which calls the function with two arguments and returning result. More...

#include <SALOME_Event.h>

Inheritance diagram for TMemFun2ArgEvent< TObject, TRes, TArg, TArg1, TStoreArg, TStoreArg1 >:
Inheritance graph

Public Types

typedef TRes TResult
 
typedef TResult(TObject::* TAction) (TArg, TArg1)
 

Public Member Functions

 TMemFun2ArgEvent (TObject *theObject, TAction theAction, TArg theArg, TArg1 theArg1, TResult theResult=TResult())
 
virtual void Execute ()
 This method should be redefined in the successor classes to do real work. More...
 
- Public Member Functions inherited from SALOME_Event
 SALOME_Event ()
 Constructor. More...
 
virtual ~SALOME_Event ()
 Destructor. More...
 
void ExecutePostedEvent ()
 This method should be called by the main GUI thread in order to execute the code specific for this event and finally to inform the calling thread that the event has been processed waking it up with help of the semaphore . More...
 
void process ()
 Post the event and wait for its completion. process() should be called from a secondary thread only. More...
 

Public Attributes

TResult myResult
 

Private Attributes

TObject * myObject
 
TAction myAction
 
TStoreArg myArg
 
TStoreArg1 myArg1
 

Additional Inherited Members

- Static Public Member Functions inherited from SALOME_Event
static bool IsSessionThread ()
 Check if the processing is in the main application thread. More...
 
- Protected Member Functions inherited from SALOME_Event
void processed ()
 Use this method to signal that this event has been processed. More...
 
- Static Protected Member Functions inherited from SALOME_Event
static void GetSessionThread ()
 Initialize event mechanism. More...
 

Detailed Description

template<class TObject, typename TRes, typename TArg, typename TArg1, typename TStoreArg = TArg, typename TStoreArg1 = TArg1>
class TMemFun2ArgEvent< TObject, TRes, TArg, TArg1, TStoreArg, TStoreArg1 >

Template class for event which calls the function with two arguments and returning result.

Member Typedef Documentation

◆ TAction

template<class TObject , typename TRes , typename TArg , typename TArg1 , typename TStoreArg = TArg, typename TStoreArg1 = TArg1>
typedef TResult(TObject::* TMemFun2ArgEvent< TObject, TRes, TArg, TArg1, TStoreArg, TStoreArg1 >::TAction) (TArg, TArg1)

◆ TResult

template<class TObject , typename TRes , typename TArg , typename TArg1 , typename TStoreArg = TArg, typename TStoreArg1 = TArg1>
typedef TRes TMemFun2ArgEvent< TObject, TRes, TArg, TArg1, TStoreArg, TStoreArg1 >::TResult

Constructor & Destructor Documentation

◆ TMemFun2ArgEvent()

template<class TObject , typename TRes , typename TArg , typename TArg1 , typename TStoreArg = TArg, typename TStoreArg1 = TArg1>
TMemFun2ArgEvent< TObject, TRes, TArg, TArg1, TStoreArg, TStoreArg1 >::TMemFun2ArgEvent ( TObject *  theObject,
TAction  theAction,
TArg  theArg,
TArg1  theArg1,
TResult  theResult = TResult() 
)
inline

Member Function Documentation

◆ Execute()

template<class TObject , typename TRes , typename TArg , typename TArg1 , typename TStoreArg = TArg, typename TStoreArg1 = TArg1>
virtual void TMemFun2ArgEvent< TObject, TRes, TArg, TArg1, TStoreArg, TStoreArg1 >::Execute ( )
inlinevirtual

Member Data Documentation

◆ myAction

template<class TObject , typename TRes , typename TArg , typename TArg1 , typename TStoreArg = TArg, typename TStoreArg1 = TArg1>
TAction TMemFun2ArgEvent< TObject, TRes, TArg, TArg1, TStoreArg, TStoreArg1 >::myAction
private

◆ myArg

template<class TObject , typename TRes , typename TArg , typename TArg1 , typename TStoreArg = TArg, typename TStoreArg1 = TArg1>
TStoreArg TMemFun2ArgEvent< TObject, TRes, TArg, TArg1, TStoreArg, TStoreArg1 >::myArg
private

◆ myArg1

template<class TObject , typename TRes , typename TArg , typename TArg1 , typename TStoreArg = TArg, typename TStoreArg1 = TArg1>
TStoreArg1 TMemFun2ArgEvent< TObject, TRes, TArg, TArg1, TStoreArg, TStoreArg1 >::myArg1
private

◆ myObject

template<class TObject , typename TRes , typename TArg , typename TArg1 , typename TStoreArg = TArg, typename TStoreArg1 = TArg1>
TObject* TMemFun2ArgEvent< TObject, TRes, TArg, TArg1, TStoreArg, TStoreArg1 >::myObject
private

◆ myResult

template<class TObject , typename TRes , typename TArg , typename TArg1 , typename TStoreArg = TArg, typename TStoreArg1 = TArg1>
TResult TMemFun2ArgEvent< TObject, TRes, TArg, TArg1, TStoreArg, TStoreArg1 >::myResult

The documentation for this class was generated from the following file: