#include <value.hh>
Classes | |
class | TypeDispatch |
Public Member Functions | |
void | apply (Value v) |
virtual void | dispatch (Value v) |
ValueVisitor (bool defval=false) | |
virtual | ~ValueVisitor () |
Protected Member Functions | |
virtual bool | visit_ (int8_t &) |
virtual bool | visit_ (uint8_t &) |
virtual bool | visit_ (int16_t &) |
virtual bool | visit_ (uint16_t &) |
virtual bool | visit_ (int32_t &) |
virtual bool | visit_ (uint32_t &) |
virtual bool | visit_ (int64_t &) |
virtual bool | visit_ (uint64_t &) |
virtual bool | visit_ (float &) |
virtual bool | visit_ (double &) |
virtual bool | visit_ (Value const &v, OpaqueType const &t) |
virtual bool | visit_ (Value const &v, Pointer const &t) |
virtual bool | visit_ (Value const &v, Array const &a) |
virtual bool | visit_ (Value const &v, Container const &a) |
virtual bool | visit_ (Value const &v, Compound const &c) |
virtual bool | visit_ (Value const &v, Compound const &c, Field const &f) |
virtual bool | visit_ (Enum::integral_type &v, Enum const &e) |
Private Attributes | |
bool | m_defval |
TypeDispatch * | m_dispatcher |
Friends | |
class | TypeDispatch |
Typelib::ValueVisitor::ValueVisitor | ( | bool | defval = false | ) |
Definition at line 151 of file typelib/value.cc.
Typelib::ValueVisitor::~ValueVisitor | ( | ) | [virtual] |
Definition at line 155 of file typelib/value.cc.
void Typelib::ValueVisitor::apply | ( | Value | v | ) |
Reimplemented in Typelib::CastingVisitor< T >.
Definition at line 159 of file typelib/value.cc.
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 140 of file typelib/value.cc.
virtual bool Typelib::ValueVisitor::visit_ | ( | int8_t & | ) | [inline, protected, virtual] |
Reimplemented in typelib_ruby::RubySetter, typelib_ruby::RubyGetter, and Typelib::EndianSwapVisitor.
virtual bool Typelib::ValueVisitor::visit_ | ( | uint8_t & | ) | [inline, protected, virtual] |
Reimplemented in typelib_ruby::RubySetter, typelib_ruby::RubyGetter, and Typelib::EndianSwapVisitor.
virtual bool Typelib::ValueVisitor::visit_ | ( | int16_t & | ) | [inline, protected, virtual] |
Reimplemented in typelib_ruby::RubySetter, typelib_ruby::RubyGetter, and Typelib::EndianSwapVisitor.
virtual bool Typelib::ValueVisitor::visit_ | ( | uint16_t & | ) | [inline, protected, virtual] |
Reimplemented in typelib_ruby::RubySetter, typelib_ruby::RubyGetter, and Typelib::EndianSwapVisitor.
virtual bool Typelib::ValueVisitor::visit_ | ( | int32_t & | ) | [inline, protected, virtual] |
Reimplemented in typelib_ruby::RubySetter, typelib_ruby::RubyGetter, AssertValueVisit, and Typelib::EndianSwapVisitor.
virtual bool Typelib::ValueVisitor::visit_ | ( | uint32_t & | ) | [inline, protected, virtual] |
Reimplemented in typelib_ruby::RubySetter, typelib_ruby::RubyGetter, and Typelib::EndianSwapVisitor.
virtual bool Typelib::ValueVisitor::visit_ | ( | int64_t & | ) | [inline, protected, virtual] |
Reimplemented in typelib_ruby::RubySetter, typelib_ruby::RubyGetter, and Typelib::EndianSwapVisitor.
virtual bool Typelib::ValueVisitor::visit_ | ( | uint64_t & | ) | [inline, protected, virtual] |
Reimplemented in typelib_ruby::RubySetter, typelib_ruby::RubyGetter, and Typelib::EndianSwapVisitor.
virtual bool Typelib::ValueVisitor::visit_ | ( | float & | ) | [inline, protected, virtual] |
Reimplemented in typelib_ruby::RubySetter, typelib_ruby::RubyGetter, and Typelib::EndianSwapVisitor.
virtual bool Typelib::ValueVisitor::visit_ | ( | double & | ) | [inline, protected, virtual] |
Reimplemented in typelib_ruby::RubySetter, typelib_ruby::RubyGetter, and Typelib::EndianSwapVisitor.
bool Typelib::ValueVisitor::visit_ | ( | Value const & | v, |
OpaqueType const & | t | ||
) | [protected, virtual] |
Reimplemented in typelib_ruby::RubySetter, and typelib_ruby::RubyGetter.
Definition at line 138 of file typelib/value.cc.
bool Typelib::ValueVisitor::visit_ | ( | Value const & | v, |
Pointer const & | t | ||
) | [protected, virtual] |
Reimplemented in typelib_ruby::RubySetter, typelib_ruby::RubyGetter, and Typelib::EndianSwapVisitor.
Definition at line 111 of file typelib/value.cc.
bool Typelib::ValueVisitor::visit_ | ( | Value const & | v, |
Array const & | a | ||
) | [protected, virtual] |
Reimplemented in typelib_ruby::RubySetter, typelib_ruby::RubyGetter, and TestArrayVisitor.
Definition at line 113 of file typelib/value.cc.
bool Typelib::ValueVisitor::visit_ | ( | Value const & | v, |
Container const & | a | ||
) | [protected, virtual] |
Reimplemented in ContainerIterator, typelib_ruby::RubySetter, and typelib_ruby::RubyGetter.
Definition at line 130 of file typelib/value.cc.
bool Typelib::ValueVisitor::visit_ | ( | Value const & | v, |
Compound const & | c | ||
) | [protected, virtual] |
Reimplemented in typelib_ruby::RubySetter, and typelib_ruby::RubyGetter.
Definition at line 132 of file typelib/value.cc.
bool Typelib::ValueVisitor::visit_ | ( | Value const & | v, |
Compound const & | c, | ||
Field const & | f | ||
) | [protected, virtual] |
Reimplemented in Typelib::FieldGetter.
Definition at line 134 of file typelib/value.cc.
bool Typelib::ValueVisitor::visit_ | ( | Enum::integral_type & | v, |
Enum const & | e | ||
) | [protected, virtual] |
Reimplemented in typelib_ruby::RubySetter, typelib_ruby::RubyGetter, and Typelib::EndianSwapVisitor.
Definition at line 136 of file typelib/value.cc.
friend class TypeDispatch [friend] |
bool Typelib::ValueVisitor::m_defval [private] |
TypeDispatch* Typelib::ValueVisitor::m_dispatcher [private] |