![]() |
cppexpose
1.0.0.b785e04f23b8
C++ library for type introspection, reflection, and scripting interface
|
Representation of a static function. More...
#include <cppexpose/include/cppexpose/function/StaticFunction.h>


Public Types | |
| typedef RET(* | Func) (Arguments...) |
| Typed function pointer for a static function. More... | |
Public Member Functions | |
| StaticFunction (Func func) | |
| Constructor. More... | |
| virtual | ~StaticFunction () |
| Destructor. More... | |
| virtual std::unique_ptr< AbstractFunction > | clone () override |
| Create a copy of the function object. More... | |
| virtual Variant | call (const std::vector< Variant > &args) override |
| Call function. More... | |
Public Member Functions inherited from cppexpose::AbstractFunction | |
| AbstractFunction () | |
| Constructor. More... | |
| virtual | ~AbstractFunction () |
| Destructor. More... | |
Protected Member Functions | |
| template<size_t... I> | |
| Variant | callFunction (helper::Seq< I... >, const std::vector< Variant > &args) |
Protected Attributes | |
| Func | m_func |
| Function object. More... | |
Representation of a static function.
| typedef RET(* cppexpose::StaticFunction< RET, Arguments >::Func) (Arguments...) |
Typed function pointer for a static function.
| cppexpose::StaticFunction< RET, Arguments >::StaticFunction | ( | Func | func | ) |
Constructor.
| [in] | func | Pointer to static function |
|
virtual |
Destructor.
|
overridevirtual |
Create a copy of the function object.
Implements cppexpose::AbstractFunction.
References cppexpose::StaticFunction< RET, Arguments >::m_func.
|
overridevirtual |
Call function.
| [in] | args | List of arguments as Variants |
Implements cppexpose::AbstractFunction.
References cppexpose::StaticFunction< RET, Arguments >::callFunction().
|
protected |
|
protected |
Function object.
Referenced by cppexpose::StaticFunction< RET, Arguments >::callFunction(), and cppexpose::StaticFunction< RET, Arguments >::clone().
1.8.11