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

_VDBL_mthdcol< _C, _M, _R > Class Template Reference
[Classes and types for internal use]

generic column class for methods More...

#include <vdbl_col.h>

Inheritance diagram for _VDBL_mthdcol< _C, _M, _R >:

Inheritance graph
[legend]
Collaboration diagram for _VDBL_mthdcol< _C, _M, _R >:

Collaboration graph
[legend]
List of all members.

Public Methods

 _VDBL_mthdcol (const method &__m)
_Self * new_copy () const
virtual void setcontext (const context *_c, const _VDBL_row *_r)
void get (type &c) const
 the function object provides us with the retrieval method

void get_ptr (type const *&c) const
 there is no way to get a pointer to the method's result properly

void def (type &d) const
 the default value might be different, and might be computed differently

void def_copy (return_type *&d) 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 (_VDBL_alltype_base *&v) const
virtual void get_copy (_VDBL_alltype_base *&v) const
virtual const std::type_info & return_type_id () const
 _VDBL_mthdcol ()
 _VDBL_mthdcol (const _Self &__c)
virtual ~_VDBL_mthdcol ()

Detailed Description

template<class _C, class _M, class _R>
class _VDBL_mthdcol< _C, _M, _R >

_VDBL_mthdcol is the generic column class for computed values. It allows to define a method, which is called within the given context together with a reference to the row, whenever a column is accessed.

Definition at line 506 of file vdbl_col.h.


Constructor & Destructor Documentation

template<class _C, class _M, class _R>
_VDBL_mthdcol< _C, _M, _R >::_VDBL_mthdcol   [inline]
 

standard constructor, copy constructor, and destructor

Definition at line 525 of file vdbl_col.h.

template<class _C, class _M, class _R>
_VDBL_mthdcol< _C, _M, _R >::_VDBL_mthdcol const _Self &    __c [inline]
 

standard constructor, copy constructor, and destructor

Definition at line 526 of file vdbl_col.h.

template<class _C, class _M, class _R>
virtual _VDBL_mthdcol< _C, _M, _R >::~_VDBL_mthdcol   [inline, virtual]
 

standard constructor, copy constructor, and destructor

Definition at line 527 of file vdbl_col.h.

template<class _C, class _M, class _R>
_VDBL_mthdcol< _C, _M, _R >::_VDBL_mthdcol const method   __m [inline]
 

constructor for explicitely setting the method

Definition at line 533 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, 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 in _VDBL_stdcol< _T >.

Definition at line 209 of file vdbl_col.h.

template<class _C, class _M, class _R>
void _VDBL_mthdcol< _C, _M, _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 from _VDBL_colbase< _R >.

Definition at line 559 of file vdbl_col.h.

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

Definition at line 196 of file vdbl_col.h.

template<class _C, class _M, class _R>
_Self* _VDBL_mthdcol< _C, _M, _R >::new_copy   const [inline, virtual]
 

new_copy is the clone operation for copy-constructor overloading.

Reimplemented from _VDBL_colbase< _R >.

Definition at line 535 of file vdbl_col.h.

template<class _R>
virtual const std::type_info& _VDBL_colbase< _R >::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 _R>
virtual void _VDBL_colbase< _R >::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 _C, class _M, class _R>
virtual void _VDBL_mthdcol< _C, _M, _R >::setcontext const context   _c,
const _VDBL_row   _r
[inline, virtual]
 

for setting the context, the setcontext method of the function object is used.

Definition at line 541 of file vdbl_col.h.


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