lib

ElementIndex Class Referenceabstract

#include <kformuladefs.h>

Public Member Functions

virtual void moveToIndex (FormulaCursor *, Direction)=0
virtual void setToIndex (FormulaCursor *)=0
virtual bool hasIndex () const =0
virtual BasicElement * getElement ()=0

Detailed Description

A type that describes an index.

You can get one of those for each index from an element that owns indexes.

This type is used to work on indexes in a generic way.

Definition at line 251 of file kformuladefs.h.

Constructor & Destructor Documentation

◆ ~ElementIndex()

virtual ElementIndex::~ElementIndex ( )
inlinevirtual

Definition at line 254 of file kformuladefs.h.

Member Function Documentation

◆ getElement()

virtual BasicElement * ElementIndex::getElement ( )
pure virtual

Tells to which element the index belongs.

◆ hasIndex()

virtual bool ElementIndex::hasIndex ( ) const
pure virtual

Tells whether we own those indexes.

◆ moveToIndex()

virtual void ElementIndex::moveToIndex ( FormulaCursor * ,
Direction  )
pure virtual

Moves the cursor inside the index.

The index has to exist.

◆ setToIndex()

virtual void ElementIndex::setToIndex ( FormulaCursor * )
pure virtual

Sets the cursor to point to the place where the index normaly is.

These functions are only used if there is no such index and we want to insert them.


The documentation for this class was generated from the following file: