version 3.3

VRS::MethodCallbackR< CLASS, RETURN > Class Template Reference

#include <vrs/methodcallback.h>

Inheritance diagram for VRS::MethodCallbackR< CLASS, RETURN >:

VRS::CallbackR< RETURN > VRS::CallbackBase VRS::SharedObj VRS::Visitable

List of all members.

Public Types

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

Public Member Functions

 MethodCallbackR (CLASS *obj, RETURN(CLASS::*meth)())
 MethodCallbackR (const CLASS *obj, RETURN(CLASS::*meth)() const)
virtual RETURN callback ()
 See CallbackR::callback.
 VRS_TYPEINFO (MethodCallbackR, CallbackR< RETURN >)


Detailed Description

template<class CLASS, class RETURN>
class VRS::MethodCallbackR< CLASS, RETURN >

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

Member Typedef Documentation

template<class CLASS, class RETURN>
typedef RETURN(CLASS::* VRS::MethodCallbackR< CLASS, RETURN >::ConstMethod)() const


Constructor & Destructor Documentation

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

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

template<class CLASS, class RETURN>
VRS::MethodCallbackR< CLASS, RETURN >::VRS_TYPEINFO ( MethodCallbackR< CLASS, RETURN >  ,
CallbackR< RETURN >   
)


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