OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Flagger.h
Go to the documentation of this file.
1 #ifndef MAD_Flagger_HH
2 #define MAD_Flagger_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: Flagger.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: Flagger
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:32:32 $
17 // $Author: fci $
18 //
19 // ------------------------------------------------------------------------
20 
22 
23 class Beamline;
24 
25 
26 // Class Flagger
27 // ------------------------------------------------------------------------
29 // objects.
30 
31 class Flagger: public DefaultVisitor {
32 
33 public:
34 
36  // Attach this visitor to [b]bl[/b], remember the [b]set[/b] flag.
37  Flagger(const Beamline &bl, bool set);
38 
39  virtual ~Flagger();
40 
42  virtual void visitFlaggedElmPtr(const FlaggedElmPtr &);
43 
44 private:
45 
46  // Not implemented.
48  Flagger(const Flagger &);
49  void operator=(const Flagger &);
50 
51  // The flag value to be applied.
52  bool flag;
53 };
54 
55 #endif // MAD_Flagger_HH
Set/reset all selection flags in a beam line built from FlaggedElmPtr.
Definition: Flagger.h:31
Flagger(const Flagger &)
void operator=(const Flagger &)
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