bbtk::anyplaceholder Class Reference

Abstract class used by the any class to store values. More...

#include <bbtkAny.h>

Inheritance diagram for bbtk::anyplaceholder:

Inheritance graph
[legend]

List of all members.

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 anyplaceholderclone () const =0


Detailed Description

Abstract class used by the any class to store values.

Definition at line 88 of file bbtkAny.h.


Constructor & Destructor Documentation

virtual bbtk::anyplaceholder::~anyplaceholder (  )  [inline, virtual]

Definition at line 92 of file bbtkAny.h.

00092 {}


Member Function Documentation

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

virtual anyplaceholder* bbtk::anyplaceholder::clone (  )  const [pure virtual]


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

Generated on Wed Nov 12 11:38:24 2008 for BBTK by  doxygen 1.5.6