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

viewdbase Class Reference
[Classes and types for external use]

a view to a complete database More...

#include <vdbl_viewdbase.h>

Inheritance diagram for viewdbase:

Inheritance graph
[legend]
Collaboration diagram for viewdbase:

Collaboration graph
[legend]
List of all members.

Public Methods

bool has_view (const char *_C_i) const
viewbase * get_view (const char *_C_i) const
viewbase * get_view (const std::string &_C_i) const
 viewdbase ()
 viewdbase (const database &db, const userid &uid, const context &c)
template<template< class _C, class _A > class _SqCtr, class _Al>  viewdbase (const database &db, const userid &uid, const context &c, const _SqCtr< std::pair< tableid, rowid >, _Al > &__an)
virtual ~viewdbase ()
_VDBL_tableid get_tableid (const std::string &_C_i) const
bool has_view (const _VDBL_tableid &_C_i) const
bool has_view (const std::string &_C_i) const
_VDBL_viewget_view (const _VDBL_tableid &_C_i) const

Detailed Description

This class implements a view onto a complete database. The view names correspond to the names of all existing tables. Optionally, the views can be restricted to subsets of the tables. All constructed views are standard views.

Definition at line 175 of file vdbl_viewdbase.h.


Constructor & Destructor Documentation

viewdbase::viewdbase   [inline]
 

standard constructor

Definition at line 203 of file vdbl_viewdbase.h.

viewdbase::viewdbase const database   db,
const userid   uid,
const context   c
[inline]
 

constructor which builds a view to the database from

  • db -- the database
  • c -- the evaluation context for all views

Definition at line 210 of file vdbl_viewdbase.h.

template<template< class _C, class _A > class _SqCtr, class _Al>
viewdbase::viewdbase const database   db,
const userid   uid,
const context   c,
const _SqCtr< std::pair< tableid, rowid >, _Al > &    __an
[inline]
 

constructor which builds a view to the database from

  • db -- the database
  • c -- the evaluation context for all views
  • uid -- the user id of the user who owns the view The fourth argument is any sequential container of table,row pairs to which the view shall be restricted.

Definition at line 222 of file vdbl_viewdbase.h.

virtual viewdbase::~viewdbase   [inline, virtual]
 

standard destructor

Definition at line 229 of file vdbl_viewdbase.h.


Member Function Documentation

_VDBL_tableid _VDBL_viewdbase::get_tableid const std::string &    _C_i const [inline, inherited]
 

return the table id (and view id) of table _C_i

Definition at line 65 of file vdbl_viewdbase.h.

_VDBL_view* _VDBL_viewdbase::get_view const _VDBL_tableid   _C_i const [inline, inherited]
 

this method returns a pointer to the view associated to id _C_i.

Definition at line 97 of file vdbl_viewdbase.h.

viewbase* viewdbase::get_view const std::string &    _C_i const [inline]
 

this method returns a pointer to the view _C_i.

Reimplemented from _VDBL_viewdbase.

Definition at line 197 of file vdbl_viewdbase.h.

viewbase* viewdbase::get_view const char *    _C_i const [inline]
 

this method returns a pointer to the view _C_i.

Definition at line 192 of file vdbl_viewdbase.h.

bool _VDBL_viewdbase::has_view const std::string &    _C_i const [inline, inherited]
 

check whether the view _C_i exists

Definition at line 91 of file vdbl_viewdbase.h.

bool _VDBL_viewdbase::has_view const _VDBL_tableid   _C_i const [inline, inherited]
 

check whether a given view (associated to table id _C_i) exists

Definition at line 79 of file vdbl_viewdbase.h.

bool viewdbase::has_view const char *    _C_i const [inline]
 

check whether the view _C_i exists

Definition at line 187 of file vdbl_viewdbase.h.


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