Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

_VDBL_view Class Reference
[Classes and types for internal use]

base class of all views. More...

#include <vdbl_view.h>

Inheritance diagram for _VDBL_view:

Inheritance graph
[legend]
Collaboration diagram for _VDBL_view:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::pair< std::string,
_VDBL_col
_T_colspec

Public Methods

 _VDBL_view (_V_enum __e=V_independent)
 _VDBL_view (const _VDBL_view &__v)
virtual ~_VDBL_view ()
virtual const std::type_info & get_colinfo (const std::string &_C_n, triple< bool, _VDBL_colid, _VDBL_colflags > &_r) const VDBL_PURE_VIRTUAL virtual bool insert(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 Methods

void made_change ()
 increment the change counter.

unsigned int get_change_ctr () const
 read the change counter

virtual triple< _VDBL_tableid,
_VDBL_colid, void * > 
_next_def_col (const _VDBL_tableid &_t, const _VDBL_colid &_c, void *_d) const VDBL_PURE_VIRTUAL virtual triple< _VDBL_tableid
virtual triple< _VDBL_tableid,
_VDBL_colid, void * > void * 
_prev_def_col (const _VDBL_tableid &_t, const _VDBL_colid &_c, void *_d) const VDBL_PURE_VIRTUAL virtual void _destroy_def_data(void *&_d) const
virtual void * _copy_def_data (void *_d) const VDBL_PURE_VIRTUAL virtual triple< _VDBL_tableid
virtual void void * _next_col (const _VDBL_tableid &_t, const _VDBL_rowid &_r, const _VDBL_colid &_c, void *_d) const VDBL_PURE_VIRTUAL virtual triple< _VDBL_tableid
virtual void void void * _prev_col (const _VDBL_tableid &_t, const _VDBL_rowid &_r, const _VDBL_colid &_c, void *_d) const VDBL_PURE_VIRTUAL virtual void _destroy_col_data(void *&_d) const
virtual void * _copy_col_data (void *_d) const VDBL_PURE_VIRTUAL virtual triple< _VDBL_tableid
virtual void void * _next_row (const _VDBL_tableid &_t, const _VDBL_rowid &_c, void *_d) const VDBL_PURE_VIRTUAL virtual triple< _VDBL_tableid
virtual void void void * _prev_row (const _VDBL_tableid &_t, const _VDBL_rowid &_c, void *_d) const VDBL_PURE_VIRTUAL virtual void _destroy_row_data(void *&_d) const
virtual void * _copy_row_data (void *_d) const VDBL_PURE_VIRTUAL public

Detailed Description

This is the base class of all views. A view in the database must be a subclass of this class.

Definition at line 78 of file vdbl_view.h.


Member Typedef Documentation

typedef std::pair<std::string,_VDBL_col> _VDBL_view::_T_colspec
 

This is the description of one column

Definition at line 84 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 461 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 324 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 590 of file vdbl_view.h.


Constructor & Destructor Documentation

_VDBL_view::_VDBL_view _V_enum    __e = V_independent [inline]
 

standard constructor which optionally initializes the view type

Definition at line 596 of file vdbl_view.h.

_VDBL_view::_VDBL_view const _VDBL_view &    __v [inline]
 

copy constructor

Definition at line 600 of file vdbl_view.h.

virtual _VDBL_view::~_VDBL_view   [inline, virtual]
 

standard destructor

Definition at line 604 of file vdbl_view.h.


Member Function Documentation

virtual void* _VDBL_view::_copy_col_data void *    _d const [protected, virtual]
 

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.

Reimplemented in _VDBL_hierarchicalview, and _VDBL_standardview.

virtual void* _VDBL_view::_copy_def_data void *    _d const [protected, virtual]
 

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.

Reimplemented in _VDBL_hierarchicalview, and _VDBL_standardview.

virtual void* _VDBL_view::_copy_row_data void *    _d const [inline, protected, virtual]
 

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 193 of file vdbl_view.h.

virtual void void* _VDBL_view::_next_col const _VDBL_tableid   _t,
const _VDBL_rowid   _r,
const _VDBL_colid   _c,
void *    _d
const [protected]
 

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.

Reimplemented in _VDBL_hierarchicalview, and _VDBL_standardview.

virtual triple<_VDBL_tableid,_VDBL_colid,void*> _VDBL_view::_next_def_col const _VDBL_tableid   _t,
const _VDBL_colid   _c,
void *    _d
const [protected, virtual]
 

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.

Reimplemented in _VDBL_hierarchicalview, and _VDBL_standardview.

virtual void void* _VDBL_view::_next_row const _VDBL_tableid   _t,
const _VDBL_rowid   _c,
void *    _d
const [protected]
 

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.

Reimplemented in _VDBL_hierarchicalview, and _VDBL_standardview.

virtual void void void* _VDBL_view::_prev_col const _VDBL_tableid   _t,
const _VDBL_rowid   _r,
const _VDBL_colid   _c,
void *    _d
const [inline, protected]
 

This function destroys the additional data needed by a _col_iterator

Reimplemented in _VDBL_hierarchicalview, and _VDBL_standardview.

Definition at line 147 of file vdbl_view.h.

virtual triple<_VDBL_tableid,_VDBL_colid,void*> void* _VDBL_view::_prev_def_col const _VDBL_tableid   _t,
const _VDBL_colid   _c,
void *    _d
const [inline, protected]
 

This function destroys the additional data needed by a _default_iterator

Reimplemented in _VDBL_hierarchicalview, and _VDBL_standardview.

Definition at line 115 of file vdbl_view.h.

virtual void void void* _VDBL_view::_prev_row const _VDBL_tableid   _t,
const _VDBL_rowid   _c,
void *    _d
const [inline, protected]
 

This function destroys the additional data needed by a _row_iterator

Reimplemented in _VDBL_hierarchicalview, and _VDBL_standardview.

Definition at line 179 of file vdbl_view.h.

virtual const std::type_info& _VDBL_view::get_colinfo const std::string &    _C_n,
triple< bool, _VDBL_colid, _VDBL_colflags > &    _r
const [inline, virtual]
 

return the type of this view

Reimplemented in _VDBL_hierarchicalview, and _VDBL_standardview.

Definition at line 613 of file vdbl_view.h.


The documentation for this class was generated from the following file:
Generated on Tue Nov 4 01:29:31 2003 for Vienna Database Library by doxygen1.2.18