OPAL (Object Oriented Parallel Accelerator Library)
2022.1
OPAL
src
src
Optimize
Constraint.h
Go to the documentation of this file.
1
#ifndef OPAL_CONSTRAINT_HH
2
#define OPAL_CONSTRAINT_HH
3
4
#include "
AbstractObjects/Definition.h
"
5
6
class
Constraint
:
public
Definition
{
7
public
:
8
Constraint
();
9
~Constraint
();
10
11
virtual
Constraint
*
clone
(
const
std::string &
name
);
12
13
virtual
void
execute
();
14
15
std::string
getExpression
()
const
;
16
private
:
17
Constraint
(
const
std::string &
name
,
18
Constraint
*parent);
19
};
20
21
inline
22
Constraint
*
Constraint::clone
(
const
std::string &
name
) {
23
return
new
Constraint
(
name
,
this
);
24
}
25
26
#endif
Definition.h
name
const std::string name
Definition:
MaxNormRadialPeak.cpp:32
Definition
The base class for all OPAL definitions.
Definition:
Definition.h:30
Constraint
Definition:
Constraint.h:6
Constraint::getExpression
std::string getExpression() const
Definition:
Constraint.cpp:31
Constraint::execute
virtual void execute()
Execute the command.
Definition:
Constraint.cpp:27
Constraint::clone
virtual Constraint * clone(const std::string &name)
Return a clone.
Definition:
Constraint.h:22
Constraint::Constraint
Constraint()
Definition:
Constraint.cpp:11
Constraint::~Constraint
~Constraint()
Definition:
Constraint.cpp:24
Generated on Thu Oct 20 2022 17:40:11 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.3