khtml Library API Documentation

khtml::TableRowIterator Class Reference

Represents a render table as a linear list of rows. More...

#include <khtml_caret_p.h>

List of all members.

Public Methods

 TableRowIterator (RenderTable *table, bool fromEnd=false, RenderTableSection::RowStruct *row=0)
 TableRowIterator (RenderTableSection *section, int index)
 TableRowIterator ()
RenderTableSection::RowStruct * operator * ()
TableRowIterator & operator++ ()
TableRowIterator & operator-- ()


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.

Author:
Leo Savernik

Definition at line 612 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  true to iterate towards the beginning
row  pointer to row to start with, 0 starts at the first/last row.

Definition at line 1004 of file khtml_caret.cpp.

References operator *(), operator++(), and operator--().

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 630 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 637 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 642 of file khtml_caret_p.h.

Referenced by TableRowIterator().

TableRowIterator & khtml::TableRowIterator::operator++  
 

advances to the next row

Definition at line 1021 of file khtml_caret.cpp.

Referenced by TableRowIterator().

TableRowIterator & khtml::TableRowIterator::operator--  
 

advances to the previous row

Definition at line 1033 of file khtml_caret.cpp.

Referenced by TableRowIterator().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for khtml Library Version 3.2.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Feb 4 12:37:28 2004 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2003