OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Public Types | Public Member Functions | Public Attributes | Private Member Functions | List of all members
SequenceMember Class Reference

A member of a SEQUENCE. More...

#include <SequenceMember.h>

Inheritance diagram for SequenceMember:
Inheritance graph
[legend]
Collaboration diagram for SequenceMember:
Collaboration graph
[legend]

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 ()
 
ElementBasegetElement () 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< ElementOpalElement
 

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< ElementBaseitsElement
 

Detailed Description

A member of a SEQUENCE.

Definition at line 29 of file SequenceMember.h.

Member Enumeration Documentation

◆ MemberType

Enumerator
UNKNOWN 
GLOBAL 
LOCAL 
GENERATED 

Definition at line 34 of file SequenceMember.h.

◆ PositionType

Enumerator
ABSOLUTE 
FROM 
PREVIOUS 
NEXT 
BEGIN 
END 
DRIFT 
IMMEDIATE 

Definition at line 42 of file SequenceMember.h.

Constructor & Destructor Documentation

◆ SequenceMember() [1/2]

SequenceMember::SequenceMember ( )

Definition at line 26 of file SequenceMember.cpp.

◆ SequenceMember() [2/2]

SequenceMember::SequenceMember ( const SequenceMember rhs)

Definition at line 32 of file SequenceMember.cpp.

◆ ~SequenceMember()

SequenceMember::~SequenceMember ( )

Definition at line 41 of file SequenceMember.cpp.

Member Function Documentation

◆ operator=()

void SequenceMember::operator= ( const SequenceMember )
private

◆ setLength()

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().

Here is the call graph for this function:

Member Data Documentation

◆ itsFlag

PositionType SequenceMember::itsFlag

Flag word.

Definition at line 67 of file SequenceMember.h.

Referenced by Sequence::addEndMarkers(), and SequenceParser::parsePosition().

◆ itsPosition

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().

◆ itsType

MemberType SequenceMember::itsType

◆ OpalElement

Pointer<Element> SequenceMember::OpalElement

Definition at line 75 of file SequenceMember.h.

Referenced by SequenceParser::parseMember().


The documentation for this class was generated from the following files: