cppexpose  1.0.0.b785e04f23b8
C++ library for type introspection, reflection, and scripting interface
Public Member Functions | List of all members
cppexpose::AbstractFunction Class Referenceabstract

Base class for callable functions or function objects. More...

#include <cppexpose/include/cppexpose/function/AbstractFunction.h>

Inheritance diagram for cppexpose::AbstractFunction:
Inheritance graph
[legend]

Public Member Functions

 AbstractFunction ()
 Constructor. More...
 
virtual ~AbstractFunction ()
 Destructor. More...
 
virtual std::unique_ptr< AbstractFunctionclone ()=0
 Create a copy of the function object. More...
 
virtual Variant call (const std::vector< Variant > &args)=0
 Call function. More...
 

Detailed Description

Base class for callable functions or function objects.

Constructor & Destructor Documentation

cppexpose::AbstractFunction::AbstractFunction ( )

Constructor.

virtual cppexpose::AbstractFunction::~AbstractFunction ( )
virtual

Destructor.

Member Function Documentation

virtual std::unique_ptr<AbstractFunction> cppexpose::AbstractFunction::clone ( )
pure virtual

Create a copy of the function object.

Returns
New function object pointing to the same function. Has to be deleted by the caller.

Implemented in cppexpose::ConstMemberFunction< T, RET, Arguments >, cppexpose::MemberFunction< T, RET, Arguments >, and cppexpose::StaticFunction< RET, Arguments >.

virtual Variant cppexpose::AbstractFunction::call ( const std::vector< Variant > &  args)
pure virtual

Call function.

Parameters
[in]argsList of arguments as Variants
Returns
New function object pointing to the same function. Has to be deleted by the caller.

Implemented in cppexpose::ConstMemberFunction< T, RET, Arguments >, cppexpose::MemberFunction< T, RET, Arguments >, and cppexpose::StaticFunction< RET, Arguments >.


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