#include <typedisplay.hh>
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 |
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.
TypeDisplayVisitor::TypeDisplayVisitor | ( | std::ostream & | stream, |
std::string const & | base_indent | ||
) |
Definition at line 21 of file typedisplay.cc.
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.
std::string Typelib::TypeDisplayVisitor::m_indent [private] |
Definition at line 19 of file typedisplay.hh.
std::ostream& Typelib::TypeDisplayVisitor::m_stream [private] |
Definition at line 18 of file typedisplay.hh.