An iterator to the characters in a skiprope of EditLines. More...
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) |
TextIterator & | operator++ () |
TextIterator | operator-- (int) |
TextIterator & | operator-- () |
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_type & | rep_ |
std::string | text_ |
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.
TextIterator | ( | TextIterator const & | r | ) |
Definition at line 251 of file texteditor.cxx.
TextIterator | ( | rep_type & | rep, | |
int | line, | |||
size_t | column | |||
) |
void correct_overruns | ( | ) |
Definition at line 288 of file texteditor.cxx.
void correct_underruns | ( | ) |
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 | ) |
TextIterator& operator++ | ( | ) |
TextIterator operator-- | ( | int | ) |
TextIterator& operator-- | ( | ) |
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.
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.