version 3.3

VRS::MethodCallback1< CLASS, ARG1 > Class Template Reference

#include <vrs/methodcallback.h>

Inheritance diagram for VRS::MethodCallback1< CLASS, ARG1 >:

VRS::Callback1< ARG1 > VRS::CallbackBase VRS::SharedObj VRS::Visitable

List of all members.

Public Types

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

Public Member Functions

 MethodCallback1 (CLASS *obj, void(CLASS::*meth)(ARG1))
 MethodCallback1 (const CLASS *obj, void(CLASS::*meth)(ARG1) const)
virtual void callback (ARG1 arg1)
 See Callback1::callback.
 VRS_TYPEINFO (MethodCallback1, Callback1< ARG1 >)


Detailed Description

template<class CLASS, class ARG1>
class VRS::MethodCallback1< CLASS, ARG1 >

Callback-wrapper for a C++-method of a class CLASS with one argument of type ARG1 and no return value: void CLASS::func(ARG1 arg1); void CLASS::func(ARG1 arg1) const;

Member Typedef Documentation

template<class CLASS, class ARG1>
typedef void(CLASS::* VRS::MethodCallback1< CLASS, ARG1 >::ConstMethod)(ARG1) const


Constructor & Destructor Documentation

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

template<class CLASS, class ARG1>
VRS::MethodCallback1< CLASS, ARG1 >::MethodCallback1 ( const CLASS *  obj,
void(CLASS::*)(ARG1) 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, class ARG1>
virtual void VRS::MethodCallback1< CLASS, ARG1 >::callback ( ARG1  arg1  )  [inline, virtual]

template<class CLASS, class ARG1>
VRS::MethodCallback1< CLASS, ARG1 >::VRS_TYPEINFO ( MethodCallback1< CLASS, ARG1 >  ,
Callback1< ARG1 >   
)


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

Generated on Sun May 19 06:00:35 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact