version 3.3

VRS::MethodCallback< CLASS > Class Template Reference

#include <vrs/methodcallback.h>

Inheritance diagram for VRS::MethodCallback< CLASS >:

VRS::Callback VRS::CallbackBase VRS::SharedObj VRS::Visitable

List of all members.

Public Types

typedef void(CLASS::* ConstMethod )() const

Public Member Functions

 MethodCallback (CLASS *obj, void(CLASS::*meth)())
 MethodCallback (const CLASS *obj, void(CLASS::*meth)() const)
virtual void callback ()
 See Callback::callback.
 VRS_TYPEINFO (MethodCallback, Callback)


Detailed Description

template<class CLASS>
class VRS::MethodCallback< CLASS >

Callback-wrapper for a C++-method of a class CLASS with no arguments and no return value: void CLASS::func(); void CLASS::func() const;

Member Typedef Documentation

template<class CLASS>
typedef void(CLASS::* VRS::MethodCallback< CLASS >::ConstMethod)() const


Constructor & Destructor Documentation

template<class CLASS>
VRS::MethodCallback< CLASS >::MethodCallback ( CLASS *  obj,
void(CLASS::*)()  meth 
) [inline]

template<class CLASS>
VRS::MethodCallback< CLASS >::MethodCallback ( const CLASS *  obj,
void(CLASS::*)() const   meth 
) [inline]

The c'tor expects a pointer to an object of type CLASS and a method-pointer to a method of the appropriate type. Non-const- and const-methods are supported! Note that the object-pointer will be stored in a normal pointer (not a SO<CLASS>-pointer)!


Member Function Documentation

template<class CLASS>
virtual void VRS::MethodCallback< CLASS >::callback (  )  [inline, virtual]

template<class CLASS>
VRS::MethodCallback< CLASS >::VRS_TYPEINFO ( MethodCallback< CLASS >  ,
Callback   
)


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

Generated on Tue May 22 06:00:22 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact