_VDBL_viewdbase Class Reference
[Classes and types for internal use]

a view to a complete database More...

#include <vdbl_viewdbase.h>

Inheritance diagram for _VDBL_viewdbase:

Inheritance graph
[legend]
Collaboration diagram for _VDBL_viewdbase:

Collaboration graph
[legend]

List of all members.

Public Member Functions

_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
_VDBL_viewget_view (const std::string &_C_i) const
 _VDBL_viewdbase ()
 _VDBL_viewdbase (const _VDBL_database &_db, const _VDBL_userid &uid, const _VDBL_context &__c, const _V_enum &__e=V_frozen)
template<template< class _TC, class _TA > class _SqCtr, class _Al >
 _VDBL_viewdbase (const _VDBL_database &_db, const _VDBL_userid &uid, const _VDBL_context &__c, const _SqCtr< std::pair< _VDBL_tableid, _VDBL_rowid >, _Al > &__an, const _V_enum &__e=V_frozen)
virtual ~_VDBL_viewdbase ()
bool add_table_view (const _VDBL_tableid &__t, const std::string &__s, const _VDBL_context &__c)
template<template< class _TC, class _TA > class _SqCtr, class _Al >
bool add_table_view (const _VDBL_tableid &__t, const std::string &__s, const _VDBL_context &__c, const _SqCtr< std::pair< _VDBL_tableid, _VDBL_rowid >, _Al > &__an)
bool add_table_view (const std::string &__s, const _VDBL_context &__c)
template<template< class _TC, class _TA > class _SqCtr, class _Al >
bool add_table_view (const std::string &__s, const _VDBL_context &__c, const _SqCtr< std::pair< _VDBL_tableid, _VDBL_rowid >, _Al > &__an)
template<template< class _TC, class _TA > class _SqCtr, class _Al >
bool add_visible (const _SqCtr< std::pair< _VDBL_tableid, _VDBL_rowid >, _Al > &__an)
template<template< class _TC, class _TA > class _SqCtr, class _Al >
bool rm_visible (const _SqCtr< std::pair< _VDBL_tableid, _VDBL_rowid >, _Al > &__an)


Detailed Description

This class implements a view onto a complete database. The view names correspond to the names of all existing tables.

Definition at line 51 of file vdbl_viewdbase.h.


Constructor & Destructor Documentation

_VDBL_viewdbase::_VDBL_viewdbase (  )  [inline]

standard constructor

Definition at line 151 of file vdbl_viewdbase.h.

_VDBL_viewdbase::_VDBL_viewdbase ( const _VDBL_database _db,
const _VDBL_userid uid,
const _VDBL_context __c,
const _V_enum __e = V_frozen 
) [inline]

constructor which builds a view to the database from

  • _db -- the database
  • __c -- the evaluation context for all views

Definition at line 159 of file vdbl_viewdbase.h.

template<template< class _TC, class _TA > class _SqCtr, class _Al >
_VDBL_viewdbase::_VDBL_viewdbase ( const _VDBL_database _db,
const _VDBL_userid uid,
const _VDBL_context __c,
const _SqCtr< std::pair< _VDBL_tableid, _VDBL_rowid >, _Al > &  __an,
const _V_enum __e = V_frozen 
) [inline]

constructor which builds a view to the database from

  • _db -- the database
  • __c -- the evaluation context for all views The third argument is any sequential container of table,row pairs to which the view shall be restricted.

Definition at line 184 of file vdbl_viewdbase.h.

virtual _VDBL_viewdbase::~_VDBL_viewdbase (  )  [inline, virtual]

standard destructor

Definition at line 203 of file vdbl_viewdbase.h.


Member Function Documentation

template<template< class _TC, class _TA > class _SqCtr, class _Al >
bool _VDBL_viewdbase::add_table_view ( const std::string &  __s,
const _VDBL_context __c,
const _SqCtr< std::pair< _VDBL_tableid, _VDBL_rowid >, _Al > &  __an 
) [inline]

This method adds another view to the viewdb. The table name is given by __s, and the context by __c. The sequential container of table,row pairs specifies additional table,row pairs which shall be visible in the view.

Reimplemented in viewdbase.

Definition at line 264 of file vdbl_viewdbase.h.

bool _VDBL_viewdbase::add_table_view ( const std::string &  __s,
const _VDBL_context __c 
) [inline]

This method adds another view to the viewdb. The table name is given by __s, and the context by __c.

Reimplemented in viewdbase.

Definition at line 249 of file vdbl_viewdbase.h.

template<template< class _TC, class _TA > class _SqCtr, class _Al >
bool _VDBL_viewdbase::add_table_view ( const _VDBL_tableid __t,
const std::string &  __s,
const _VDBL_context __c,
const _SqCtr< std::pair< _VDBL_tableid, _VDBL_rowid >, _Al > &  __an 
) [inline]

This method adds another view to the viewdb. The table id is given by __t, the table name is given by __s, and the context by __c. The sequential container of table,row pairs specifies additional table,row pairs which shall be visible in the view.

Reimplemented in viewdbase.

Definition at line 232 of file vdbl_viewdbase.h.

bool _VDBL_viewdbase::add_table_view ( const _VDBL_tableid __t,
const std::string &  __s,
const _VDBL_context __c 
) [inline]

This method adds another view to the viewdb. The table id is given by __t, the table name is given by __s, and the context by __c.

Reimplemented in viewdbase.

Definition at line 213 of file vdbl_viewdbase.h.

template<template< class _TC, class _TA > class _SqCtr, class _Al >
bool _VDBL_viewdbase::add_visible ( const _SqCtr< std::pair< _VDBL_tableid, _VDBL_rowid >, _Al > &  __an  )  [inline]

The sequential container of table,row pairs specifies additional table,row pairs which shall be visible in the view.

Reimplemented in viewdbase.

Definition at line 278 of file vdbl_viewdbase.h.

_VDBL_tableid _VDBL_viewdbase::get_tableid ( const std::string &  _C_i  )  const [inline]

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

Definition at line 73 of file vdbl_viewdbase.h.

_VDBL_view* _VDBL_viewdbase::get_view ( const std::string &  _C_i  )  const [inline]

this method returns a pointer to the view _C_i.

Reimplemented in viewdbase.

Definition at line 145 of file vdbl_viewdbase.h.

_VDBL_view* _VDBL_viewdbase::get_view ( const _VDBL_tableid _C_i  )  const [inline]

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

Definition at line 115 of file vdbl_viewdbase.h.

bool _VDBL_viewdbase::has_view ( const std::string &  _C_i  )  const [inline]

check whether the view _C_i exists

Definition at line 109 of file vdbl_viewdbase.h.

bool _VDBL_viewdbase::has_view ( const _VDBL_tableid _C_i  )  const [inline]

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

Definition at line 92 of file vdbl_viewdbase.h.

template<template< class _TC, class _TA > class _SqCtr, class _Al >
bool _VDBL_viewdbase::rm_visible ( const _SqCtr< std::pair< _VDBL_tableid, _VDBL_rowid >, _Al > &  __an  )  [inline]

The sequential container of table,row pairs specifies table,row pairs which shall no longer be visible in the view.

Reimplemented in viewdbase.

Definition at line 292 of file vdbl_viewdbase.h.


The documentation for this class was generated from the following file:

Generated on Tue Feb 9 14:59:48 2010 for Vienna Database Library by  doxygen 1.5.8