C++ mpi module for stochmagnet_main Package
EXPR_Function.h
1 #ifndef EXPR_Function_H
2 #define EXPR_Function_H
3 
4 #include "EXPR_Object.h"
5 
6 class EXPR_Node;
7 
15 class EXPR_Function : public virtual EXPR_Object {
16 
17 
18 private:
19 
20 
21 private:
22 
23  tString mName;
24 
25 protected:
26  //builders
27 
31  }
32 
33  //deleters
36  virtual ~EXPR_Function() {
37  }
38 
39  //methods
40 protected:
44  inline void setName(const tString& name) {
45  mName=name;
46  }
47 
48 public:
52  inline tString getName() const {
53  return mName;
54  }
55 
60  virtual void apply(const std::vector<tString>& args,
61  EXPR_Node& node) const=0;
62 
63 
64 };
65 
66 #endif
67 
68 
This class described a function.
Definition: EXPR_Function.h:15
virtual void apply(const std::vector< tString > &args, EXPR_Node &node) const =0
apply the function to the environment
tString getName() const
get the name of the function
Definition: EXPR_Function.h:52
EXPR_Function()
create the class
Definition: EXPR_Function.h:30
void setName(const tString &name)
set the name of the function
Definition: EXPR_Function.h:44
virtual ~EXPR_Function()
delete the class
Definition: EXPR_Function.h:36
This class is a base class of the binary tree.
Definition: EXPR_Node.h:16
This class is the base class of all the parser package.
Definition: EXPR_Object.h:27