HyperspaceExplorer 0.7.1
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
Realm::RealmPrinter Class Reference

Auxiliary class encapsulating printing and conversion to std::string. More...

Collaboration diagram for Realm::RealmPrinter:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Auxiliary class encapsulating printing and conversion to std::string.


Member Data Documentation

unsigned Realm::RealmPrinter::_max_dimension = 0 [static, private]

Highest dimension of a Realm encountered during program run; used for print formatting

Referenced by print().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:18 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo