Typelib::ValueVisitor Class Reference

#include <value.hh>

Inheritance diagram for Typelib::ValueVisitor:
Inheritance graph
[legend]

List of all members.

Classes

class  TypeDispatch

Public Member Functions

void apply (Value v)
void apply (Value v)
virtual void dispatch (Value v)
virtual void dispatch (Value v)
 ValueVisitor (bool defval=false)
 ValueVisitor (bool defval=false)
virtual ~ValueVisitor ()
virtual ~ValueVisitor ()

Protected Member Functions

virtual bool visit_ (Enum::integral_type &v, Enum const &e)
virtual bool visit_ (Value const &v, Compound const &c, Field const &f)
virtual bool visit_ (Value const &v, Compound const &c)
virtual bool visit_ (Value const &v, Container const &a)
virtual bool visit_ (Value const &v, Array const &a)
virtual bool visit_ (Value const &v, Pointer const &t)
virtual bool visit_ (Value const &v, OpaqueType const &t)
virtual bool visit_ (double &)
virtual bool visit_ (float &)
virtual bool visit_ (uint64_t &)
virtual bool visit_ (int64_t &)
virtual bool visit_ (uint32_t &)
virtual bool visit_ (int32_t &)
virtual bool visit_ (uint16_t &)
virtual bool visit_ (int16_t &)
virtual bool visit_ (uint8_t &)
virtual bool visit_ (int8_t &)
virtual bool visit_ (Enum::integral_type &v, Enum const &e)
virtual bool visit_ (Value const &v, Compound const &c, Field const &f)
virtual bool visit_ (Value const &v, Compound const &c)
virtual bool visit_ (Value const &v, Container const &a)
virtual bool visit_ (Value const &v, Array const &a)
virtual bool visit_ (Value const &v, Pointer const &t)
virtual bool visit_ (Value const &v, OpaqueType const &t)
virtual bool visit_ (double &)
virtual bool visit_ (float &)
virtual bool visit_ (uint64_t &)
virtual bool visit_ (int64_t &)
virtual bool visit_ (uint32_t &)
virtual bool visit_ (int32_t &)
virtual bool visit_ (uint16_t &)
virtual bool visit_ (int16_t &)
virtual bool visit_ (uint8_t &)
virtual bool visit_ (int8_t &)

Private Attributes

bool m_defval
TypeDispatchm_dispatcher

Friends

class TypeDispatch

Detailed Description

A visitor object that can be used to discover the type of a Value object

Definition at line 45 of file install/include/typelib/value.hh.


Constructor & Destructor Documentation

Typelib::ValueVisitor::ValueVisitor ( bool  defval = false  )  [inline]

Definition at line 74 of file install/include/typelib/value.hh.

virtual Typelib::ValueVisitor::~ValueVisitor (  )  [inline, virtual]

Definition at line 76 of file install/include/typelib/value.hh.

Typelib::ValueVisitor::ValueVisitor ( bool  defval = false  )  [inline]

Definition at line 74 of file typelib/value.hh.

virtual Typelib::ValueVisitor::~ValueVisitor (  )  [inline, virtual]

Definition at line 76 of file typelib/value.hh.


Member Function Documentation

void Typelib::ValueVisitor::apply ( Value  v  ) 

Reimplemented in Typelib::CastingVisitor< T >.

void Typelib::ValueVisitor::apply ( Value  v  ) 

Reimplemented in Typelib::CastingVisitor< T >.

Definition at line 150 of file typelib/value.cc.

virtual void Typelib::ValueVisitor::dispatch ( Value  v  )  [virtual]

This is for internal use only. To visit a Value object, use apply

Reimplemented in ContainerIterator.

void Typelib::ValueVisitor::dispatch ( Value  v  )  [virtual]

This is for internal use only. To visit a Value object, use apply

Reimplemented in ContainerIterator.

Definition at line 139 of file typelib/value.cc.

virtual bool Typelib::ValueVisitor::visit_ ( Enum::integral_type v,
Enum const &  e 
) [protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( Value const &  v,
Compound const &  c,
Field const &  f 
) [protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( Value const &  v,
Compound const &  c 
) [protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( Value const &  v,
Container const &  a 
) [protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( Value const &  v,
Array const &  a 
) [protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( Value const &  v,
Pointer const &  t 
) [protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( Value const &  v,
OpaqueType const &  t 
) [protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( double &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( float &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( uint64_t &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( int64_t &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( uint32_t &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( int32_t &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( uint16_t &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( int16_t &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( uint8_t &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( int8_t &   )  [inline, protected, virtual]
bool Typelib::ValueVisitor::visit_ ( Enum::integral_type v,
Enum const &  e 
) [protected, virtual]
bool Typelib::ValueVisitor::visit_ ( Value const &  v,
Compound const &  c,
Field const &  f 
) [protected, virtual]

Reimplemented in Typelib::FieldGetter, and Typelib::FieldGetter.

Definition at line 133 of file typelib/value.cc.

bool Typelib::ValueVisitor::visit_ ( Value const &  v,
Compound const &  c 
) [protected, virtual]

Reimplemented in typelib_ruby::RubyGetter, and typelib_ruby::RubySetter.

Definition at line 131 of file typelib/value.cc.

bool Typelib::ValueVisitor::visit_ ( Value const &  v,
Container const &  a 
) [protected, virtual]

Reimplemented in ContainerIterator, typelib_ruby::RubyGetter, and typelib_ruby::RubySetter.

Definition at line 129 of file typelib/value.cc.

bool Typelib::ValueVisitor::visit_ ( Value const &  v,
Array const &  a 
) [protected, virtual]

Reimplemented in typelib_ruby::RubyGetter, typelib_ruby::RubySetter, and TestArrayVisitor.

Definition at line 112 of file typelib/value.cc.

bool Typelib::ValueVisitor::visit_ ( Value const &  v,
Pointer const &  t 
) [protected, virtual]
bool Typelib::ValueVisitor::visit_ ( Value const &  v,
OpaqueType const &  t 
) [protected, virtual]

Reimplemented in typelib_ruby::RubyGetter, and typelib_ruby::RubySetter.

Definition at line 137 of file typelib/value.cc.

virtual bool Typelib::ValueVisitor::visit_ ( double &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( float &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( uint64_t &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( int64_t &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( uint32_t &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( int32_t &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( uint16_t &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( int16_t &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( uint8_t &   )  [inline, protected, virtual]
virtual bool Typelib::ValueVisitor::visit_ ( int8_t &   )  [inline, protected, virtual]

Friends And Related Function Documentation

TypeDispatch [friend]

Definition at line 47 of file install/include/typelib/value.hh.


Member Data Documentation

Definition at line 49 of file install/include/typelib/value.hh.

Definition at line 51 of file install/include/typelib/value.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Fri Jan 11 09:37:02 2013