|
|
virtual const IThing * | getIThing () const =0 |
| | Returns a const IThing interface for a table.
|
|
virtual IThing * | getIThing ()=0 |
| | Returns a IThing interface for a table.
|
|
virtual uint64 | getID () const =0 |
| | Returns the (unique) ID number associated with the table.
|
|
virtual string | getName () const =0 |
| | Returns a name associated with the table.
|
|
virtual void | setName (const string &s)=0 |
| | Sets the name of the table - only used for identification and not necessarily unique.
|
|
virtual string | getLabel () const =0 |
|
virtual void | setLabel (const string &s)=0 |
|
virtual int32 | getSize () const =0 |
| | Returns the number of pair entries in the table.
|
|
virtual DVect2 | get (const int32 pos) const =0 |
| | Returns the pos pair entry in the table. Returns (0,0) if pos does not exist.
|
| virtual double | getValue (const double x, const bool log10x=false, const bool log10y=false) const =0 |
| virtual double | getSlope (const double x, const bool log10x=false, const bool log10y=false) const =0 |
| virtual void | insert (const DVect2 &v)=0 |
| virtual void | put (const int32 pos, const DVect2 &v)=0 |
|
virtual void | putx (const int32 pos, const double x)=0 |
| | Replaces the x value of entry pos. Will expand table if pos does not exist.
|
|
virtual void | puty (const int32 pos, const double y)=0 |
| | Replaces the y value of entry pos. Will expand table if pos does not exist.
|
|
virtual void | sort ()=0 |
| | Sorts table by x-value.
|
|
virtual void | clear ()=0 |
| | Removes all table pairs - table is empty.
|
|
virtual void | add (const DVect2 &v)=0 |
| | Adds (v.x,v.y) to the end of the table - no sorting.
|
| virtual std::vector< DVect2 > | getAll () const =0 |
|
virtual const ITable * | getNext () const =0 |
| | Used to iterate on Tables on the global table list. See ITableList::getFirst().
|
| virtual uint32 | getNotice () const =0 |
Interface to a particular table of values.
An ITable is a list of number pairs (x,y), which may or may not be ordered by increasing x.
Certain functions will only produce valid results if the table is sorted.