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