OPAL (Object Oriented Parallel Accelerator Library)
2022.1
OPAL
src
src
Optimize
Objective.h
Go to the documentation of this file.
1
#ifndef OPAL_OBJECTIVE_HH
2
#define OPAL_OBJECTIVE_HH
3
4
#include "
AbstractObjects/Definition.h
"
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
Definition.h
name
const std::string name
Definition:
MaxNormRadialPeak.cpp:32
Definition
The base class for all OPAL definitions.
Definition:
Definition.h:30
Objective
Definition:
Objective.h:6
Objective::clone
virtual Objective * clone(const std::string &name)
Return a clone.
Definition:
Objective.h:23
Objective::execute
virtual void execute()
Execute the command.
Definition:
Objective.cpp:27
Objective::getExpression
std::string getExpression() const
Definition:
Objective.cpp:31
Objective::~Objective
~Objective()
Definition:
Objective.cpp:24
Objective::Objective
Objective()
Definition:
Objective.cpp:11
Generated on Thu Oct 20 2022 17:40:11 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.3