OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Flagger.cpp
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2// $RCSfile: Flagger.cpp,v $
3// ------------------------------------------------------------------------
4// $Revision: 1.1.1.1 $
5// ------------------------------------------------------------------------
6// Copyright: see Copyright.readme
7// ------------------------------------------------------------------------
8//
9// Class: Flagger
10// This class sets or resets all selection flags in a USE object.
11//
12// ------------------------------------------------------------------------
13//
14// $Date: 2000/03/27 09:32:32 $
15// $Author: fci $
16//
17// ------------------------------------------------------------------------
18
19#include "Algorithms/Flagger.h"
21
22
23// Class Flagger
24// ------------------------------------------------------------------------
25
26Flagger::Flagger(const Beamline &beamline, bool set):
27 DefaultVisitor(beamline, false, false), flag(set)
28{}
29
30
32{}
33
34
38}
virtual void visitFlaggedElmPtr(const FlaggedElmPtr &)
Apply the algorithm to a FlaggedElmPtr.
bool flag
Definition: Flagger.h:52
virtual ~Flagger()
Definition: Flagger.cpp:31
virtual void visitFlaggedElmPtr(const FlaggedElmPtr &)
Set selection flag in the given FlaggedElmPtr.
Definition: Flagger.cpp:35
An abstract sequence of beam line components.
Definition: Beamline.h:34
A section of a beam line.
Definition: FlaggedElmPtr.h:36
void setSelectionFlag(bool flag) const
Get selection flag.