41 return (
dynamic_cast<Element *
>(
object) != 0);
50 "Element \"" +
name +
"\" not found.");
virtual double getEntrance(ReferenceType) const
Return arc length from origin to entrance (negative !).
virtual void setShared(bool)
Set shared flag.
Pointer< ElementBase > itsClassicElement
virtual const std::string getCategory() const
Return the object category as a string.
virtual double getLength() const =0
Return element length.
static Element * find(const std::string &name)
Find named Element.
ReferenceType
Reference for element positioning.
virtual bool canReplaceBy(Object *object)
Test if replacement is allowed.
virtual bool shouldTrace() const
Trace flag.
virtual bool shouldUpdate() const
Update flag.
virtual double getExit(ReferenceType) const
Return arc length from origin to exit (positive !).
The base class for all OPAL objects.
virtual void setShared(bool)
Set/reset shared flag.
The global OPAL structure.
Object * find(const std::string &name)
Find entry.
static OpalData * getInstance()
virtual void makeSharable()
Set sharable flag.
The base class for all OPAL exceptions.