KHTML
khtml::TableRowIterator Class Reference
Represents a render table as a linear list of rows. More...
#include <khtml_caret_p.h>
Public Member Functions | |
| TableRowIterator (RenderTable *table, bool fromEnd=false, RenderTableSection::RowStruct *row=0) | |
| TableRowIterator (RenderTableSection *section, int index) | |
| TableRowIterator () | |
| RenderTableSection::RowStruct * | operator* () |
| TableRowIterator & | operator++ () |
| TableRowIterator & | operator-- () |
Protected Attributes | |
| int | index |
| TableSectionIterator | sec |
Detailed Description
Represents a render table as a linear list of rows.
This iterator abstracts from table sections and treats tables as a linear representation of all rows they contain.
Definition at line 868 of file khtml_caret_p.h.
Constructor & Destructor Documentation
| khtml::TableRowIterator::TableRowIterator | ( | RenderTable * | table, |
| bool | fromEnd = false, |
||
| RenderTableSection::RowStruct * | row = 0 |
||
| ) |
Constructs a new iterator.
- Parameters:
-
table table to iterate through. fromEnd trueto iterate towards the beginningrow pointer to row to start with, 0 starts at the first/last row.
Definition at line 2012 of file khtml_caret.cpp.
| khtml::TableRowIterator::TableRowIterator | ( | RenderTableSection * | section, |
| int | index | ||
| ) | [inline] |
Constructs a new iterator.
- Parameters:
-
section table section to begin with index index within table section
Definition at line 886 of file khtml_caret_p.h.
| khtml::TableRowIterator::TableRowIterator | ( | ) | [inline] |
empty constructor.
This must be assigned another iterator before it is useable.
Definition at line 893 of file khtml_caret_p.h.
Member Function Documentation
| RenderTableSection::RowStruct* khtml::TableRowIterator::operator* | ( | ) | [inline] |
returns the current table row.
- Returns:
- the row or 0 if the end of the table has been reached.
Definition at line 898 of file khtml_caret_p.h.
| TableRowIterator & khtml::TableRowIterator::operator++ | ( | ) |
advances to the next row
Definition at line 2029 of file khtml_caret.cpp.
| TableRowIterator & khtml::TableRowIterator::operator-- | ( | ) |
advances to the previous row
Definition at line 2041 of file khtml_caret.cpp.
Member Data Documentation
int khtml::TableRowIterator::index [protected] |
Definition at line 871 of file khtml_caret_p.h.
TableSectionIterator khtml::TableRowIterator::sec [protected] |
Definition at line 870 of file khtml_caret_p.h.
The documentation for this class was generated from the following files:
KDE 4.6 API Reference