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