Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::core::MFunctor0< Tclass, Treturn > Class Template Reference

This class is for storing pointer to member functions with no argument(s). More...

#include <mem_fun.h>

Inheritance diagram for kge::core::MFunctor0< Tclass, Treturn >:
kge::core::Functor0< Treturn >

Public Member Functions

 MFunctor0 (Tclass *obj, Treturn(Tclass::*_fun)())
 Constructor.
Treturn Call ()
 Call the user function with no argument.

Protected Attributes

Tclass * m_pObj
Treturn(Tclass::* m_pFun )()

Detailed Description

template<class Tclass, class Treturn>
class kge::core::MFunctor0< Tclass, Treturn >

This class is for storing pointer to member functions with no argument(s).

Definition at line 19 of file mem_fun.h.

Constructor & Destructor Documentation

template<class Tclass, class Treturn>
kge::core::MFunctor0< Tclass, Treturn >::MFunctor0 ( Tclass *  obj,
Treturn(Tclass::*)()  _fun 
)
inline

Constructor.

Definition at line 24 of file mem_fun.h.

Member Function Documentation

template<class Tclass, class Treturn>
Treturn kge::core::MFunctor0< Tclass, Treturn >::Call ( )
inlinevirtual

Call the user function with no argument.

Implements kge::core::Functor0< Treturn >.

Definition at line 30 of file mem_fun.h.

References kge::core::MFunctor0< Tclass, Treturn >::m_pFun, and kge::core::MFunctor0< Tclass, Treturn >::m_pObj.

Member Data Documentation

template<class Tclass, class Treturn>
Treturn(Tclass::* kge::core::MFunctor0< Tclass, Treturn >::m_pFun)()
protected

Pointer to member function

Definition at line 37 of file mem_fun.h.

Referenced by kge::core::MFunctor0< Tclass, Treturn >::Call().

template<class Tclass, class Treturn>
Tclass* kge::core::MFunctor0< Tclass, Treturn >::m_pObj
protected

Pointer to class object.

Definition at line 36 of file mem_fun.h.

Referenced by kge::core::MFunctor0< Tclass, Treturn >::Call().


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