Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

StringTreeDump::Entry Struct Reference

#include <strtreedump.h>

Inheritance diagram for StringTreeDump::Entry:

Inheritance graph
[legend]
Collaboration diagram for StringTreeDump::Entry:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Entry (int _indent)
 Construct an entry with passed indention and empty string.

 ~Entry ()
 Destructor; nothing special.

void append (const TLString &s)
 Append string to the entry.

void RemoveEnd (char c)
void TightenSize ()

Public Attributes

TLString str
 String content of that entry.

int indent
 Indent depth.


Private Member Functions

 Entry (const Entry &)
 Do not use:.

void operator= (const Entry &)
 Do not use:.


Detailed Description

Entry in the string tree dump. We start a new entry each time the indent depth changes.
Entries are not C++-safe because of the linked list base.

Definition at line 57 of file strtreedump.h.


Constructor & Destructor Documentation

StringTreeDump::Entry::Entry int  _indent  )  [inline]
 

Construct an entry with passed indention and empty string.

Definition at line 63 of file strtreedump.h.

References indent, and str.

StringTreeDump::Entry::~Entry  )  [inline]
 

Destructor; nothing special.

Definition at line 66 of file strtreedump.h.

StringTreeDump::Entry::Entry const Entry  )  [private]
 

Do not use:.


Member Function Documentation

void StringTreeDump::Entry::append const TLString s  )  [inline]
 

Append string to the entry.

Definition at line 69 of file strtreedump.h.

References str.

Referenced by StringTreeDump::append().

void StringTreeDump::Entry::operator= const Entry  )  [private]
 

Do not use:.

void StringTreeDump::Entry::RemoveEnd char  c  ) 
 

Remove the passed character if that char is at the end of the entry.

Definition at line 22 of file strtreedump.cc.

References TLString::length(), and str.

Referenced by StringTreeDump::RemoveEnd().

void StringTreeDump::Entry::TightenSize  )  [inline]
 

Instruct the entry to free all memory which was allocated too much in advance. Do this when no more data will be appended to this entry.

Definition at line 79 of file strtreedump.h.

References str, and TLString::TightenSize().


Member Data Documentation

int StringTreeDump::Entry::indent
 

Indent depth.

Definition at line 60 of file strtreedump.h.

Referenced by StringTreeDump::append(), Entry(), and StringTreeDump::write().

TLString StringTreeDump::Entry::str
 

String content of that entry.

Definition at line 59 of file strtreedump.h.

Referenced by append(), StringTreeDump::append(), Entry(), RemoveEnd(), TightenSize(), and StringTreeDump::write().


The documentation for this struct was generated from the following files:
Generated on Sat Feb 19 22:35:41 2005 for Ray by doxygen 1.3.5