OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
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 
31 public:
32 
33  // The code for different SequenceMember types.
34  enum MemberType {
35  UNKNOWN = 0,
36  GLOBAL = 1,
37  LOCAL = 2,
39  };
40 
41  // The code for different position types.
42  enum PositionType {
43  ABSOLUTE = 0,
44  FROM = 1,
45  PREVIOUS = 2,
46  NEXT = 3,
47  BEGIN = 4,
48  END = 5,
49  DRIFT = 6,
51  };
52 
56 
58  void setLength(double drift);
59 
60 
62  double itsPosition;
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 serching the opal elements
76 
77 
78 private:
79 
80  // Not implemented.
81  void operator=(const SequenceMember &);
82 };
83 
84 #endif // OPAL_SequenceMember_HH
void operator=(const SequenceMember &)
double itsPosition
The position attribute ("AT" or "DRIFT").
MemberType itsType
Type word.
void setLength(double drift)
Store the drift length for a generated drift.
PositionType itsFlag
Flag word.
Pointer< Element > OpalElement
A section of a beam line.
Definition: FlaggedElmPtr.h:36
A member of a SEQUENCE.