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

_VDBL_colbase< _R > Class Template Reference
[Classes and types for internal use]

The type dependent base class of the internal column structure. More...

#include <vdbl_col.h>

Inheritance diagram for _VDBL_colbase< _R >:

Inheritance graph
[legend]
Collaboration diagram for _VDBL_colbase< _R >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef _R return_type
 return_type is the type of object stored


Public Methods

virtual _Self * new_copy () const
virtual void setcontext (const context *_c, const _VDBL_row *_r) VDBL_PURE_VIRTUAL virtual void get(return_type &c) const VDBL_PURE_VIRTUAL virtual void def(return_type &d) const VDBL_PURE_VIRTUAL virtual void get_ptr(return_type const *&c) const VDBL_PURE_VIRTUAL virtual void get_copy(return_type *&c) const
virtual void def_copy (return_type *&d) const
virtual void get_copy (_VDBL_alltype_base *&v) const
virtual void def_copy (_VDBL_alltype_base *&v) const
virtual const std::type_info & return_type_id () const
 _VDBL_colbase ()
 _VDBL_colbase (const _Self &__c)
virtual ~_VDBL_colbase ()

Detailed Description

template<class _R>
class _VDBL_colbase< _R >

_VDBL_colbase is the templated base class of all columns of the same type - for copy-constructor and get-operation overload. This class is the second step. The first step is done in __VDBL_colbase, which makes columns "type independent". The second step makes it possible to have different kinds of columns of the same type. All type dependent member functions are virtual in this class.

Definition at line 131 of file vdbl_col.h.


Constructor & Destructor Documentation

template<class _R>
_VDBL_colbase< _R >::_VDBL_colbase   [inline]
 

standard constructor, copy constructor, and destructor

Definition at line 143 of file vdbl_col.h.

template<class _R>
_VDBL_colbase< _R >::_VDBL_colbase const _Self &    __c [inline]
 

standard constructor, copy constructor, and destructor

Definition at line 144 of file vdbl_col.h.

template<class _R>
virtual _VDBL_colbase< _R >::~_VDBL_colbase   [inline, virtual]
 

standard constructor, copy constructor, and destructor

Definition at line 145 of file vdbl_col.h.


Member Function Documentation

template<class _R>
virtual void _VDBL_colbase< _R >::def_copy _VDBL_alltype_base *&    v const [inline, virtual]
 

This version of get_copy returns a copy of the columns default value within an alltype. This is useful for passing on column values. It can also be used to circumvent the strict run-time type checking. The user is, however, DISCOURAGED to do so.

Reimplemented in _VDBL_stdcol< _T >.

Definition at line 209 of file vdbl_col.h.

template<class _R>
virtual void _VDBL_colbase< _R >::def_copy return_type *&    d const [inline, virtual]
 

This function returns a pointer to a copy of the column's default value. The copy of the value is allocated by new. It has to be deleted by the user to avoid memory leaks.

Reimplemented in _VDBL_stdcol< _T >, _VDBL_mthdcol< _C, _M, _R >, and _VDBL_mthdcol< _M::context, _M, _M::return_type >.

Definition at line 187 of file vdbl_col.h.

template<class _R>
virtual void _VDBL_colbase< _R >::get_copy _VDBL_alltype_base *&    v const [inline, virtual]
 

This version of get_copy returns a copy of the columns value within an alltype. This is useful for passing on column values. It can also be used to circumvent the strict run-time type checking. The user is, however, DISCOURAGED to do so.

Reimplemented in _VDBL_stdcol< _T >.

Definition at line 196 of file vdbl_col.h.

template<class _R>
virtual _Self* _VDBL_colbase< _R >::new_copy   const [inline, virtual]
 

new_copy is the clone operation for copy-constructor overloading.

Reimplemented from __VDBL_colbase.

Reimplemented in _VDBL_stdcol< _T >, _VDBL_mthdcol< _C, _M, _R >, and _VDBL_mthdcol< _M::context, _M, _M::return_type >.

Definition at line 151 of file vdbl_col.h.

template<class _R>
virtual const std::type_info& _VDBL_colbase< _R >::return_type_id   const [inline, virtual]
 

This function returns the type_info of the column type. This information is used during run-time type checking.

Definition at line 220 of file vdbl_col.h.

template<class _R>
virtual void _VDBL_colbase< _R >::setcontext const context   _c,
const _VDBL_row   _r
const [inline, virtual]
 

This function returns a pointer to a copy of the column's value. The copy of the value is allocated by new. It has to be deleted by the user to avoid memory leaks.

Definition at line 156 of file vdbl_col.h.


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