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

typed_col< _T > Class Template Reference
[Classes and types for external use]

external name for constant data columns More...

#include <vdbl_col.h>

Inheritance diagram for typed_col< _T >:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef _T return_type
 return_type is the type of object stored


Public Methods

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

Detailed Description

template<class _T>
class typed_col< _T >

this is the external name of the standard column for constant data all methods are implemented in class _VDBL_stdcol<_T>.

Definition at line 598 of file vdbl_col.h.


Member Function Documentation

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

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, inherited]
 

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, inherited]
 

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, inherited]
 

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, inherited]
 

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, inherited]
 

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, inherited]
 

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, inherited]
 

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, inherited]
 

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, inherited]
 

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:43 2003 for Vienna Database Library by doxygen1.2.18