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

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

#include <ptr_fun.h>

Inheritance diagram for kge::core::PFunctor0< Treturn >:
kge::core::Functor0< Treturn >

Public Member Functions

 PFunctor0 (Treturn(*_fun)())
 Constructor.
Treturn Call ()
 Call the user function with no argument.

Protected Attributes

Treturn(* m_pFun )()

Detailed Description

template<class Treturn>
class kge::core::PFunctor0< Treturn >

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

Definition at line 19 of file ptr_fun.h.

Constructor & Destructor Documentation

template<class Treturn>
kge::core::PFunctor0< Treturn >::PFunctor0 ( Treturn(*)()  _fun)
inline

Constructor.

Definition at line 24 of file ptr_fun.h.

Member Function Documentation

template<class Treturn>
Treturn kge::core::PFunctor0< Treturn >::Call ( )
inlinevirtual

Call the user function with no argument.

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

Definition at line 30 of file ptr_fun.h.

References kge::core::PFunctor0< Treturn >::m_pFun.

Member Data Documentation

template<class Treturn>
Treturn(* kge::core::PFunctor0< Treturn >::m_pFun)()
protected

Pointer to function

Definition at line 36 of file ptr_fun.h.

Referenced by kge::core::PFunctor0< Treturn >::Call().


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