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

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

The templated class for the all_type class. More...

#include <vdbl_alltype.h>

Inheritance diagram for _VDBL_alltype< _R >:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef _R cont_type
 The type this object holds.


Public Methods

 _VDBL_alltype ()
 _VDBL_alltype (const cont_type &_p)
 _VDBL_alltype (cont_type *_p)
virtual ~_VDBL_alltype ()
const std::type_info & get_type () const
const cont_typecontent () const
void operator= (const void *p)
void operator= (const cont_type *p)
bool operator== (const _Self &p)
bool operator!= (const _Self &p)

Detailed Description

template<class _R>
class _VDBL_alltype< _R >

This class is the templated part of the all_type class. Here the member functions are implemented for every possible type. The class is merely used if values (mostly columns) of unknown type have to be returned and later need to be referenced.

Definition at line 90 of file vdbl_alltype.h.


Constructor & Destructor Documentation

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

This is the empty constructor which produces an empty all_type

Definition at line 110 of file vdbl_alltype.h.

template<class _R>
_VDBL_alltype< _R >::_VDBL_alltype const cont_type   _p [inline]
 

The standard copy constructor allocates a new data member. Note, that valid data members must provide a copy constructor.

Definition at line 116 of file vdbl_alltype.h.

template<class _R>
_VDBL_alltype< _R >::_VDBL_alltype cont_type   _p [inline]
 

this constructor is for direct setting of ALREADY allocated values! ONLY use this constructor with pointers whose contents have been allocated using new! This constructor is merely used VDBL internal.

Definition at line 123 of file vdbl_alltype.h.

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

The destructor removes the allocated data to prevent memory leaks.

Definition at line 128 of file vdbl_alltype.h.


Member Function Documentation

template<class _R>
const cont_type& _VDBL_alltype< _R >::content   const [inline]
 

This method returns a const reference to the stored data

Definition at line 139 of file vdbl_alltype.h.

template<class _R>
const std::type_info& _VDBL_alltype< _R >::get_type   const [inline]
 

This member function is used for run-time type checking. It returns the @typeid of the @cont_type.

Definition at line 134 of file vdbl_alltype.h.

template<class _R>
bool _VDBL_alltype< _R >::operator!= const _Self &    p [inline]
 

The standard comparison operators are mainly used for expressions and selectors.

Definition at line 163 of file vdbl_alltype.h.

template<class _R>
void _VDBL_alltype< _R >::operator= const cont_type   p [inline]
 

The assignment operators can take either pointers to the @cont_type or void pointers. Anyway, the data passed is copied and reallocated. So it is safe to use or destroy the data passed after the assignment operator has been called.

Definition at line 151 of file vdbl_alltype.h.

template<class _R>
void _VDBL_alltype< _R >::operator= const void *    p [inline]
 

The assignment operators can take either pointers to the @cont_type or void pointers. Anyway, the data passed is copied and reallocated. So it is safe to use or destroy the data passed after the assignment operator has been called.

Definition at line 148 of file vdbl_alltype.h.

template<class _R>
bool _VDBL_alltype< _R >::operator== const _Self &    p [inline]
 

The standard comparison operators are mainly used for expressions and selectors.

Definition at line 160 of file vdbl_alltype.h.


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