37 explicit ElmPtr(std::shared_ptr<ElementBase> elem);
49 inline void setElement(std::shared_ptr<ElementBase> elem);
66 auto shared = elem->weak_from_this();
67 if (!shared.expired()) {
A section of a beam line.
ElementBase * getElement() const
Get the element pointer.
void setElement(ElementBase *)
Set the element pointer.
virtual void accept(BeamlineVisitor &) const
Apply visitor.
std::shared_ptr< ElementBase > itsElement