102 (
const RangeRep &range,
const std::string &col) = 0;
121 virtual std::vector<double>
144 Table(
int size,
const char *
name,
const char *help);
A representation of an Object attribute.
The base class for all OPAL objects.
Representation of a place within a beam line or sequence.
Representation of a range within a beam line or sequence.
The base class for all OPAL tables.
virtual double getCell(const PlaceRep &row, const std::string &col)=0
Return value in selected table cell.
virtual void invalidate()
Mark this table as invalid, if it is dynamic.
virtual void printTable(std::ostream &, const CellArray &) const =0
Print list for the table.
virtual CellArray getDefault() const =0
Return the default print columns.
virtual std::vector< double > getRow(const PlaceRep &, const std::vector< std::string > &)=0
Return a table row.
virtual bool shouldUpdate() const
Update flag.
virtual const std::string getCategory() const
Return the object category as a string.
virtual Expressions::PtrToScalar< double > makeColumnExpression(const std::string &) const =0
virtual bool canReplaceBy(Object *newObject)
Test if object can be replaced.
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].
virtual bool matches(Table *rhs) const =0
Check that [b]rhs[/b] is of same type as [b]this[/b].
virtual double getLength()=0
Return the length of the table.
virtual void fill()=0
Refill the buffer.
virtual bool isDependent(const std::string &name) const =0
Find out if table depends on the object identified by [b]name[/b].
void operator=(const Table &)
std::vector< Cell > CellArray
An array of cell descriptors.
static Table * find(const std::string &name)
Find named Table.
virtual const Beamline * getLine() const =0
Return embedded CLASSIC beamline.
virtual bool shouldTrace() const
Trace flag.
bool dynamic
Flag dynamic table.
Descriptor for printing a table cell.
Cell(Expressions::PtrToScalar< double > expr, int width, int prec)
Constructor.
int printWidth
The cell width in print characters.
int printPrecision
The number of digits printed for this cell.
Expressions::PtrToScalar< double > itsExpr
The expression generating the values for this Cell.
An abstract sequence of beam line components.