Public Member Functions | Private Member Functions | Private Attributes
Typelib::CastingVisitor< T > Class Template Reference

#include <value_cast.hh>

Inheritance diagram for Typelib::CastingVisitor< T >:
Inheritance graph
[legend]

List of all members.

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
m_value

Detailed Description

template<typename T>
class Typelib::CastingVisitor< T >

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.


Constructor & Destructor Documentation

template<typename T>
Typelib::CastingVisitor< T >::CastingVisitor ( ) [inline]

Definition at line 27 of file value_cast.hh.


Member Function Documentation

template<typename T>
T& Typelib::CastingVisitor< T >::apply ( Value  v) [inline]

Reimplemented from Typelib::ValueVisitor.

Definition at line 29 of file value_cast.hh.

template<typename T>
bool Typelib::CastingVisitor< T >::visit_ ( typename normalized_numeric_type< T >::type &  v) [inline, private]

Definition at line 19 of file value_cast.hh.


Member Data Documentation

template<typename T>
bool Typelib::CastingVisitor< T >::m_found [private]

Definition at line 16 of file value_cast.hh.

template<typename T>
T Typelib::CastingVisitor< T >::m_value [private]

Definition at line 17 of file value_cast.hh.


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


typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Thu Jan 2 2014 11:38:41