#include <typedisplay.hh>
Public Member Functions | |
TypeDisplayVisitor (std::ostream &stream, std::string const &base_indent) | |
TypeDisplayVisitor (std::ostream &stream, std::string const &base_indent) | |
Protected Member Functions | |
bool | visit_ (Array const &type) |
bool | visit_ (Pointer const &type) |
bool | visit_ (Enum const &type) |
bool | visit_ (Numeric const &type) |
bool | visit_ (Compound const &type, Field const &field) |
bool | visit_ (Compound const &type) |
bool | visit_ (OpaqueType const &type) |
bool | visit_ (NullType const &type) |
bool | visit_ (Array const &type) |
bool | visit_ (Pointer const &type) |
bool | visit_ (Enum const &type) |
bool | visit_ (Numeric const &type) |
bool | visit_ (Compound const &type, Field const &field) |
bool | visit_ (Compound const &type) |
bool | visit_ (OpaqueType const &type) |
bool | visit_ (NullType const &type) |
Private Member Functions | |
template<typename T > | |
void | display_compound (T const &type, char const *compound_name) |
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 install/include/typelib/typedisplay.hh.
TypeDisplayVisitor::TypeDisplayVisitor | ( | std::ostream & | stream, | |
std::string const & | base_indent | |||
) |
Definition at line 21 of file typedisplay.cc.
Typelib::TypeDisplayVisitor::TypeDisplayVisitor | ( | std::ostream & | stream, | |
std::string const & | base_indent | |||
) |
void Typelib::TypeDisplayVisitor::display_compound | ( | T const & | type, | |
char const * | compound_name | |||
) | [inline, private] |
void Typelib::TypeDisplayVisitor::display_compound | ( | T const & | type, | |
char const * | compound_name | |||
) | [inline, private] |
bool Typelib::TypeDisplayVisitor::visit_ | ( | Array const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
bool Typelib::TypeDisplayVisitor::visit_ | ( | Pointer const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
bool Typelib::TypeDisplayVisitor::visit_ | ( | Enum const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
bool Typelib::TypeDisplayVisitor::visit_ | ( | Numeric const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
bool Typelib::TypeDisplayVisitor::visit_ | ( | Compound const & | type, | |
Field const & | field | |||
) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
bool Typelib::TypeDisplayVisitor::visit_ | ( | Compound const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
bool Typelib::TypeDisplayVisitor::visit_ | ( | OpaqueType const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
bool Typelib::TypeDisplayVisitor::visit_ | ( | NullType const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
bool TypeDisplayVisitor::visit_ | ( | Array const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 89 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_ | ( | Enum const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 77 of file typedisplay.cc.
bool TypeDisplayVisitor::visit_ | ( | Numeric const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 56 of file typedisplay.cc.
Reimplemented from Typelib::TypeVisitor.
Definition at line 48 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_ | ( | OpaqueType const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 30 of file typedisplay.cc.
bool TypeDisplayVisitor::visit_ | ( | NullType const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 24 of file typedisplay.cc.
std::string Typelib::TypeDisplayVisitor::m_indent [private] |
Definition at line 19 of file install/include/typelib/typedisplay.hh.
std::ostream & Typelib::TypeDisplayVisitor::m_stream [private] |
Definition at line 18 of file install/include/typelib/typedisplay.hh.