OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
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
21#include <memory>
24
25// Class SequenceMember
26// ------------------------------------------------------------------------
28
30public:
31 // The code for different SequenceMember types.
32 enum MemberType { UNKNOWN = 0, GLOBAL = 1, LOCAL = 2, GENERATED = 3 };
33
34 // The code for different position types.
37 FROM = 1,
39 NEXT = 3,
40 BEGIN = 4,
41 END = 5,
42 DRIFT = 6,
43 IMMEDIATE = 7
44 };
45
49
51 void setLength(double drift);
52
55
57 // Specific to the sequence parser, tells how the element is related
58 // to the preceding one.
60
62 // Tells how the element is defined.
64
65 // ada 4.5 2000 to speed up matching, add a pointer to
66 // opal elements in order to avoid searching the opal elements
67 std::shared_ptr<Element> OpalElement;
68
69private:
70 // Not implemented.
72};
73
74#endif // OPAL_SequenceMember_HH
A section of a beam line.
A member of a SEQUENCE.
MemberType itsType
Type word.
std::shared_ptr< 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 &)