Public Member Functions | Protected Member Functions
Typelib::TypeVisitor Class Reference

#include <typevisitor.hh>

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

List of all members.

Public Member Functions

void apply (Type const &type)
virtual ~TypeVisitor ()

Protected Member Functions

bool dispatch (Type const &type)
virtual bool visit_ (NullType const &type)
virtual bool visit_ (OpaqueType const &type)
virtual bool visit_ (Numeric const &type)
virtual bool visit_ (Enum const &type)
virtual bool visit_ (Pointer const &type)
virtual bool visit_ (Array const &type)
virtual bool visit_ (Container const &type)
virtual bool visit_ (Compound const &type)
virtual bool visit_ (Compound const &type, Field const &field)

Detailed Description

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 typevisitor.hh.


Constructor & Destructor Documentation

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

Definition at line 45 of file typevisitor.hh.


Member Function Documentation

void Typelib::TypeVisitor::apply ( Type const &  type)

Reimplemented in Typelib::CompileEndianSwapVisitor.

Definition at line 64 of file typevisitor.cc.

bool Typelib::TypeVisitor::dispatch ( Type const &  type) [protected]

Definition at line 38 of file typevisitor.cc.

bool Typelib::TypeVisitor::visit_ ( NullType const &  type) [protected, virtual]

Reimplemented in AlignmentBaseTypeVisitor, VMCall, and Typelib::TypeDisplayVisitor.

Definition at line 6 of file typevisitor.cc.

bool Typelib::TypeVisitor::visit_ ( OpaqueType const &  type) [protected, virtual]
bool Typelib::TypeVisitor::visit_ ( Numeric const &  type) [protected, virtual]
bool Typelib::TypeVisitor::visit_ ( Enum const &  type) [protected, virtual]
bool Typelib::TypeVisitor::visit_ ( Pointer const &  type) [protected, virtual]
bool Typelib::TypeVisitor::visit_ ( Array const &  type) [protected, virtual]
bool Typelib::TypeVisitor::visit_ ( Container const &  type) [protected, virtual]
bool Typelib::TypeVisitor::visit_ ( Compound const &  type) [protected, virtual]
bool Typelib::TypeVisitor::visit_ ( Compound const &  type,
Field const &  field 
) [protected, virtual]

Reimplemented in Typelib::ValueVisitor::TypeDispatch, and Typelib::TypeDisplayVisitor.

Definition at line 35 of file typevisitor.cc.


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


typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Mon Oct 6 2014 03:17:12