Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TMemFun1ArgEvent< TObject, TRes, TArg, TStoreArg > Class Template Reference

Template class for event which calls the function with one argument and returning result.

#include <SALOME_Event.h>

Inheritance diagram for TMemFun1ArgEvent< TObject, TRes, TArg, TStoreArg >:
Inheritance graph

Public Types

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

Public Member Functions

 TMemFun1ArgEvent (TObject *theObject, TAction theAction, TArg theArg, 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
 

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...
 

Member Typedef Documentation

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

template<class TObject , typename TRes , typename TArg , typename TStoreArg = TArg>
TAction TMemFun1ArgEvent< TObject, TRes, TArg, TStoreArg >::myAction
private
template<class TObject , typename TRes , typename TArg , typename TStoreArg = TArg>
TStoreArg TMemFun1ArgEvent< TObject, TRes, TArg, TStoreArg >::myArg
private
template<class TObject , typename TRes , typename TArg , typename TStoreArg = TArg>
TObject* TMemFun1ArgEvent< TObject, TRes, TArg, TStoreArg >::myObject
private
template<class TObject , typename TRes , typename TArg , typename TStoreArg = TArg>
TResult TMemFun1ArgEvent< TObject, TRes, TArg, TStoreArg >::myResult

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