#include <value_cast.hh>
Public Member Functions | |
T & | apply (Value v) |
CastingVisitor () | |
Private Member Functions | |
bool | visit_ (typename normalized_numeric_type< T >::type &v) |
Private Attributes | |
bool | m_found |
T | m_value |
This visitor checks that a given Value object is of the C type T. It either returns a reference to the typed value or throws BadValueCast
Definition at line 14 of file value_cast.hh.
Typelib::CastingVisitor< T >::CastingVisitor | ( | ) | [inline] |
Definition at line 27 of file value_cast.hh.
T& Typelib::CastingVisitor< T >::apply | ( | Value | v | ) | [inline] |
Reimplemented from Typelib::ValueVisitor.
Definition at line 29 of file value_cast.hh.
bool Typelib::CastingVisitor< T >::visit_ | ( | typename normalized_numeric_type< T >::type & | v | ) | [inline, private] |
Definition at line 19 of file value_cast.hh.
bool Typelib::CastingVisitor< T >::m_found [private] |
Definition at line 16 of file value_cast.hh.
T Typelib::CastingVisitor< T >::m_value [private] |
Definition at line 17 of file value_cast.hh.