21#include "../../kernel/core/datamanagement/table.hpp"
57 virtual bool CanGetValueAs(
int row,
int col,
const wxString& sTypeName);
62 virtual wxString
GetValue(
int row,
int col);
63 virtual void SetValue(
int row,
int col,
const wxString&
value);
66 virtual bool InsertRows(
size_t pos = 0,
size_t numRows = 1);
68 virtual bool DeleteRows(
size_t pos = 0,
size_t numRows = 1);
69 virtual bool InsertCols(
size_t pos = 0,
size_t numRows = 1);
71 virtual bool DeleteCols(
size_t pos = 0,
size_t numRows = 1);
This class is a specialisation for the standard wxGridTableBase supporting complex numbers as well as...
mu::value_type sum(const wxGridCellCoordsContainer &coords) const
This member function calculates the sum of the range (r1,c1)->(r2,c2).
mu::value_type avg(const wxGridCellCoordsContainer &coords) const
This member function calculates the average value of the range (r1,c1)->(r2,c2).
virtual wxString GetRowLabelValue(int row)
This virtual member function will return the label for the selected row as a string.
virtual void Clear()
This virtual function redirects the control directly to the internal buffer and cleares it contents.
virtual bool AppendCols(size_t numRows=1)
This virtual function redirects the control directly to the internal buffer and appends columns.
std::vector< std::string > getCategories(int col) const
Returns the categories in the selected column, if this is a categorical column.
virtual bool GetValueAsBool(int row, int col)
This virtual member function returns the selected cell value as a bool.
virtual wxString GetColLabelValue(int col)
This virtual member function will return the label for the selected column as a string.
virtual bool AppendRows(size_t numRows=1)
This virtual function redirects the control directly to the internal buffer and appends rows.
virtual bool DeleteRows(size_t pos=0, size_t numRows=1)
This virtual function redirects the control directly to the internal buffer and deletes rows.
GridNumeReTable()
Default constructor.
virtual ~GridNumeReTable()
virtual int GetNumberRows()
This member function will return the number of lines including the headlines handled by this data pro...
double max(const wxGridCellCoordsContainer &coords) const
This member function calculates the maximal value in the range (r1,c1)->(r2,c2).
NumeRe::Table getTableCopy()
This member function returns a copy of the internal table.
std::vector< int > getColumnTypes() const
Returns the types of the handled table.
virtual bool InsertRows(size_t pos=0, size_t numRows=1)
This virtual function redirects the control directly to the internal buffer and inserts rows.
virtual bool InsertCols(size_t pos=0, size_t numRows=1)
This virtual function redirects the control directly to the internal buffer and inserts columns.
virtual bool DeleteCols(size_t pos=0, size_t numRows=1)
This virtual function redirects the control directly to the internal buffer and deletes columns.
virtual int GetNumberCols()
This member function will return the number of columns handled by this data provider class.
virtual bool CanGetValueAs(int row, int col, const wxString &sTypeName)
This virtual member function will tell the grid, which data types may be returned by the current cell...
double min(const wxGridCellCoordsContainer &coords) const
This member function calculates the minimal value in the range (r1,c1)->(r2,c2).
virtual void SetValue(int row, int col, const wxString &value)
This virtual member function sets the passed value in the internal buffer. It's decided automatically...
NumeRe::Table & getTableRef()
This member function returns a reference to the internal table.
virtual double GetValueAsDouble(int row, int col)
This virtual member function returns the selected cell value as a double.
int getNumHeadlines() const
This member function will return the number of headlines available in the internal buffer.
virtual wxString GetValue(int row, int col)
This virtual member function returns the value of the selected cell as string.
virtual void * GetValueAsCustom(int row, int col, const wxString &sTypeName)
This member function will return the internal data as a void pointer referencing the internal mu::val...
This data container is a copy- efficient table to interchange data between Kernel and GUI.
A class to simplify the access to different types of grid cell coords. Especially useful in the conte...
MUP_BASETYPE value_type
The numeric datatype used by the parser.