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

A section of a beam line. More...

#include <ElmPtr.h>

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

Public Member Functions

 ElmPtr ()
 
 ElmPtr (const ElmPtr &)
 
 ElmPtr (ElementBase *)
 
virtual ~ElmPtr ()
 
virtual void accept (BeamlineVisitor &) const
 Apply visitor. More...
 
ElementBasegetElement () const
 Get the element pointer. More...
 
void setElement (ElementBase *)
 Set the element pointer. More...
 

Protected Attributes

Pointer< ElementBaseitsElement
 

Detailed Description

A section of a beam line.

Definition at line 32 of file ElmPtr.h.

Constructor & Destructor Documentation

◆ ElmPtr() [1/3]

ElmPtr::ElmPtr ( )

Definition at line 26 of file ElmPtr.cpp.

◆ ElmPtr() [2/3]

ElmPtr::ElmPtr ( const ElmPtr rhs)

Definition at line 31 of file ElmPtr.cpp.

◆ ElmPtr() [3/3]

ElmPtr::ElmPtr ( ElementBase elem)

Definition at line 36 of file ElmPtr.cpp.

◆ ~ElmPtr()

ElmPtr::~ElmPtr ( )
virtual

Definition at line 41 of file ElmPtr.cpp.

Member Function Documentation

◆ accept()

void ElmPtr::accept ( BeamlineVisitor visitor) const
virtual

Apply visitor.

Reimplemented in FlaggedElmPtr.

Definition at line 45 of file ElmPtr.cpp.

References ElementBase::accept(), and itsElement.

Here is the call graph for this function:

◆ getElement()

ElementBase * ElmPtr::getElement ( ) const
inline

◆ setElement()

void ElmPtr::setElement ( ElementBase elem)
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().

Member Data Documentation

◆ itsElement

Pointer<ElementBase> ElmPtr::itsElement
protected

Definition at line 54 of file ElmPtr.h.

Referenced by accept(), getElement(), and setElement().


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