TextIterator Struct Reference

An iterator to the characters in a skiprope of EditLines. More...

Collaboration diagram for TextIterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void correct_overruns ()
void correct_underruns ()
bool operator!= (TextIterator const &r)
char operator* ()
 fetch the character under the iterator
TextIterator operator++ (int)
TextIteratoroperator++ ()
TextIterator operator-- (int)
TextIteratoroperator-- ()
void operator= (TextIterator const &r)
bool operator== (TextIterator const &r)
 TextIterator (rep_type &rep, int line, size_t column)
 TextIterator (TextIterator const &r)

Public Attributes

size_t col_
size_t length_
int line_
rep_typerep_
std::string text_

Detailed Description

An iterator to the characters in a skiprope of EditLines.

This iterator is expensive!

The character after the last valid date in the line accessed by this iterator -- even though it doesn't exist. That character is returned as '
'. Thus, the iterator can be used to count lines even though it spans lines when you use operator++ or minus.

Do not change the edit session while iterating over it!

Definition at line 232 of file texteditor.cxx.


Constructor & Destructor Documentation

TextIterator ( TextIterator const &  r  ) 

Definition at line 251 of file texteditor.cxx.

TextIterator ( rep_type rep,
int  line,
size_t  column 
)

Definition at line 275 of file texteditor.cxx.

Here is the call graph for this function:


Member Function Documentation

void correct_overruns (  ) 

Definition at line 288 of file texteditor.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void correct_underruns (  ) 

Definition at line 311 of file texteditor.cxx.

Here is the caller graph for this function:

bool operator!= ( TextIterator const &  r  ) 

Definition at line 384 of file texteditor.cxx.

char operator* (  ) 

fetch the character under the iterator

Definition at line 337 of file texteditor.cxx.

TextIterator operator++ ( int   ) 

Definition at line 353 of file texteditor.cxx.

Here is the call graph for this function:

TextIterator& operator++ (  ) 

Definition at line 343 of file texteditor.cxx.

Here is the call graph for this function:

TextIterator operator-- ( int   ) 

Definition at line 371 of file texteditor.cxx.

Here is the call graph for this function:

TextIterator& operator-- (  ) 

Definition at line 361 of file texteditor.cxx.

Here is the call graph for this function:

void operator= ( TextIterator const &  r  ) 

Definition at line 260 of file texteditor.cxx.

bool operator== ( TextIterator const &  r  ) 

Definition at line 379 of file texteditor.cxx.


Member Data Documentation

size_t col_

Definition at line 248 of file texteditor.cxx.

size_t length_

Definition at line 247 of file texteditor.cxx.

int line_

Definition at line 245 of file texteditor.cxx.

Definition at line 249 of file texteditor.cxx.

std::string text_

Definition at line 246 of file texteditor.cxx.


The documentation for this struct was generated from the following file:
Generated on Wed Feb 29 22:51:58 2012 for CXXUtilities by  doxygen 1.6.3