#include <vdbl_view.h>
Classes | |
struct | _col_iterator |
class | _col_iterator_base |
struct | _default_iterator |
struct | _row_iterator |
class | _row_iterator_base |
Public Types | |
typedef std::pair< std::string, _VDBL_col > | _T_colspec |
Public Member Functions | |
_VDBL_view (_V_enum __e=V_independent) | |
_VDBL_view (const _VDBL_view &__v) | |
virtual | ~_VDBL_view () |
virtual _VDBL_view * | new_copy () VDBL_PURE_VIRTUALvirtual void destroy_copy(_VDBL_view *v) VDBL_PURE_VIRTUALvirtual const std |
Protected Types | |
typedef _default_iterator < _VDBL_col, const _VDBL_col &, const _VDBL_col * > | default_const_iterator |
typedef _col_iterator < _VDBL_col, const _VDBL_col &, const _VDBL_col * > | col_const_iterator |
typedef _row_iterator < _VDBL_row, const _VDBL_row &, const _VDBL_row * > | row_const_iterator |
Protected Member Functions | |
void | made_change () |
increment the change counter. | |
unsigned int | get_change_ctr () const |
read the change counter | |
virtual std::triple < _VDBL_tableid, _VDBL_colid, void * > | _next_def_col (const _VDBL_tableid &_t, const _VDBL_colid &_c, void *_d) const VDBL_PURE_VIRTUALvirtual std |
virtual void * | _copy_def_data (void *_d) const VDBL_PURE_VIRTUALvirtual std |
virtual void * | _copy_col_data (void *_d) const VDBL_PURE_VIRTUALvirtual std |
virtual void * | _copy_row_data (void *_d) const VDBL_PURE_VIRTUAL public |
Definition at line 55 of file vdbl_view.h.
typedef std::pair<std::string,_VDBL_col> _VDBL_view::_T_colspec |
This is the description of one column
Definition at line 61 of file vdbl_view.h.
typedef _col_iterator<_VDBL_col, const _VDBL_col&, const _VDBL_col*> _VDBL_view::col_const_iterator [protected] |
const iterator over all columns
Definition at line 439 of file vdbl_view.h.
typedef _default_iterator<_VDBL_col, const _VDBL_col&, const _VDBL_col*> _VDBL_view::default_const_iterator [protected] |
const iterator over all default columns
Definition at line 301 of file vdbl_view.h.
typedef _row_iterator<_VDBL_row, const _VDBL_row&, const _VDBL_row*> _VDBL_view::row_const_iterator [protected] |
const iterator over all rows
Definition at line 568 of file vdbl_view.h.
_VDBL_view::_VDBL_view | ( | _V_enum | __e = V_independent |
) | [inline] |
standard constructor which optionally initializes the view type
Definition at line 574 of file vdbl_view.h.
_VDBL_view::_VDBL_view | ( | const _VDBL_view & | __v | ) | [inline] |
copy constructor
Definition at line 578 of file vdbl_view.h.
virtual _VDBL_view::~_VDBL_view | ( | ) | [inline, virtual] |
standard destructor
Definition at line 582 of file vdbl_view.h.
virtual void* _VDBL_view::_copy_col_data | ( | void * | _d | ) | const [inline, protected, virtual] |
This function copies the additional data needed by a _col_iterator This virtual function has to be overloaded by the derived view classes, and it performs the step to the next row for a _row_iterator
. This virtual function has to be overloaded by the derived view classes, and it performs the step to the previous row for a _row_iterator
. This function destroys the additional data needed by a _row_iterator
Reimplemented in _VDBL_hierarchicalview, and _VDBL_standardview.
Definition at line 138 of file vdbl_view.h.
virtual void* _VDBL_view::_copy_def_data | ( | void * | _d | ) | const [inline, protected, virtual] |
This function copies the additional data needed by a _default_iterator This virtual function has to be overloaded by the derived view classes, and it performs the step to the next column for a _col_iterator
. This virtual function has to be overloaded by the derived view classes, and it performs the step to the previous column for a _col_iterator
. This function destroys the additional data needed by a _col_iterator
Reimplemented in _VDBL_hierarchicalview, and _VDBL_standardview.
Definition at line 106 of file vdbl_view.h.
virtual void* _VDBL_view::_copy_row_data | ( | void * | _d | ) | const [inline, protected, virtual] |
This function copies the additional data needed by a _row_iterator This is the fundamental class for iterators over all default columns, defining basic in(de)crementation for overloading, and basic comparison.
Reimplemented in _VDBL_hierarchicalview, and _VDBL_standardview.
Definition at line 170 of file vdbl_view.h.
virtual std::triple<_VDBL_tableid,_VDBL_colid,void*> _VDBL_view::_next_def_col | ( | const _VDBL_tableid & | _t, | |
const _VDBL_colid & | _c, | |||
void * | _d | |||
) | const [inline, protected, virtual] |
This virtual function has to be overloaded by the derived view classes, and it performs the step to the next default of a column a _default_iterator
. This virtual function has to be overloaded by the derived view classes, and it performs the step to the previous default of a column a _default_iterator
. This function destroys the additional data needed by a _default_iterator
Reimplemented in _VDBL_hierarchicalview, and _VDBL_standardview.
Definition at line 82 of file vdbl_view.h.
virtual _VDBL_view* _VDBL_view::new_copy | ( | ) | const [inline, virtual] |
clone operation clone destructor return the column information for column _C_n
. the return value is a reference to the type_info
of the column's value type. The reference _r
contains upon returning whether the function was successful, the column id, and the column flags. return a reference to the type_info
of the column's value type. insert a new row of specification _row
into the table, and return the row id of the newly created row in _r
. The function returns true
, if inserting was successful. remove the row with it _ri
from the table return whether the column _C_n
is defined in the table return table id and column id of column _C_n
return column name of column _C_n
return a const reference to the column with column id _ci
in row _ri.second
of table ri.first
. If successful, set error
to false
, and to true
otherwise. Note that in this function the context for the column is NOT set. This method adds the row ids in _rs
to the visible part of the view. This method removes the row ids in _rs
from the visible part of the view. print the contents of the column with column id _ci
in row _ri.second
of table ri.first
. If the row is empty and no default is defined, print nothing. return a const reference to the row with row id _ri.second
of table ri.first
. If successful, set error
to false
, and to true
otherwise. return a const reference to the default column with column id _ri.second
of table ri.first
. If successful, set error
to false
, and to true
otherwise. return iterator to first default column return iterator beyond last default column return iterator to first row return iterator beyond last row return iterator to first column return iterator beyond last column return the type of this view
Definition at line 587 of file vdbl_view.h.