OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
Match
MatchEnd.cpp
Go to the documentation of this file.
1
// ------------------------------------------------------------------------
2
// $RCSfile: MatchEnd.cpp,v $
3
// ------------------------------------------------------------------------
4
// $Revision: 1.1.1.1 $
5
// ------------------------------------------------------------------------
6
// Copyright: see Copyright.readme
7
// ------------------------------------------------------------------------
8
//
9
// Class: MatchEnd
10
// The class for the OPAL ENDMATCH command.
11
//
12
// ------------------------------------------------------------------------
13
//
14
// $Date: 2000/03/27 09:33:44 $
15
// $Author: Andreas Adelmann $
16
//
17
// ------------------------------------------------------------------------
18
19
#include "
Match/MatchEnd.h
"
20
#include "
Match/Match.h
"
21
#include "
Match/MatchParser.h
"
22
#include "
Match/MatchState.h
"
23
24
25
// Class MatchEnd
26
// ------------------------------------------------------------------------
27
28
MatchEnd::MatchEnd
():
29
Action
(0,
"ENDMATCH"
,
30
"The \"ENDMATCH\" sub-command stops Matching."
)
31
{}
32
33
34
MatchEnd::MatchEnd
(
const
std::string &
name
,
MatchEnd
*parent):
35
Action
(name, parent)
36
{}
37
38
39
MatchEnd::~MatchEnd
()
40
{}
41
42
43
MatchEnd
*
MatchEnd::clone
(
const
std::string &
name
) {
44
return
new
MatchEnd
(name,
this
);
45
}
46
47
48
void
MatchEnd::execute
() {
49
Match::block
->
print
(
"ENDMATCH"
,
TERMINATED
);
50
Match::block
->
parser
.
stop
();
51
}
MatchEnd
The ENDMATCH command.
Definition:
MatchEnd.h:30
Action
The base class for all OPAL actions.
Definition:
Action.h:30
MatchEnd::MatchEnd
MatchEnd()
Exemplar constructor.
Definition:
MatchEnd.cpp:28
Match::block
static Match * block
The block of match data.
Definition:
Match.h:100
MatchParser.h
OpalParser::stop
void stop() const
Set stop flag.
Definition:
OpalParser.cpp:637
MatchEnd::clone
virtual MatchEnd * clone(const std::string &name)
Make clone.
Definition:
MatchEnd.cpp:43
Match::print
void print(const char *method, MatchState state)
Print the results of minimisation.
Definition:
Match.cpp:145
Match.h
Match::parser
MatchParser parser
The parser used during for matching.
Definition:
Match.h:97
MatchEnd::~MatchEnd
virtual ~MatchEnd()
Definition:
MatchEnd.cpp:39
MatchEnd::execute
virtual void execute()
Execute the command.
Definition:
MatchEnd.cpp:48
MatchEnd.h
name
const std::string name
Definition:
MaxNormRadialPeak.cpp:3
MatchState.h
TERMINATED
Definition:
MatchState.h:39
Generated on Sat Jan 4 2020 14:48:04 for OPAL (Object Oriented Parallel Accelerator Library) by
1.8.5