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 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

TableSectionIterator sec
int index


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 624 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 endl().

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 642 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 649 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 654 of file khtml_caret_p.h.

TableRowIterator & khtml::TableRowIterator::operator++ (   ) 
 

advances to the next row

Definition at line 1021 of file khtml_caret.cpp.

TableRowIterator & khtml::TableRowIterator::operator-- (   ) 
 

advances to the previous row

Definition at line 1033 of file khtml_caret.cpp.


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.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Aug 20 09:50:43 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003