Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GtpCallback Class Template Reference

#include <GtpEngine.h>

Inheritance diagram for GtpCallback:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class ENGINE>
class GtpCallback< ENGINE >

Member function command handlers.

For registering member functions in GtpEngine::Register().

Note:
Instances keep a pointer to the object containing the member function. If the object does is not a subclass of GtpEngine and registers only its own members, you have to make sure that the object's lifetime exceeds the lifetime of the GtpEngine.

Definition at line 460 of file GtpEngine.h.

Public Types

typedef void(ENGINE::*) Method (GtpCommand &)
 Signature of the member function.

Public Member Functions

 GtpCallback (ENGINE *instance, typename GtpCallback< ENGINE >::Method method)
 ~GtpCallback () throw ()
void operator() (GtpCommand &)
 Execute the member function.

Private Attributes

ENGINE * m_instance
Method m_method


Member Typedef Documentation

typedef void(ENGINE::*) Method(GtpCommand &)

Signature of the member function.

Definition at line 465 of file GtpEngine.h.


Constructor & Destructor Documentation

GtpCallback ( ENGINE *  instance,
typename GtpCallback< ENGINE >::Method  method 
)

Definition at line 482 of file GtpEngine.h.

~GtpCallback (  )  throw ()

Definition at line 490 of file GtpEngine.h.

References m_instance.


Member Function Documentation

void operator() ( GtpCommand  )  [virtual]

Execute the member function.

Implements GtpCallbackBase.

Definition at line 498 of file GtpEngine.h.

References m_instance, and m_method.


Member Data Documentation

ENGINE* m_instance [private]

Definition at line 476 of file GtpEngine.h.

Referenced by operator()(), and ~GtpCallback().

Method m_method [private]

Definition at line 478 of file GtpEngine.h.

Referenced by operator()().


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


17 Jun 2010 Doxygen 1.4.7