#include <typevisitor.hh>
Public Member Functions | |
void | apply (Type const &type) |
void | apply (Type const &type) |
virtual | ~TypeVisitor () |
virtual | ~TypeVisitor () |
Protected Member Functions | |
bool | dispatch (Type const &type) |
bool | dispatch (Type const &type) |
virtual bool | visit_ (Compound const &type, Field const &field) |
virtual bool | visit_ (Compound const &type) |
virtual bool | visit_ (Container const &type) |
virtual bool | visit_ (Array const &type) |
virtual bool | visit_ (Pointer const &type) |
virtual bool | visit_ (Enum const &type) |
virtual bool | visit_ (Numeric const &type) |
virtual bool | visit_ (OpaqueType const &type) |
virtual bool | visit_ (NullType const &type) |
virtual bool | visit_ (Compound const &type, Field const &field) |
virtual bool | visit_ (Compound const &type) |
virtual bool | visit_ (Container const &type) |
virtual bool | visit_ (Array const &type) |
virtual bool | visit_ (Pointer const &type) |
virtual bool | visit_ (Enum const &type) |
virtual bool | visit_ (Numeric const &type) |
virtual bool | visit_ (OpaqueType const &type) |
virtual bool | visit_ (NullType const &type) |
Base class for type visitors Given a Type object, TypeVisitor::apply dispatches the casted type to the appropriate visit_ method
The default visit_ methods either do nothing or visits the types recursively (for arrays, pointers and compound types)
Definition at line 27 of file install/include/typelib/typevisitor.hh.
virtual Typelib::TypeVisitor::~TypeVisitor | ( | ) | [inline, virtual] |
Definition at line 45 of file install/include/typelib/typevisitor.hh.
virtual Typelib::TypeVisitor::~TypeVisitor | ( | ) | [inline, virtual] |
Definition at line 45 of file typelib/typevisitor.hh.
void Typelib::TypeVisitor::apply | ( | Type const & | type | ) |
Reimplemented in Typelib::CompileEndianSwapVisitor, and Typelib::CompileEndianSwapVisitor.
void Typelib::TypeVisitor::apply | ( | Type const & | type | ) |
Reimplemented in Typelib::CompileEndianSwapVisitor, and Typelib::CompileEndianSwapVisitor.
Definition at line 64 of file typevisitor.cc.
bool Typelib::TypeVisitor::dispatch | ( | Type const & | type | ) | [protected] |
bool Typelib::TypeVisitor::dispatch | ( | Type const & | type | ) | [protected] |
Definition at line 38 of file typevisitor.cc.
virtual bool Typelib::TypeVisitor::visit_ | ( | Compound const & | type, | |
Field const & | field | |||
) | [protected, virtual] |
Reimplemented in Typelib::TypeDisplayVisitor, Typelib::TypeDisplayVisitor, and Typelib::ValueVisitor::TypeDispatch.
virtual bool Typelib::TypeVisitor::visit_ | ( | Compound const & | type | ) | [protected, virtual] |
virtual bool Typelib::TypeVisitor::visit_ | ( | Container const & | type | ) | [protected, virtual] |
virtual bool Typelib::TypeVisitor::visit_ | ( | Array const & | type | ) | [protected, virtual] |
virtual bool Typelib::TypeVisitor::visit_ | ( | Pointer const & | type | ) | [protected, virtual] |
virtual bool Typelib::TypeVisitor::visit_ | ( | Enum const & | type | ) | [protected, virtual] |
virtual bool Typelib::TypeVisitor::visit_ | ( | Numeric const & | type | ) | [protected, virtual] |
virtual bool Typelib::TypeVisitor::visit_ | ( | OpaqueType const & | type | ) | [protected, virtual] |
virtual bool Typelib::TypeVisitor::visit_ | ( | NullType const & | type | ) | [protected, virtual] |
Reimplemented in VMCall, Typelib::TypeDisplayVisitor, AlignmentBaseTypeVisitor, and Typelib::TypeDisplayVisitor.
bool Typelib::TypeVisitor::visit_ | ( | Compound const & | type, | |
Field const & | field | |||
) | [protected, virtual] |
Reimplemented in Typelib::TypeDisplayVisitor, Typelib::TypeDisplayVisitor, and Typelib::ValueVisitor::TypeDispatch.
Definition at line 35 of file typevisitor.cc.
bool Typelib::TypeVisitor::visit_ | ( | Compound const & | type | ) | [protected, virtual] |
Reimplemented in PrepareVM, VMCall, Typelib::CompileEndianSwapVisitor, Typelib::MemLayout::Visitor, Typelib::TypeDisplayVisitor, Typelib::CompileEndianSwapVisitor, Typelib::MemLayout::Visitor, Typelib::TypeDisplayVisitor, and Typelib::ValueVisitor::TypeDispatch.
Definition at line 22 of file typevisitor.cc.
bool Typelib::TypeVisitor::visit_ | ( | Container const & | type | ) | [protected, virtual] |
Reimplemented in Typelib::CompileEndianSwapVisitor, Typelib::MemLayout::Visitor, AlignmentBaseTypeVisitor, Typelib::CompileEndianSwapVisitor, Typelib::MemLayout::Visitor, and Typelib::ValueVisitor::TypeDispatch.
Definition at line 19 of file typevisitor.cc.
bool Typelib::TypeVisitor::visit_ | ( | Array const & | type | ) | [protected, virtual] |
Reimplemented in PrepareVM, VMCall, Typelib::CompileEndianSwapVisitor, Typelib::MemLayout::Visitor, Typelib::TypeDisplayVisitor, Typelib::CompileEndianSwapVisitor, Typelib::MemLayout::Visitor, Typelib::TypeDisplayVisitor, and Typelib::ValueVisitor::TypeDispatch.
Definition at line 17 of file typevisitor.cc.
bool Typelib::TypeVisitor::visit_ | ( | Pointer const & | type | ) | [protected, virtual] |
Reimplemented in PrepareVM, VMCall, Typelib::CompileEndianSwapVisitor, Typelib::MemLayout::Visitor, Typelib::TypeDisplayVisitor, AlignmentBaseTypeVisitor, Typelib::CompileEndianSwapVisitor, Typelib::MemLayout::Visitor, Typelib::TypeDisplayVisitor, and Typelib::ValueVisitor::TypeDispatch.
Definition at line 15 of file typevisitor.cc.
bool Typelib::TypeVisitor::visit_ | ( | Enum const & | type | ) | [protected, virtual] |
Reimplemented in PrepareVM, VMCall, Typelib::CompileEndianSwapVisitor, Typelib::MemLayout::Visitor, Typelib::TypeDisplayVisitor, AlignmentBaseTypeVisitor, Typelib::CompileEndianSwapVisitor, Typelib::MemLayout::Visitor, Typelib::TypeDisplayVisitor, and Typelib::ValueVisitor::TypeDispatch.
Definition at line 12 of file typevisitor.cc.
bool Typelib::TypeVisitor::visit_ | ( | Numeric const & | type | ) | [protected, virtual] |
Reimplemented in PrepareVM, VMCall, Typelib::CompileEndianSwapVisitor, Typelib::MemLayout::Visitor, Typelib::TypeDisplayVisitor, AlignmentBaseTypeVisitor, Typelib::CompileEndianSwapVisitor, Typelib::MemLayout::Visitor, Typelib::TypeDisplayVisitor, and Typelib::ValueVisitor::TypeDispatch.
Definition at line 10 of file typevisitor.cc.
bool Typelib::TypeVisitor::visit_ | ( | OpaqueType const & | type | ) | [protected, virtual] |
Reimplemented in Typelib::CompileEndianSwapVisitor, Typelib::MemLayout::Visitor, Typelib::TypeDisplayVisitor, AlignmentBaseTypeVisitor, Typelib::CompileEndianSwapVisitor, Typelib::MemLayout::Visitor, Typelib::TypeDisplayVisitor, and Typelib::ValueVisitor::TypeDispatch.
Definition at line 8 of file typevisitor.cc.
bool Typelib::TypeVisitor::visit_ | ( | NullType const & | type | ) | [protected, virtual] |
Reimplemented in VMCall, Typelib::TypeDisplayVisitor, AlignmentBaseTypeVisitor, and Typelib::TypeDisplayVisitor.
Definition at line 6 of file typevisitor.cc.