Search for usage in LXR

khtml::TableSectionIterator Class Reference

#include <render_table.h>

Public Member Functions

 TableSectionIterator ()
 TableSectionIterator (RenderTable *table, bool fromEnd=false)
 TableSectionIterator (RenderTableSection *start)
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.

Leo Savernik

Definition at line 686 of file render_table.h.

Constructor & Destructor Documentation

◆ TableSectionIterator() [1/3]

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

Initializes a new iterator.

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

Definition at line 3530 of file render_table.cpp.

◆ TableSectionIterator() [2/3]

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

Initializes a new iterator.

starttable section to start with.

Definition at line 702 of file render_table.h.

◆ TableSectionIterator() [3/3]

khtml::TableSectionIterator::TableSectionIterator ( )

Uninitialized iterator.

Definition at line 707 of file render_table.h.

Member Function Documentation

◆ operator*()

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

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

Definition at line 711 of file render_table.h.

◆ operator++()

TableSectionIterator & TableSectionIterator::operator++ ( )

Moves to the next section in visual order.

Definition at line 3568 of file render_table.cpp.

◆ operator--()

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-2022 The KDE developers.
Generated on Thu Aug 11 2022 03:57:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.