bbtkAny.h File Reference

Defines the class any which can store any type of data (adapted from boost::any). More...

#include <sstream>
#include "bbtkRTTI.h"
#include "bbtkMessageManager.h"
#include "bbtkException.h"
#include <boost/type_traits/is_pointer.hpp>

Include dependency graph for bbtkAny.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  bbtk

Classes

class  bbtk::anyplaceholder
 Abstract class used by the any class to store values. More...
class  bbtk::anyholder< ValueType >
class  bbtk::anyholder< ValueType * >
 specialization of anyholder for pointer types More...
class  bbtk::any< TypeTraits >
struct  bbtk::thing< T >
 The TypeTraits which validates any type. More...
struct  bbtk::integer< T >
 The TypeTraits which validates all integer types. More...
struct  bbtk::floating_point< T >
 The TypeTraits which validates all floating point number types. More...
struct  bbtk::number< T >
 The TypeTraits which validates all numerical types. More...

Defines

#define BBTK_DECLARE_TYPE_TRAITS(NAME)
#define BBTK_ADD_TO_TYPE_TRAITS(NAME, TYPE)   template <> bool NAME<TYPE>::value = true;

Functions

template<>
std::string bbtk::HumanTypeName< bbtk::any< bbtk::thing > > ()
template<>
std::string bbtk::HumanTypeName< bbtk::any< bbtk::thing > > (const bbtk::any< bbtk::thing > &)


Detailed Description

Defines the class any which can store any type of data (adapted from boost::any).

Definition in file bbtkAny.h.


Define Documentation

#define BBTK_ADD_TO_TYPE_TRAITS ( NAME,
TYPE   )     template <> bool NAME<TYPE>::value = true;

Definition at line 478 of file bbtkAny.h.

#define BBTK_DECLARE_TYPE_TRAITS ( NAME   ) 

Value:

template <typename T> struct NAME { static const bool value; }; \
    template <class T> const bool NAME<T>::value = false;
Macro to begin the enumeration of types included into a any_type_collection previously declared with DECLARE_any_type_collection. Must be placed in the implementation part of the code.

Definition at line 474 of file bbtkAny.h.


Generated on Wed Nov 12 11:37:14 2008 for BBTK by  doxygen 1.5.6