OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Objective.h
Go to the documentation of this file.
1 #ifndef OPAL_OBJECTIVE_HH
2 #define OPAL_OBJECTIVE_HH
3 
5 
6 class Objective: public Definition {
7 public:
8  Objective();
9  ~Objective();
10 
11  virtual Objective *clone(const std::string &name);
12 
13  virtual void execute();
14 
15  std::string getExpression() const;
16 
17 private:
18  Objective(const std::string &name,
19  Objective *parent);
20 };
21 
22 inline
23 Objective* Objective::clone(const std::string &name) {
24  return new Objective(name, this);
25 }
26 
27 #endif
std::string getExpression() const
Definition: Objective.cpp:31
The base class for all OPAL definitions.
Definition: Definition.h:30
virtual void execute()
Execute the command.
Definition: Objective.cpp:27
virtual Objective * clone(const std::string &name)
Return a clone.
Definition: Objective.h:23
const std::string name