col_base< _TR > Class Template Reference
[Classes and types for external use]

column base class More...

#include <vdbl_col.h>

Inheritance diagram for col_base< _TR >:

Inheritance graph
[legend]
Collaboration diagram for col_base< _TR >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef _TR return_type
 return_type is the type of object stored

Public Member Functions

virtual _Selfnew_copy () const VDBL_PURE_VIRTUALvirtual void setcontext(const context *_c
virtual _Self *const _VDBL_row
*_r virtual VDBL_PURE_VIRTUAL
void 
get (return_type &c) const VDBL_PURE_VIRTUALvirtual void def(return_type &d) const VDBL_PURE_VIRTUALvirtual void get_ptr(return_type const *&c) const VDBL_PURE_VIRTUALvirtual void get_copy(return_type *&c) const
virtual void def_copy (return_type *&d) const
virtual void def_copy (_VDBL_alltype_base *&v) const
virtual void get_copy (_VDBL_alltype_base *&v) const
virtual const std::type_info & return_type_id () const
virtual std::ostream & print_contents (std::ostream &o) const


Detailed Description

template<class _TR>
class col_base< _TR >

this is the external name of the column base class

Definition at line 584 of file vdbl_col.h.


Member Function Documentation

virtual void _VDBL_colbase< _TR >::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.

Definition at line 210 of file vdbl_col.h.

virtual void _VDBL_colbase< _TR >::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.

Definition at line 188 of file vdbl_col.h.

virtual _Self* const _VDBL_row* _r virtual VDBL_PURE_VIRTUAL void _VDBL_colbase< _TR >::get ( return_type c  )  const [inline, virtual, inherited]

This function stores a copy of the column value into c. This function stores a copy of the column default value into d. This function sets c to a const pointer pointing to the column's actual value. Here, no copying is done. 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.

Reimplemented in _VDBL_mthdcol< _TC, _TM, _TR >.

Definition at line 162 of file vdbl_col.h.

virtual void _VDBL_colbase< _TR >::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.

Definition at line 197 of file vdbl_col.h.

virtual _Self* _VDBL_colbase< _TR >::new_copy (  )  const [virtual, inherited]

new_copy is the clone operation for copy-constructor overloading. setcontext sets the context for value retrieval.

Reimplemented from __VDBL_colbase.

Reimplemented in _VDBL_mthdcol< _TC, _TM, _TR >.

virtual std::ostream& _VDBL_colbase< _TR >::print_contents ( std::ostream &  o  )  const [inline, virtual, inherited]

This function is needed for the operator<< for columns of type return_type.

Reimplemented in _VDBL_mthdcol< _TC, _TM, _TR >.

Definition at line 228 of file vdbl_col.h.

virtual const std::type_info& _VDBL_colbase< _TR >::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 221 of file vdbl_col.h.


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

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