OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
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// Class Flagger
23// ------------------------------------------------------------------------
24
25Flagger::Flagger(const Beamline& beamline, bool set)
26 : DefaultVisitor(beamline, false, false), flag(set) {}
27
29
An abstract sequence of beam line components.
Definition Beamline.h:34
void visitFlaggedElmPtr(const FlaggedElmPtr &) override
Apply the algorithm to a FlaggedElmPtr.
A section of a beam line.
void setSelectionFlag(bool flag) const
Get selection flag.
bool flag
Definition Flagger.h:48
virtual ~Flagger()
Definition Flagger.cpp:28
virtual void visitFlaggedElmPtr(const FlaggedElmPtr &)
Set selection flag in the given FlaggedElmPtr.
Definition Flagger.cpp:30