#include <bbtkAny.h>
Public Member Functions | |
anyholder (const ValueType &value) | |
virtual const std::type_info & | type () const |
returns the type of the held value | |
virtual bool | is_pointer () const |
returns true iff the stored value is a pointer | |
virtual const std::type_info & | pointed_type () const |
returns the type of the pointed held value | |
virtual void * | get_pointer () const |
virtual void * | get_pointer_to (const std::type_info &) const |
virtual anyplaceholder * | clone () const |
Public Attributes | |
ValueType | held |
Definition at line 98 of file bbtkAny.h.
bbtk::anyholder< ValueType >::anyholder | ( | const ValueType & | value | ) | [inline] |
Definition at line 102 of file bbtkAny.h.
Referenced by bbtk::anyholder< ValueType >::clone().
00103 : held(value) 00104 {}
virtual anyplaceholder* bbtk::anyholder< ValueType >::clone | ( | ) | const [inline, virtual] |
Implements bbtk::anyplaceholder.
Definition at line 113 of file bbtkAny.h.
References bbtk::anyholder< ValueType >::anyholder(), and bbtk::anyholder< ValueType >::held.
virtual void* bbtk::anyholder< ValueType >::get_pointer | ( | ) | const [inline, virtual] |
If the held value is a pointer then returns its value
Implements bbtk::anyplaceholder.
Definition at line 111 of file bbtkAny.h.
virtual void* bbtk::anyholder< ValueType >::get_pointer_to | ( | const std::type_info & | ) | const [inline, virtual] |
virtual bool bbtk::anyholder< ValueType >::is_pointer | ( | ) | const [inline, virtual] |
returns true iff the stored value is a pointer
Implements bbtk::anyplaceholder.
Definition at line 109 of file bbtkAny.h.
virtual const std::type_info& bbtk::anyholder< ValueType >::pointed_type | ( | ) | const [inline, virtual] |
returns the type of the pointed held value
Implements bbtk::anyplaceholder.
Definition at line 110 of file bbtkAny.h.
virtual const std::type_info& bbtk::anyholder< ValueType >::type | ( | ) | const [inline, virtual] |
returns the type of the held value
Implements bbtk::anyplaceholder.
Definition at line 108 of file bbtkAny.h.
ValueType bbtk::anyholder< ValueType >::held |