Back to index

salome-gui  6.5.0
Public Types | Public Member Functions | Private Attributes
TVoidMemFunEvent< TObject > Class Template Reference

Template class for event which calls the function without arguments and without return value. More...

#include <SALOME_Event.h>

Inheritance diagram for TVoidMemFunEvent< TObject >:
Inheritance graph
[legend]
Collaboration diagram for TVoidMemFunEvent< TObject >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef void(TObject::* TAction )()

Public Member Functions

 TVoidMemFunEvent (TObject *theObject, TAction theAction)
virtual void Execute ()

Private Attributes

TObject * myObject
TAction myAction

Detailed Description

template<class TObject>
class TVoidMemFunEvent< TObject >

Template class for event which calls the function without arguments and without return value.

Definition at line 90 of file SALOME_Event.h.


Member Typedef Documentation

template<class TObject >
typedef void(TObject::* TVoidMemFunEvent< TObject >::TAction)()

Definition at line 93 of file SALOME_Event.h.


Constructor & Destructor Documentation

template<class TObject >
TVoidMemFunEvent< TObject >::TVoidMemFunEvent ( TObject *  theObject,
TAction  theAction 
) [inline]

Definition at line 94 of file SALOME_Event.h.

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

Member Function Documentation

template<class TObject >
virtual void TVoidMemFunEvent< TObject >::Execute ( ) [inline, virtual]

Definition at line 98 of file SALOME_Event.h.

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

Member Data Documentation

template<class TObject >
TAction TVoidMemFunEvent< TObject >::myAction [private]

Definition at line 104 of file SALOME_Event.h.

template<class TObject >
TObject* TVoidMemFunEvent< TObject >::myObject [private]

Definition at line 103 of file SALOME_Event.h.


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