Public Types | Public Member Functions
cpp_introspection::NumericType< T > Class Template Reference

#include <type.h>

Inheritance diagram for cpp_introspection::NumericType< T >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef T type

Public Member Functions

virtual double as_double (const boost::any &value) const
virtual int as_int (const boost::any &value) const
virtual std::string as_string (const boost::any &value) const
virtual unsigned as_unsigned (const boost::any &value) const
virtual boost::any from_double (double value) const
virtual boost::any from_int (int value) const
virtual boost::any from_string (const std::string &value) const
virtual boost::any from_unsigned (unsigned value) const
virtual const std::type_info & getTypeId () const
virtual bool isNumeric () const
 NumericType (const char *name)
virtual ~NumericType ()

Detailed Description

template<typename T>
class cpp_introspection::NumericType< T >

Definition at line 110 of file type.h.


Member Typedef Documentation

template<typename T >
typedef T cpp_introspection::NumericType< T >::type

Definition at line 113 of file type.h.


Constructor & Destructor Documentation

template<typename T >
cpp_introspection::NumericType< T >::NumericType ( const char *  name) [inline]

Definition at line 115 of file type.h.

template<typename T >
virtual cpp_introspection::NumericType< T >::~NumericType ( ) [inline, virtual]

Definition at line 116 of file type.h.


Member Function Documentation

template<typename T >
virtual double cpp_introspection::NumericType< T >::as_double ( const boost::any &  value) const [inline, virtual]

Implements cpp_introspection::Type.

Definition at line 122 of file type.h.

template<typename T >
virtual int cpp_introspection::NumericType< T >::as_int ( const boost::any &  value) const [inline, virtual]

Implements cpp_introspection::Type.

Definition at line 123 of file type.h.

template<typename T >
virtual std::string cpp_introspection::NumericType< T >::as_string ( const boost::any &  value) const [inline, virtual]

Implements cpp_introspection::Type.

Definition at line 121 of file type.h.

template<typename T >
virtual unsigned cpp_introspection::NumericType< T >::as_unsigned ( const boost::any &  value) const [inline, virtual]

Implements cpp_introspection::Type.

Definition at line 124 of file type.h.

template<typename T >
virtual boost::any cpp_introspection::NumericType< T >::from_double ( double  value) const [inline, virtual]

Implements cpp_introspection::Type.

Definition at line 126 of file type.h.

template<typename T >
virtual boost::any cpp_introspection::NumericType< T >::from_int ( int  value) const [inline, virtual]

Implements cpp_introspection::Type.

Definition at line 127 of file type.h.

template<typename T >
virtual boost::any cpp_introspection::NumericType< T >::from_string ( const std::string &  value) const [inline, virtual]

Implements cpp_introspection::Type.

Definition at line 125 of file type.h.

template<typename T >
virtual boost::any cpp_introspection::NumericType< T >::from_unsigned ( unsigned  value) const [inline, virtual]

Implements cpp_introspection::Type.

Definition at line 128 of file type.h.

template<typename T >
virtual const std::type_info& cpp_introspection::NumericType< T >::getTypeId ( ) const [inline, virtual]

Implements cpp_introspection::Type.

Definition at line 118 of file type.h.

template<typename T >
virtual bool cpp_introspection::NumericType< T >::isNumeric ( ) const [inline, virtual]

Reimplemented from cpp_introspection::Type.

Definition at line 119 of file type.h.


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


cpp_introspection
Author(s): Johannes Meyer
autogenerated on Sat Jun 8 2019 19:46:00