khtml::TableSectionIterator

khtml::TableSectionIterator Class Reference

#include <render_table.h>

Public Member Functions

 TableSectionIterator (RenderTable *table, bool fromEnd=false)
 
 TableSectionIterator (RenderTableSection *start)
 
 TableSectionIterator ()
 
RenderTableSection * operator* () const
 
TableSectionIteratoroperator++ ()
 
TableSectionIteratoroperator-- ()
 

Detailed Description

This class provides an iterator to iterate through the sections of a render table in their visual order.

In HTML, sections are specified in the order of THEAD, TFOOT, and TBODY. Visually, TBODY sections appear between THEAD and TFOOT, which this iterator takes into regard.

Author
Leo Savernik

Definition at line 686 of file render_table.h.

Constructor & Destructor Documentation

TableSectionIterator::TableSectionIterator ( RenderTable *  table,
bool  fromEnd = false 
)

Initializes a new iterator.

Parameters
tabletable whose sections to iterate
fromEndtrue, begin with last section, false, begin with first section.

Definition at line 3530 of file render_table.cpp.

khtml::TableSectionIterator::TableSectionIterator ( RenderTableSection *  start)
inline

Initializes a new iterator.

Parameters
starttable section to start with.

Definition at line 702 of file render_table.h.

khtml::TableSectionIterator::TableSectionIterator ( )
inline

Uninitialized iterator.

Definition at line 707 of file render_table.h.

Member Function Documentation

RenderTableSection* khtml::TableSectionIterator::operator* ( ) const
inline

Returns the current section, or 0 if the end has been reached.

Definition at line 711 of file render_table.h.

TableSectionIterator & TableSectionIterator::operator++ ( )

Moves to the next section in visual order.

Definition at line 3568 of file render_table.cpp.

TableSectionIterator & TableSectionIterator::operator-- ( )

Moves to the previous section in visual order.

Definition at line 3601 of file render_table.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon May 25 2020 22:52:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.