Typelib::CastingVisitor< T > Class Template Reference

#include <typelib/value.hh>

Inheritance diagram for Typelib::CastingVisitor< T >:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CastingVisitor ()
T & apply (Value v)


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

Constructor & Destructor Documentation

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


Member Function Documentation

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

Reimplemented from Typelib::ValueVisitor.

References Typelib::ValueVisitor::apply().

Referenced by Typelib::value_cast().


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

Generated on Thu Jan 22 16:38:09 2009 for typeLib by doxygen 1.5.6
SourceForge.net Project Page