|
OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
The base class for all OPAL tables. More...
#include <Table.h>


Classes | |
| struct | Cell |
| Descriptor for printing a table cell. More... | |
Public Types | |
| typedef std::vector< Cell > | CellArray |
| An array of cell descriptors. More... | |
Public Member Functions | |
| virtual | ~Table () |
| virtual bool | canReplaceBy (Object *newObject) |
| Test if object can be replaced. More... | |
| virtual void | fill ()=0 |
| Refill the buffer. More... | |
| virtual const std::string | getCategory () const |
| Return the object category as a string. More... | |
| virtual bool | shouldTrace () const |
| Trace flag. More... | |
| virtual bool | shouldUpdate () const |
| Update flag. More... | |
| virtual double | getCell (const PlaceRep &row, const std::string &col)=0 |
| Return value in selected table cell. More... | |
| virtual std::vector< double > | getColumn (const RangeRep &range, const std::string &col)=0 |
| Return column [b]col[/b] of this table, limited by [b]range[/b]. More... | |
| virtual CellArray | getDefault () const =0 |
| Return the default print columns. More... | |
| virtual double | getLength ()=0 |
| Return the length of the table. More... | |
| virtual const Beamline * | getLine () const =0 |
| Return embedded CLASSIC beamline. More... | |
| virtual std::vector< double > | getRow (const PlaceRep &, const std::vector< std::string > &)=0 |
| Return a table row. More... | |
| virtual void | invalidate () |
| Mark this table as invalid, if it is dynamic. More... | |
| virtual bool | isDependent (const std::string &name) const =0 |
| Find out if table depends on the object identified by [b]name[/b]. More... | |
| virtual Expressions::PtrToScalar < double > | makeColumnExpression (const std::string &) const =0 |
| virtual bool | matches (Table *rhs) const =0 |
| Check that [b]rhs[/b] is of same type as [b]this[/b]. More... | |
| virtual void | printTable (std::ostream &, const CellArray &) const =0 |
| Print list for the table. More... | |
Public Member Functions inherited from Object | |
| virtual | ~Object () |
| virtual Object * | clone (const std::string &name)=0 |
| Return a clone. More... | |
| void | copyAttributes (const Object &) |
| Copy attributes from another object. More... | |
| virtual void | execute () |
| Execute the command. More... | |
| virtual Attribute * | findAttribute (const std::string &name) |
| Find an attribute by name. More... | |
| virtual const Attribute * | findAttribute (const std::string &name) const |
| Find an attribute by name. More... | |
| virtual Object * | makeTemplate (const std::string &, TokenStream &, Statement &) |
| Macro handler function. More... | |
| virtual Object * | makeInstance (const std::string &name, Statement &, const Parser *) |
| Macro handler function. More... | |
| virtual void | parse (Statement &) |
| Parse the object. More... | |
| virtual void | parseShortcut (Statement &) |
| Parser for single-attribute commands. More... | |
| virtual void | print (std::ostream &) const |
| Print the object. More... | |
| virtual void | printValue (std::ostream &) const |
| virtual void | printHelp (std::ostream &) const |
| Print help. More... | |
| virtual void | replace (Object *oldObject, Object *newObject) |
| Replace references. More... | |
| virtual void | update () |
| Update this object. More... | |
| bool | isBuiltin () const |
| True, if [b]this[/b] is a built-in object. More... | |
| virtual bool | isShared () const |
| Shared flag. More... | |
| virtual void | setShared (bool) |
| Set/reset shared flag. More... | |
| void | setDirty (bool) |
| Set/reset the [b]modified[/b] flag. More... | |
| bool | isDirty () const |
| True, if the [b]modified[/b] flag is set. More... | |
| void | setFlag (bool) |
| Flag/unflag this object, e. g. to control output of objects for. More... | |
| bool | isFlagged () const |
| True, if [b]this[/b] is flagged by setFlag(true). More... | |
| const Object * | getBaseObject () const |
| Return the object's base type object. More... | |
| const std::string & | getOpalName () const |
| Return object name. More... | |
| Object * | getParent () const |
| Return parent pointer. More... | |
| bool | isTreeMember (const Object *subTree) const |
| Test for tree membership. More... | |
| void | setOpalName (const std::string &name) |
| Set object name. More... | |
| void | setParent (Object *) |
| Set parent object. More... | |
| void | clear () |
| Clear the occurrence counter. More... | |
| int | increment () |
| Increment and return the occurrence counter. More... | |
| int | occurrenceCount () |
| Return the occurrence counter. More... | |
| void | registerReference (Invalidator *a) |
| Register a reference to this object. More... | |
| void | unregisterReference (Invalidator *a) |
| Unegister a reference to this object. More... | |
| void | registerOwnership (const AttributeHandler::OwnerType &itsClass) const |
Public Member Functions inherited from RCObject | |
| int | addReference () const |
| Increment reference count. More... | |
| int | removeReference () const |
| Decrement the reference count. More... | |
| bool | isShared () const |
| Test for sharing. More... | |
Static Public Member Functions | |
| static Table * | find (const std::string &name) |
| Find named Table. More... | |
Protected Member Functions | |
| Table (int size, const char *name, const char *help) | |
| Constructor for exemplars. More... | |
| Table (const std::string &name, Table *parent) | |
| Constructor for clones. More... | |
Protected Member Functions inherited from Object | |
| Object (int size, const char *name, const char *help) | |
| Constructor for exemplars. More... | |
| Object (const std::string &name, Object *parent) | |
| Constructor for clones. More... | |
Protected Member Functions inherited from RCObject | |
| RCObject () | |
| Default constructor. More... | |
| RCObject (const RCObject &) | |
| Copy constructor. More... | |
| virtual | ~RCObject ()=0 |
| RCObject & | operator= (const RCObject &right) |
Protected Attributes | |
| bool | dynamic |
| Flag dynamic table. More... | |
| bool | refill |
| Refill flag. More... | |
Protected Attributes inherited from Object | |
| bool | builtin |
| Built-in flag. More... | |
| bool | modified |
| Dirty flag. More... | |
| bool | flagged |
| Object flag. More... | |
Private Member Functions | |
| Table () | |
| Table (const Table &) | |
| void | operator= (const Table &) |
Additional Inherited Members | |
Public Attributes inherited from Object | |
| std::vector< Attribute > | itsAttr |
| The object attributes (see Attribute.hh). More... | |
| typedef std::vector<Cell> Table::CellArray |
|
virtual |
Definition at line 30 of file Table.cpp.
References Object::builtin, OpalData::getInstance(), and OpalData::unregisterTable().

|
protected |
|
protected |
Constructor for clones.
Definition at line 76 of file Table.cpp.
References OpalData::getInstance(), and OpalData::registerTable().

|
private |
|
private |
|
virtual |
|
pure virtual |
Refill the buffer.
Implemented in Aperture, MSplit, Survey, Insertion, and Period.
Referenced by Expressions::SCell::evaluate(), Expressions::AColumn::evaluate(), Expressions::ARow::evaluate(), Twiss::execute(), Insertion::fill(), MSplit::run(), and Aperture::run().
|
static |
Find named Table.
Definition at line 41 of file Table.cpp.
References OpalData::find(), and OpalData::getInstance().
Referenced by Expressions::SCell::evaluate(), Expressions::AColumn::evaluate(), Expressions::ARow::evaluate(), List::execute(), Insertion::fill(), Survey::fill(), MSplit::run(), and Aperture::run().

|
virtual |
|
pure virtual |
Return value in selected table cell.
Implemented in Twiss, Aperture, Survey, and MSplit.
Referenced by Expressions::SCell::evaluate().
|
pure virtual |
Return column [b]col[/b] of this table, limited by [b]range[/b].
Implemented in Twiss, Aperture, Survey, and MSplit.
Referenced by Expressions::AColumn::evaluate().
|
pure virtual |
Return the default print columns.
Implemented in Twiss, Aperture, Survey, and MSplit.
Referenced by List::list().
|
pure virtual |
|
pure virtual |
|
pure virtual |
Return a table row.
Implemented in Twiss, Aperture, Survey, and MSplit.
Referenced by Expressions::ARow::evaluate().
|
virtual |
|
pure virtual |
Find out if table depends on the object identified by [b]name[/b].
Implemented in Twiss, Survey, Aperture, and MSplit.
Referenced by OpalData::define().
|
pure virtual |
Implemented in Twiss, Survey, Aperture, and MSplit.
Referenced by Expressions::parsePrimary().
|
pure virtual |
|
private |
|
pure virtual |
Print list for the table.
Implemented in Survey, Aperture, MSplit, Insertion, and Period.
Referenced by Twiss::execute(), and List::list().
|
virtual |
|
virtual |
|
protected |
Flag dynamic table.
Definition at line 153 of file Table.h.
Referenced by Survey::execute(), MSplit::execute(), Twiss::execute(), Aperture::execute(), and invalidate().
|
protected |
Refill flag.
Definition at line 158 of file Table.h.
Referenced by Insertion::fill(), Period::fill(), Survey::fill(), MSplit::fill(), Aperture::fill(), and invalidate().
1.8.5