• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KHTML

  • khtml
  • TableRowIterator
Public Member Functions | Protected Attributes

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

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.

Author:
Leo Savernik

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:
tabletable to iterate through.
fromEndtrue to iterate towards the beginning
rowpointer 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:
sectiontable section to begin with
indexindex 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:
  • khtml_caret_p.h
  • khtml_caret.cpp

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal