21 #ifndef OPAL_Sequence_HH
22 #define OPAL_Sequence_HH
82 virtual void print(std::ostream &)
const;
130 #endif // OPAL_Sequence_HH
The parser for SEQUENCE members.
virtual double getLength() const
Return sequence length.
The base class for all OPAL objects.
void insertDrifts(TLine &line)
ReferenceType getReference() const
Return the reference type flag.
ReferenceType
Reference for element positioning.
virtual void print(std::ostream &) const
Print sequence.
virtual double getEntrance(ReferenceType) const
Return the arc length from origin to entrance.
double findDriftLength(TLine::iterator drift) const
void addEndMarkers(TLine &line) const
virtual Object * makeTemplate(const std::string &, TokenStream &, Statement &)
Make a sequence template.
std::string::iterator iterator
void storeLine(TLine &line)
Store sequence line.
TLine::iterator findNamedPosition(TLine &, const std::string &) const
Abstract interface for a stream of input tokens.
The base class for all OPAL beam lines and sequences.
virtual Sequence * clone(const std::string &name)
Make clone.
virtual void update()
Update the embedded CLASSIC beam line.
void operator=(const Sequence &)
Interface for statements.
static void updateList(Sequence *, TLine *)
virtual void parse(Statement &)
Parse sequence.
virtual Sequence * copy(const std::string &name)
Make copy of the sequence line.
virtual double getExit(ReferenceType) const
Return the arc length from origin to exit.
TBeamline< SequenceMember > TLine
The type of a sequence line.
Sequence()
Exemplar constructor.
virtual TLine * fetchLine() const
Return the embedded CLASSIC beam line.
virtual void replace(Object *oldObject, Object *newObject)
Replace references to elements.