OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
SequenceMember.h
Go to the documentation of this file.
1#ifndef OPAL_SequenceMember_HH
2#define OPAL_SequenceMember_HH
3
4// ------------------------------------------------------------------------
5// $RCSfile: SequenceMember.h,v $
6// ------------------------------------------------------------------------
7// $Revision: 1.2 $
8// ------------------------------------------------------------------------
9// Copyright: see Copyright.readme
10// ------------------------------------------------------------------------
11//
12// Class: SequenceMember
13//
14// ------------------------------------------------------------------------
15//
16// $Date: 2001/08/13 15:16:16 $
17// $Author: jowett $
18//
19// ------------------------------------------------------------------------
20
24
25// Class SequenceMember
26// ------------------------------------------------------------------------
28
30
31public:
32
33 // The code for different SequenceMember types.
36 GLOBAL = 1,
37 LOCAL = 2,
38 GENERATED = 3
39 };
40
41 // The code for different position types.
44 FROM = 1,
46 NEXT = 3,
47 BEGIN = 4,
48 END = 5,
49 DRIFT = 6,
50 IMMEDIATE = 7
51 };
52
56
58 void setLength(double drift);
59
60
63
65 // Specific to the sequence parser, tells how the element is related
66 // to the preceding one.
68
70 // Tells how the element is defined.
72
73 // ada 4.5 2000 to speed up matching, add a pointer to
74 // opal elements in order to avoid searching the opal elements
76
77
78private:
79
80 // Not implemented.
82};
83
84#endif // OPAL_SequenceMember_HH
A section of a beam line.
Definition: FlaggedElmPtr.h:36
A member of a SEQUENCE.
MemberType itsType
Type word.
Pointer< Element > OpalElement
void setLength(double drift)
Store the drift length for a generated drift.
double itsPosition
The position attribute ("AT" or "DRIFT").
PositionType itsFlag
Flag word.
void operator=(const SequenceMember &)