ECF 1.5
FunctionSet.h
1#ifndef FunctionSet_h
2#define FunctionSet_h
3#include "Function.h"
4
5//functions
6#include "Add.h"
7#include "Sub.h"
8#include "Mul.h"
9#include "Div.h"
10#include "Sin.h"
11#include "Cos.h"
12#include "And.h"
13#include "Or.h"
14#include "Not.h"
15#include "Xor.h"
16#include "Xnor.h"
17
18namespace cart
19{
20 class FunctionSet : public vector<FunctionP>
21 {
22 public:
26 FunctionSet(string gettype);
30 bool addFunction(string name);
34 bool addFunction(string name, uint numArgs);
38 void evaluate(voidP inputs, void* result, uint funcNum);
39 ~FunctionSet() {}
40
41 map<string, bool> existFunc; //<! existing (implemented) functions
42 protected:
43 string type;
44
45 };
46
47 typedef boost::shared_ptr<FunctionSet> FunctionSetP;
48}
49
50
51#endif /* FunctionSet_h */
bool addFunction(string name)
Definition: FunctionSet.cpp:21
void evaluate(voidP inputs, void *result, uint funcNum)
FunctionSet(string gettype)
Definition: FunctionSet.cpp:5