ACE  6.0.7
Public Types | Public Member Functions | Private Attributes
ACE_Member_Function_Command Class Reference

Defines a class template that allows us to invoke a member function using the GoF command style callback. More...

#include <Functor_T.h>

Inheritance diagram for ACE_Member_Function_Command:
Inheritance graph
[legend]
Collaboration diagram for ACE_Member_Function_Command:
Collaboration graph
[legend]

List of all members.

Public Types

typedef void(RECEIVER::* PTMF )(void)

Public Member Functions

 ACE_Member_Function_Command (RECEIVER &recvr, PTMF ptmf)
virtual ~ACE_Member_Function_Command (void)
 Virtual destructor.
virtual int execute (void *)

Private Attributes

RECEIVER & receiver_
 Object where the method resides.
PTMF ptmf_
 Method that is going to be invoked.

Detailed Description

Defines a class template that allows us to invoke a member function using the GoF command style callback.


Member Typedef Documentation

typedef void(RECEIVER::* ACE_Member_Function_Command::PTMF)(void)

Constructor & Destructor Documentation

ACE_Member_Function_Command::ACE_Member_Function_Command ( RECEIVER &  recvr,
PTMF  ptmf 
) [inline]

Con Constructor: sets the <receiver_> of the Command to recvr, and the <action_> of the Command to <action>.

ACE_Member_Function_Command::~ACE_Member_Function_Command ( void  ) [inline, virtual]

Virtual destructor.


Member Function Documentation

int ACE_Member_Function_Command::execute ( void *  ) [inline, virtual]

Invokes the method <action_> from the object <receiver_>. The parameter is ignored

Implements ACE_Command_Base.


Member Data Documentation

Method that is going to be invoked.

Object where the method resides.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines