OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
A member of a SEQUENCE. More...
#include <SequenceMember.h>
Public Types | |
enum | MemberType { UNKNOWN = 0 , GLOBAL = 1 , LOCAL = 2 , GENERATED = 3 } |
enum | PositionType { ABSOLUTE = 0 , FROM = 1 , PREVIOUS = 2 , NEXT = 3 , BEGIN = 4 , END = 5 , DRIFT = 6 , IMMEDIATE = 7 } |
Public Member Functions | |
SequenceMember () | |
SequenceMember (const SequenceMember &) | |
~SequenceMember () | |
void | setLength (double drift) |
Store the drift length for a generated drift. More... | |
Public Member Functions inherited from FlaggedElmPtr | |
FlaggedElmPtr (const ElmPtr &, bool reflected=false, bool selected=false) | |
Constructor. More... | |
FlaggedElmPtr (const FlaggedElmPtr &) | |
Copy constructor. More... | |
FlaggedElmPtr () | |
virtual | ~FlaggedElmPtr () |
virtual void | accept (BeamlineVisitor &) const |
Apply visitor. More... | |
int | getCounter () const |
Get clone counter. More... | |
bool | getReflectionFlag () const |
Get reflection flag. More... | |
bool | getSelectionFlag () const |
Get selection flag. More... | |
void | setCounter (int) const |
Set clone counter. More... | |
void | setReflectionFlag (bool flag) const |
Set reflection flag. More... | |
void | setSelectionFlag (bool flag) const |
Get selection flag. More... | |
Public Member Functions inherited from ElmPtr | |
ElmPtr () | |
ElmPtr (const ElmPtr &) | |
ElmPtr (ElementBase *) | |
virtual | ~ElmPtr () |
ElementBase * | getElement () const |
Get the element pointer. More... | |
void | setElement (ElementBase *) |
Set the element pointer. More... | |
Public Attributes | |
double | itsPosition |
The position attribute ("AT" or "DRIFT"). More... | |
PositionType | itsFlag |
Flag word. More... | |
MemberType | itsType |
Type word. More... | |
Pointer< Element > | OpalElement |
Private Member Functions | |
void | operator= (const SequenceMember &) |
Additional Inherited Members | |
Protected Attributes inherited from FlaggedElmPtr | |
int | itsCounter |
Clone counter. More... | |
bool | isReflected |
The reflection flag. More... | |
bool | isSelected |
The selection flag. More... | |
Protected Attributes inherited from ElmPtr | |
Pointer< ElementBase > | itsElement |
A member of a SEQUENCE.
Definition at line 29 of file SequenceMember.h.
Enumerator | |
---|---|
UNKNOWN | |
GLOBAL | |
LOCAL | |
GENERATED |
Definition at line 34 of file SequenceMember.h.
Enumerator | |
---|---|
ABSOLUTE | |
FROM | |
PREVIOUS | |
NEXT | |
BEGIN | |
END | |
DRIFT | |
IMMEDIATE |
Definition at line 42 of file SequenceMember.h.
SequenceMember::SequenceMember | ( | ) |
Definition at line 26 of file SequenceMember.cpp.
SequenceMember::SequenceMember | ( | const SequenceMember & | rhs | ) |
Definition at line 32 of file SequenceMember.cpp.
SequenceMember::~SequenceMember | ( | ) |
Definition at line 41 of file SequenceMember.cpp.
|
private |
void SequenceMember::setLength | ( | double | drift | ) |
Store the drift length for a generated drift.
Definition at line 45 of file SequenceMember.cpp.
References GENERATED, ElmPtr::getElement(), itsType, and ElementBase::setElementLength().
PositionType SequenceMember::itsFlag |
Flag word.
Definition at line 67 of file SequenceMember.h.
Referenced by Sequence::addEndMarkers(), and SequenceParser::parsePosition().
double SequenceMember::itsPosition |
The position attribute ("AT" or "DRIFT").
Definition at line 62 of file SequenceMember.h.
Referenced by Sequence::addEndMarkers(), SequenceParser::parsePosition(), and Sequence::print().
MemberType SequenceMember::itsType |
Type word.
Definition at line 71 of file SequenceMember.h.
Referenced by Sequence::addEndMarkers(), Sequence::insertDrifts(), SequenceParser::parseMember(), Sequence::print(), and setLength().
Definition at line 75 of file SequenceMember.h.
Referenced by SequenceParser::parseMember().