#include <bbtkAny.h>
Public Member Functions | |
virtual | ~anyplaceholder () |
virtual const std::type_info & | type () const =0 |
returns the type of the held value | |
virtual const std::type_info & | pointed_type () const =0 |
returns the type of the pointed held value | |
virtual bool | is_pointer () const =0 |
returns true iff the stored value is a pointer | |
virtual void * | get_pointer () const =0 |
virtual void * | get_pointer_to (const std::type_info &) const =0 |
virtual anyplaceholder * | clone () const =0 |
Definition at line 66 of file bbtkAny.h.
virtual bbtk::anyplaceholder::~anyplaceholder | ( | ) | [inline, virtual] |
virtual anyplaceholder* bbtk::anyplaceholder::clone | ( | ) | const [pure virtual] |
Implemented in bbtk::anyholder< ValueType >, and bbtk::anyholder< ValueType * >.
virtual void* bbtk::anyplaceholder::get_pointer | ( | ) | const [pure virtual] |
If the held value is a pointer then returns its value
Implemented in bbtk::anyholder< ValueType >, and bbtk::anyholder< ValueType * >.
Referenced by bbtk::any< TypeTraits >::get_pointer().
virtual void* bbtk::anyplaceholder::get_pointer_to | ( | const std::type_info & | ) | const [pure virtual] |
Implemented in bbtk::anyholder< ValueType >, and bbtk::anyholder< ValueType * >.
Referenced by bbtk::any< TypeTraits >::get_pointer_to().
virtual bool bbtk::anyplaceholder::is_pointer | ( | ) | const [pure virtual] |
returns true iff the stored value is a pointer
Implemented in bbtk::anyholder< ValueType >, and bbtk::anyholder< ValueType * >.
Referenced by bbtk::any< TypeTraits >::contains_pointer().
virtual const std::type_info& bbtk::anyplaceholder::pointed_type | ( | ) | const [pure virtual] |
returns the type of the pointed held value
Implemented in bbtk::anyholder< ValueType >, and bbtk::anyholder< ValueType * >.
Referenced by bbtk::any< TypeTraits >::pointed_type().
virtual const std::type_info& bbtk::anyplaceholder::type | ( | ) | const [pure virtual] |
returns the type of the held value
Implemented in bbtk::anyholder< ValueType >, and bbtk::anyholder< ValueType * >.
Referenced by bbtk::any< TypeTraits >::type().