Function of language bindings implemented in C++ with a form as argument and as result. The forms are defined by a serialization description. More...
#include <cppFormFunction.hpp>
Public Types | |
typedef int(* | Function )(proc::ExecContext *ctx, void *res, const void *param) |
Public Member Functions | |
CppFormFunction () | |
Default constructor. More... | |
CppFormFunction (const CppFormFunction &o) | |
Copy constructor. More... | |
CppFormFunction (Function f, const serialize::StructDescriptionBase *p, const serialize::StructDescriptionBase *r) | |
Constructor. More... | |
const serialize::StructDescriptionBase * | api_param () const |
Get the form function parameter description. More... | |
const serialize::StructDescriptionBase * | api_result () const |
Get the form function result description. More... | |
int | call (proc::ExecContext *ctx, void *res, const void *param) const |
Call the form function. More... | |
virtual langbind::FormFunctionClosure * | createClosure () const |
Create the state machine context (called closure) for execution the function. More... | |
Public Member Functions inherited from _Wolframe::langbind::FormFunction | |
virtual | ~FormFunction () |
Destructor. More... | |
virtual bool | initializeContext () |
Optional function to implement if there is anything to be initialized after creation of all functions. More... | |
Private Attributes | |
Function | m_function |
form function implementation More... | |
const serialize::StructDescriptionBase * | m_api_param |
parameter structure description More... | |
const serialize::StructDescriptionBase * | m_api_result |
result structure description More... | |
Function of language bindings implemented in C++ with a form as argument and as result. The forms are defined by a serialization description.
typedef int(* _Wolframe::serialize::CppFormFunction::Function)(proc::ExecContext *ctx, void *res, const void *param) |
|
inline |
Default constructor.
|
inline |
Copy constructor.
[in] | o | copied item |
|
inline |
Constructor.
[in] | f | function to call |
[in] | p | part of the api describing the input |
[in] | r | part of the api describing the function result |
|
inline |
Get the form function parameter description.
|
inline |
Get the form function result description.
|
inline |
Call the form function.
[in] | ctx | execution context reference |
[in] | res | pointer to structure as defined with 'api_result()' to hold the form function result |
[in] | param | pointer to structure as defined with 'api_param()' to hold the form function parameter |
|
inlinevirtual |
Create the state machine context (called closure) for execution the function.
Implements _Wolframe::langbind::FormFunction.
|
private |
parameter structure description
|
private |
result structure description
|
private |
form function implementation
Copyright © 2014 - Project Wolframe - All Rights Reserved