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

_VDBL_stdcol< _T > Class Template Reference
[Classes and types for internal use]

generic column class for constant values More...

#include <vdbl_col.h>

Inheritance diagram for _VDBL_stdcol< _T >:

Inheritance graph
[legend]
Collaboration diagram for _VDBL_stdcol< _T >:

Collaboration graph
[legend]
List of all members.

Public Methods

 _VDBL_stdcol (const type &__t)
_Self * new_copy () const
void set (const _Self &_p)
void setcontext (const context *_c, const _VDBL_row *_r)
void def (type &d) const
void def_copy (return_type *&d) const
void get_copy (_VDBL_alltype_base *&v) const
void def_copy (_VDBL_alltype_base *&v) const
void set (const type &__t)
void set_default (const type &__t)
const type & get_val () 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 const std::type_info & return_type_id () const
 _VDBL_stdcol ()
 _VDBL_stdcol (const _Self &__c)
virtual ~_VDBL_stdcol ()

Detailed Description

template<class _T>
class _VDBL_stdcol< _T >

_VDBL_stdcol is the generic column class for constant values.

Definition at line 405 of file vdbl_col.h.


Constructor & Destructor Documentation

template<class _T>
_VDBL_stdcol< _T >::_VDBL_stdcol   [inline]
 

standard constructor, copy constructor, destructor

Definition at line 422 of file vdbl_col.h.

template<class _T>
_VDBL_stdcol< _T >::_VDBL_stdcol const _Self &    __c [inline]
 

standard constructor, copy constructor, destructor

Definition at line 423 of file vdbl_col.h.

template<class _T>
virtual _VDBL_stdcol< _T >::~_VDBL_stdcol   [inline, virtual]
 

standard constructor, copy constructor, destructor

Definition at line 424 of file vdbl_col.h.

template<class _T>
_VDBL_stdcol< _T >::_VDBL_stdcol const type &    __t [inline]
 

explicit constructor setting the column's value

Definition at line 430 of file vdbl_col.h.


Member Function Documentation

template<class _T>
void _VDBL_stdcol< _T >::def type &    d const [inline]
 

the default for the constant value coincides with the value, since in the table definition the reference object of this class will hold the default, then. There have to be different access methods get and def for more complicated column types

Definition at line 453 of file vdbl_col.h.

template<class _T>
void _VDBL_stdcol< _T >::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 from _VDBL_colbase< _T >.

Definition at line 470 of file vdbl_col.h.

template<class _T>
void _VDBL_stdcol< _T >::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 from _VDBL_colbase< _T >.

Definition at line 460 of file vdbl_col.h.

template<class _T>
void _VDBL_stdcol< _T >::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 from _VDBL_colbase< _T >.

Definition at line 463 of file vdbl_col.h.

template<class _T>
const type& _VDBL_stdcol< _T >::get_val   const [inline]
 

get a const reference to the column value

Definition at line 492 of file vdbl_col.h.

template<class _T>
_Self* _VDBL_stdcol< _T >::new_copy   const [inline, virtual]
 

new_copy is the clone operation for copy-constructor overloading.

Reimplemented from _VDBL_colbase< _T >.

Definition at line 432 of file vdbl_col.h.

virtual const std::type_info& _VDBL_colbase< _T >::return_type_id   const [inline, virtual, inherited]
 

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 _T>
void _VDBL_stdcol< _T >::set const type &    __t [inline]
 

set the column value

Definition at line 480 of file vdbl_col.h.

template<class _T>
void _VDBL_stdcol< _T >::set const _Self &    _p [inline]
 

explicit copy operation

Definition at line 437 of file vdbl_col.h.

template<class _T>
void _VDBL_stdcol< _T >::set_default const type &    __t [inline]
 

set the default value for this column. This is actually equivalent to set, since default and standard columns coincide for constant values.

Definition at line 487 of file vdbl_col.h.

virtual void _VDBL_colbase< _T >::setcontext const context   _c,
const _VDBL_row   _r
const [inline, virtual, inherited]
 

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.

template<class _T>
void _VDBL_stdcol< _T >::setcontext const context   _c,
const _VDBL_row   _r
[inline]
 

this method is empty, since constant values are independend of the context.

Definition at line 443 of file vdbl_col.h.


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