#include <vdbl_col.h>
Public Member Functions | |
_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 | |
std::ostream & | print_contents (std::ostream &o) 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 |
_VDBL_mthdcol () | |
> _C_m holds the function object used | |
_VDBL_mthdcol (const _Self &__c) | |
> _C_m holds the function object used | |
virtual | ~_VDBL_mthdcol () |
> _C_m holds the function object used |
_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 505 of file vdbl_col.h.
_VDBL_mthdcol< _TC, _TM, _TR >::_VDBL_mthdcol | ( | ) | [inline] |
standard constructor, copy constructor, and destructor
Definition at line 524 of file vdbl_col.h.
_VDBL_mthdcol< _TC, _TM, _TR >::_VDBL_mthdcol | ( | const _Self & | __c | ) | [inline] |
standard constructor, copy constructor, and destructor
Definition at line 525 of file vdbl_col.h.
virtual _VDBL_mthdcol< _TC, _TM, _TR >::~_VDBL_mthdcol | ( | ) | [inline, virtual] |
standard constructor, copy constructor, and destructor
Definition at line 526 of file vdbl_col.h.
_VDBL_mthdcol< _TC, _TM, _TR >::_VDBL_mthdcol | ( | const method & | __m | ) | [inline] |
constructor for explicitely setting the method
Definition at line 532 of file vdbl_col.h.
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 delete
d by the user to avoid memory leaks.
Definition at line 188 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.
_Self* _VDBL_mthdcol< _TC, _TM, _TR >::new_copy | ( | ) | const [inline, virtual] |
new_copy
is the clone operation for copy-constructor overloading. setcontext
sets the context for value retrieval.
Reimplemented from _VDBL_colbase< _TR >.
Definition at line 534 of file vdbl_col.h.
std::ostream& _VDBL_mthdcol< _TC, _TM, _TR >::print_contents | ( | std::ostream & | o | ) | const [inline, virtual] |
This function is needed for the operator<< for columns of type return_type
.
Reimplemented from _VDBL_colbase< _TR >.
Definition at line 561 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.
virtual void _VDBL_mthdcol< _TC, _TM, _TR >::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 540 of file vdbl_col.h.