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

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

#include <ptr_fun.h>

Inheritance diagram for kge::core::PFunctor1< Treturn, Targ1 >:
kge::core::Functor1< Treturn, Targ1 >

Public Member Functions

 PFunctor1 (Treturn(*_fun)(Targ1))
 Constructor.
Treturn Call (Targ1 arg1)
 Call the user function with one argument.

Protected Attributes

Treturn(* m_pFun )(Targ1)

Detailed Description

template<class Treturn, class Targ1>
class kge::core::PFunctor1< Treturn, Targ1 >

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

Definition at line 56 of file ptr_fun.h.

Constructor & Destructor Documentation

template<class Treturn, class Targ1>
kge::core::PFunctor1< Treturn, Targ1 >::PFunctor1 ( Treturn(*)(Targ1)  _fun)
inline

Constructor.

Definition at line 61 of file ptr_fun.h.

Member Function Documentation

template<class Treturn, class Targ1>
Treturn kge::core::PFunctor1< Treturn, Targ1 >::Call ( Targ1  arg1)
inlinevirtual

Call the user function with one argument.

Implements kge::core::Functor1< Treturn, Targ1 >.

Definition at line 67 of file ptr_fun.h.

References kge::core::PFunctor1< Treturn, Targ1 >::m_pFun.

Member Data Documentation

template<class Treturn, class Targ1>
Treturn(* kge::core::PFunctor1< Treturn, Targ1 >::m_pFun)(Targ1)
protected

Pointer to member function

Definition at line 73 of file ptr_fun.h.

Referenced by kge::core::PFunctor1< Treturn, Targ1 >::Call().


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