OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
A section of a beam line. More...
#include <ElmPtr.h>
Public Member Functions | |
ElmPtr () | |
ElmPtr (const ElmPtr &) | |
ElmPtr (ElementBase *) | |
virtual | ~ElmPtr () |
virtual void | accept (BeamlineVisitor &) const |
Apply visitor. More... | |
ElementBase * | getElement () const |
Get the element pointer. More... | |
void | setElement (ElementBase *) |
Set the element pointer. More... | |
Protected Attributes | |
Pointer< ElementBase > | itsElement |
ElmPtr::ElmPtr | ( | ) |
Definition at line 26 of file ElmPtr.cpp.
ElmPtr::ElmPtr | ( | const ElmPtr & | rhs | ) |
Definition at line 31 of file ElmPtr.cpp.
ElmPtr::ElmPtr | ( | ElementBase * | elem | ) |
Definition at line 36 of file ElmPtr.cpp.
|
virtual |
Definition at line 41 of file ElmPtr.cpp.
|
virtual |
Apply visitor.
Reimplemented in FlaggedElmPtr.
Definition at line 45 of file ElmPtr.cpp.
References ElementBase::accept(), and itsElement.
|
inline |
Get the element pointer.
Definition at line 58 of file ElmPtr.h.
References itsElement.
Referenced by Sequence::copy(), PlaceRep::enter(), Selector::handleElement(), PlaceRep::leave(), Sequence::print(), SequenceMember::setLength(), SpecificElementVisitor< ELEM >::visitFlaggedElmPtr(), DefaultVisitor::visitFlaggedElmPtr(), Replacer::visitFlaggedElmPtr(), and RangeSelector::visitFlaggedElmPtr().
|
inline |
Set the element pointer.
Definition at line 63 of file ElmPtr.h.
References itsElement.
Referenced by Sequence::addEndMarkers(), Sequence::copy(), Sequence::insertDrifts(), and SequenceParser::parseMember().
|
protected |
Definition at line 54 of file ElmPtr.h.
Referenced by accept(), getElement(), and setElement().