|
ACE
6.4.2
|
Defines a class template that allows us to invoke a GOF command style callback to an object without knowing anything about the object except its type. More...
#include <Functor_T.h>


Public Member Functions | |
| ACE_Command_Callback (RECEIVER &recvr, ACTION action) | |
| virtual | ~ACE_Command_Callback (void) |
| Virtual destructor. More... | |
| virtual int | execute (void *arg=0) |
Invokes the method action_ from the object receiver_. More... | |
Public Member Functions inherited from ACE_Command_Base | |
| ACE_Command_Base (void) | |
| Default constructor. More... | |
| virtual | ~ACE_Command_Base (void) |
| Virtual destructor. More... | |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
Private Attributes | |
| RECEIVER & | receiver_ |
| Object where the method resides. More... | |
| ACTION | action_ |
| Method that is going to be invoked. More... | |
Defines a class template that allows us to invoke a GOF command style callback to an object without knowing anything about the object except its type.
This class declares an interface to execute operations, binding a RECEIVER object with an ACTION. The RECEIVER knows how to implement the operation. A class can invoke operations without knowing anything about it, or how it was implemented.
| class ACTION ACE_Command_Callback< RECEIVER, ACTION >::ACE_Command_Callback | ( | RECEIVER & | recvr, |
| ACTION | action | ||
| ) |
Constructor: sets the receiver_ of the Command to recvr, and the action_ of the Command to action.
|
virtual |
Virtual destructor.
|
virtual |
Invokes the method action_ from the object receiver_.
Implements ACE_Command_Base.
| ACE_Command_Callback< RECEIVER, ACTION >::ACE_ALLOC_HOOK_DECLARE |
|
private |
Method that is going to be invoked.
|
private |
Object where the method resides.
1.8.11