Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
Typelib::TypeDisplayVisitor Class Reference

#include <typedisplay.hh>

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

List of all members.

Public Member Functions

 TypeDisplayVisitor (std::ostream &stream, std::string const &base_indent)

Protected Member Functions

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

Private Member Functions

template<typename T >
void display_compound (T const &type, char const *compound_name)

Private Attributes

std::string m_indent
std::ostream & m_stream

Detailed Description

Visitor to pretty-print a Type object to an output stream. You can use stream << type and stream << type_display(type, indent) instead

Definition at line 13 of file typedisplay.hh.


Constructor & Destructor Documentation

TypeDisplayVisitor::TypeDisplayVisitor ( std::ostream &  stream,
std::string const &  base_indent 
)

Definition at line 21 of file typedisplay.cc.


Member Function Documentation

template<typename T >
void Typelib::TypeDisplayVisitor::display_compound ( T const &  type,
char const *  compound_name 
) [private]
bool TypeDisplayVisitor::visit_ ( NullType const &  type) [protected, virtual]

Reimplemented from Typelib::TypeVisitor.

Definition at line 24 of file typedisplay.cc.

bool TypeDisplayVisitor::visit_ ( OpaqueType const &  type) [protected, virtual]

Reimplemented from Typelib::TypeVisitor.

Definition at line 30 of file typedisplay.cc.

bool TypeDisplayVisitor::visit_ ( Compound const &  type) [protected, virtual]

Reimplemented from Typelib::TypeVisitor.

Definition at line 36 of file typedisplay.cc.

bool TypeDisplayVisitor::visit_ ( Compound const &  type,
Field const &  field 
) [protected, virtual]

Reimplemented from Typelib::TypeVisitor.

Definition at line 48 of file typedisplay.cc.

bool TypeDisplayVisitor::visit_ ( Numeric const &  type) [protected, virtual]

Reimplemented from Typelib::TypeVisitor.

Definition at line 56 of file typedisplay.cc.

bool TypeDisplayVisitor::visit_ ( Enum const &  type) [protected, virtual]

Reimplemented from Typelib::TypeVisitor.

Definition at line 77 of file typedisplay.cc.

bool TypeDisplayVisitor::visit_ ( Pointer const &  type) [protected, virtual]

Reimplemented from Typelib::TypeVisitor.

Definition at line 83 of file typedisplay.cc.

bool TypeDisplayVisitor::visit_ ( Array const &  type) [protected, virtual]

Reimplemented from Typelib::TypeVisitor.

Definition at line 89 of file typedisplay.cc.


Member Data Documentation

Definition at line 19 of file typedisplay.hh.

std::ostream& Typelib::TypeDisplayVisitor::m_stream [private]

Definition at line 18 of file typedisplay.hh.


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


typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Thu Jan 2 2014 11:38:41