#include <vdbl_alltype.h>
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_type & | content () 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 |
Definition at line 91 of file vdbl_alltype.h.
_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.
_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.
_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.
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.
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.
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.
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.
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.
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.
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.
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.
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.