_VDBL_alltype< _TR > 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< _TR >:

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

Collaboration graph
[legend]

List of all members.

Public Types

typedef _TR cont_type
 The type this object holds.

Public Member Functions

 _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 _VDBL_alltype_base &p) const
bool operator!= (const _VDBL_alltype_base &p) const
bool operator== (const _Self &p) const
bool operator!= (const _Self &p) const


Detailed Description

template<class _TR>
class _VDBL_alltype< _TR >

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 91 of file vdbl_alltype.h.


Constructor & Destructor Documentation

template<class _TR>
_VDBL_alltype< _TR >::_VDBL_alltype (  )  [inline]

This is the empty constructor which produces an empty all_type

Definition at line 111 of file vdbl_alltype.h.

template<class _TR>
_VDBL_alltype< _TR >::_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 117 of file vdbl_alltype.h.

template<class _TR>
_VDBL_alltype< _TR >::_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 124 of file vdbl_alltype.h.

template<class _TR>
virtual _VDBL_alltype< _TR >::~_VDBL_alltype (  )  [inline, virtual]

The destructor removes the allocated data to prevent memory leaks.

Definition at line 129 of file vdbl_alltype.h.


Member Function Documentation

template<class _TR>
const cont_type& _VDBL_alltype< _TR >::content (  )  const [inline]

This method returns a const reference to the stored data

Definition at line 140 of file vdbl_alltype.h.

template<class _TR>
const std::type_info& _VDBL_alltype< _TR >::get_type (  )  const [inline]

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

Definition at line 135 of file vdbl_alltype.h.

template<class _TR>
bool _VDBL_alltype< _TR >::operator!= ( const _Self p  )  const [inline]

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

Definition at line 175 of file vdbl_alltype.h.

template<class _TR>
bool _VDBL_alltype< _TR >::operator!= ( const _VDBL_alltype_base p  )  const [inline]

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

Definition at line 164 of file vdbl_alltype.h.

template<class _TR>
void _VDBL_alltype< _TR >::operator= ( const cont_type p  )  [inline]

The assignment operators can take either pointers to the 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 152 of file vdbl_alltype.h.

template<class _TR>
void _VDBL_alltype< _TR >::operator= ( const void *  p  )  [inline]

The assignment operators can take either pointers to the 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 149 of file vdbl_alltype.h.

template<class _TR>
bool _VDBL_alltype< _TR >::operator== ( const _Self p  )  const [inline]

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

Definition at line 174 of file vdbl_alltype.h.

template<class _TR>
bool _VDBL_alltype< _TR >::operator== ( const _VDBL_alltype_base p  )  const [inline]

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

Definition at line 161 of file vdbl_alltype.h.


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

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