27 virtual quint64
getID()
const=0;
30 virtual QString
getName()
const=0;
33 virtual void setName(
const QString &s)=0;
35 virtual QString getLabel()
const=0;
36 virtual void setLabel(
const QString &s)=0;
42 virtual DVect2
get(
int pos)
const=0;
47 virtual double getValue(
const double &x)
const=0;
52 virtual double getSlope(
const double &x)
const=0;
56 virtual void insert(
const DVect2 &v)=0;
60 virtual void put(
int pos,
const DVect2 &v)=0;
63 virtual void putx(
int pos,
const double &x)=0;
66 virtual void puty(
int pos,
const double &y)=0;
69 virtual void sort()=0;
72 virtual void clear()=0;
75 virtual void add(
const DVect2 &v)=0;
79 virtual QVector<DVect2>
getAll()
const=0;
virtual QString getName() const =0
Returns a name associated with the table.
virtual uint getNotice() const =0
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.
namespace Itasca
Definition: basememory.cpp:9
Base class for items that will be stored in containers.
Definition: ithing.h:31
virtual QVector< DVect2 > getAll() const =0
virtual void puty(int pos, const double &y)=0
Replaces the y value of entry pos. Will expand table if pos does not exist.
virtual void putx(int pos, const double &x)=0
Replaces the x value of entry pos. Will expand table if pos does not exist.
virtual int getSize() const =0
Returns the number of pair entries in the table.
virtual const IThing * getIThing() const =0
Returns a const IThing interface for a table.
virtual DVect2 get(int pos) const =0
Returns the pos pair entry in the table. Returns (0,0) if pos does not exist.
virtual double getSlope(const double &x) const =0
virtual quint64 getID() const =0
Returns the (unique) ID number associated with the table.
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition: itable.h:20
unsigned int TType
class type indicator
Definition: basedef.h:41
virtual const ITable * getNext() const =0
Used to iterate on Tables on the global table list. See ITableList::getFirst().
virtual void insert(const DVect2 &v)=0
Interface to a particular table of values.
Definition: itable.h:17
virtual void setName(const QString &s)=0
Sets the name of the table - only used for identification and not necessarily unique.
virtual void put(int pos, const DVect2 &v)=0
virtual void sort()=0
Sorts table by x-value.
All default base headers if Qt is being used.
virtual double getValue(const double &x) const =0
Base class for items that will be stored in containers.