cpp_introspection::Type Class Reference
#include <type.h>
List of all members.
Classes |
struct | StaticInitializer |
Public Member Functions |
TypePtr | alias (const std::string &name) const |
template<typename TargetType > |
TargetType | as (const boost::any &value) const |
virtual double | as_double (const boost::any &value) const =0 |
virtual int | as_int (const boost::any &value) const =0 |
virtual std::string | as_string (const boost::any &value) const =0 |
virtual unsigned | as_unsigned (const boost::any &value) const =0 |
template<typename SourceType > |
boost::any | from (const SourceType &value) const |
virtual boost::any | from_double (double value) const =0 |
virtual boost::any | from_int (int value) const =0 |
virtual boost::any | from_string (const std::string &value) const =0 |
virtual boost::any | from_unsigned (unsigned value) const =0 |
virtual const char * | getName () const |
virtual const std::type_info & | getTypeId () const =0 |
template<typename T > |
bool | is () const |
virtual bool | isNumeric () const |
virtual bool | isString () const |
bool | operator== (const Type &other) |
| Type (const char *name) |
virtual | ~Type () |
Static Public Member Functions |
static const TypePtr & | add (const TypePtr &type, const std::string &alias=std::string()) |
Private Attributes |
const char * | name_ |
Detailed Description
Definition at line 56 of file type.h.
Constructor & Destructor Documentation
cpp_introspection::Type::Type |
( |
const char * |
name |
) |
[inline] |
virtual cpp_introspection::Type::~Type |
( |
|
) |
[inline, virtual] |
Member Function Documentation
const TypePtr & cpp_introspection::Type::add |
( |
const TypePtr & |
type, |
|
|
const std::string & |
alias = std::string() | |
|
) |
| | [static] |
TypePtr cpp_introspection::Type::alias |
( |
const std::string & |
name |
) |
const |
template<typename TargetType >
TargetType cpp_introspection::Type::as |
( |
const boost::any & |
value |
) |
const [inline] |
virtual double cpp_introspection::Type::as_double |
( |
const boost::any & |
value |
) |
const [pure virtual] |
virtual int cpp_introspection::Type::as_int |
( |
const boost::any & |
value |
) |
const [pure virtual] |
virtual std::string cpp_introspection::Type::as_string |
( |
const boost::any & |
value |
) |
const [pure virtual] |
virtual unsigned cpp_introspection::Type::as_unsigned |
( |
const boost::any & |
value |
) |
const [pure virtual] |
template<typename SourceType >
boost::any cpp_introspection::Type::from |
( |
const SourceType & |
value |
) |
const [inline] |
virtual boost::any cpp_introspection::Type::from_double |
( |
double |
value |
) |
const [pure virtual] |
virtual boost::any cpp_introspection::Type::from_int |
( |
int |
value |
) |
const [pure virtual] |
virtual boost::any cpp_introspection::Type::from_string |
( |
const std::string & |
value |
) |
const [pure virtual] |
virtual boost::any cpp_introspection::Type::from_unsigned |
( |
unsigned |
value |
) |
const [pure virtual] |
virtual const char* cpp_introspection::Type::getName |
( |
void |
|
) |
const [inline, virtual] |
virtual const std::type_info& cpp_introspection::Type::getTypeId |
( |
|
) |
const [pure virtual] |
template<typename T >
bool cpp_introspection::Type::is |
( |
|
) |
const [inline] |
virtual bool cpp_introspection::Type::isNumeric |
( |
|
) |
const [inline, virtual] |
virtual bool cpp_introspection::Type::isString |
( |
|
) |
const [inline, virtual] |
bool cpp_introspection::Type::operator== |
( |
const Type & |
other |
) |
[inline] |
Member Data Documentation
The documentation for this class was generated from the following files: