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