7#ifndef __FUNCTION_CALL_H_IMPL__
8#define __FUNCTION_CALL_H_IMPL__
10#include "phoenix_type_stream.h"
20template<
typename _Callable>
29template<
typename _Callable>
40template<
typename _Callable>
46template<
typename _Callable>
void setPrototype(const PString &prototype)
Set the prototype of the current function.
AbstractFunction(const PString &name)
Default constructor of AbstractFunction.
Basic Data exchanged in the swarm.
const DataStreamMsg & getValue() const
Gets the value of the Data.
virtual bool call(PLog &log, Swarm::Data &outputResult, const Swarm::Data ¶meter)
Call the function with parameter.
FunctionCall(_Callable &&function, const PString &name)
Default constructor of FunctionCall.
virtual ~FunctionCall()
Destructor of FunctionCall.
_Callable && p_function
Callable function of the FunctionCall.
void initialisationFunctionCall()
Initialisation function of the class FunctionCall.
bool phoenix_function_call(PLog &log, Swarm::Data &result, const DataStreamMsg &input, R(*func)(T...))
Call the function with message.