Back to index

salome-gui  6.5.0
Public Types | Public Member Functions | Private Attributes
TVoidMemFun1ArgEvent< TObject, TArg, TStoreArg > Class Template Reference

Template class for event which calls the function with one argument and without return value. More...

#include <SALOME_Event.h>

Inheritance diagram for TVoidMemFun1ArgEvent< TObject, TArg, TStoreArg >:
Inheritance graph
[legend]
Collaboration diagram for TVoidMemFun1ArgEvent< TObject, TArg, TStoreArg >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef void(TObject::* TAction )(TArg)

Public Member Functions

 TVoidMemFun1ArgEvent (TObject *theObject, TAction theAction, TArg theArg)
virtual void Execute ()

Private Attributes

TObject * myObject
TAction myAction
TStoreArg myArg

Detailed Description

template<class TObject, typename TArg, typename TStoreArg = TArg>
class TVoidMemFun1ArgEvent< TObject, TArg, TStoreArg >

Template class for event which calls the function with one argument and without return value.

Definition at line 132 of file SALOME_Event.h.


Member Typedef Documentation

template<class TObject , typename TArg , typename TStoreArg = TArg>
typedef void(TObject::* TVoidMemFun1ArgEvent< TObject, TArg, TStoreArg >::TAction)(TArg)

Definition at line 135 of file SALOME_Event.h.


Constructor & Destructor Documentation

template<class TObject , typename TArg , typename TStoreArg = TArg>
TVoidMemFun1ArgEvent< TObject, TArg, TStoreArg >::TVoidMemFun1ArgEvent ( TObject *  theObject,
TAction  theAction,
TArg  theArg 
) [inline]

Definition at line 136 of file SALOME_Event.h.

                                                                          :
    myObject(theObject),
    myAction(theAction),
    myArg(theArg)
  {}

Member Function Documentation

template<class TObject , typename TArg , typename TStoreArg = TArg>
virtual void TVoidMemFun1ArgEvent< TObject, TArg, TStoreArg >::Execute ( ) [inline, virtual]

Definition at line 141 of file SALOME_Event.h.

  {
    (myObject->*myAction)(myArg);
  }

Member Data Documentation

template<class TObject , typename TArg , typename TStoreArg = TArg>
TAction TVoidMemFun1ArgEvent< TObject, TArg, TStoreArg >::myAction [private]

Definition at line 147 of file SALOME_Event.h.

template<class TObject , typename TArg , typename TStoreArg = TArg>
TStoreArg TVoidMemFun1ArgEvent< TObject, TArg, TStoreArg >::myArg [private]

Definition at line 148 of file SALOME_Event.h.

template<class TObject , typename TArg , typename TStoreArg = TArg>
TObject* TVoidMemFun1ArgEvent< TObject, TArg, TStoreArg >::myObject [private]

Definition at line 146 of file SALOME_Event.h.


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