HyperspaceExplorer 0.7.1
|
Auxiliary class encapsulating printing and conversion to std::string. More...
Public Member Functions | |
RealmPrinter (const Realm *realm) | |
Initializes a RealmPrinter with a Realm. | |
void | print (std::ostream &out) const |
Prints the elements of the Realm. | |
Private Member Functions | |
void | printHeader (std::ostream &out) const |
Prints dimension of Realm and opening bracket. | |
void | printFooter (std::ostream &out) const |
Prints closing bracket. | |
void | printPoint (std::ostream &out) const |
Prints the index of a single point. | |
void | printSubrealms (std::ostream &out) const |
Prints all subrealms of the given Realm. | |
void | indentNextLine (std::ostream &out) const |
Indents a line before it is printed. | |
Private Attributes | |
const Realm * | _realm |
Realm to be printed. | |
Static Private Attributes | |
static const std::string | PRINT_DIMENSION_SPACER = " " |
Spacer to indent a line depending on the depth of recursion. | |
static unsigned | _max_dimension = 0 |
Auxiliary class encapsulating printing and conversion to std::string.
unsigned Realm::RealmPrinter::_max_dimension = 0 [static, private] |