Public Types | Public Member Functions | List of all members
cpp_introspection::NumericType< T > Class Template Reference

#include <type.h>

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

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 ()
 
- Public Member Functions inherited from cpp_introspection::Type
TypePtr alias (const std::string &name) const
 
template<typename TargetType >
TargetType as (const boost::any &value) const
 
template<typename SourceType >
boost::any from (const SourceType &value) const
 
virtual const char * getName () const
 
template<typename T >
bool is () const
 
virtual bool isString () const
 
bool operator== (const Type &other)
 
 Type (const char *name)
 
virtual ~Type ()
 

Additional Inherited Members

- Static Public Member Functions inherited from cpp_introspection::Type
static const TypePtradd (const TypePtr &type, const std::string &alias=std::string())
 

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

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
inlinevirtual

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
inlinevirtual

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
inlinevirtual

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
inlinevirtual

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
inlinevirtual

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
inlinevirtual

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
inlinevirtual

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
inlinevirtual

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
inlinevirtual

Implements cpp_introspection::Type.

Definition at line 118 of file type.h.

template<typename T >
virtual bool cpp_introspection::NumericType< T >::isNumeric ( ) const
inlinevirtual

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 Mon Jun 10 2019 12:56:18