• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

okteta

KHE::KSection

KHE::KSection Class Reference

#include <ksection.h>

Inheritance diagram for KHE::KSection:

Inheritance graph
[legend]

List of all members.


Detailed Description

describes a section of indizes

Author:
Friedrich W. H. Kossebau

Definition at line 37 of file ksection.h.


Public Member Functions

void adaptToReplacement (int Pos, int removedLength, int insertedLength)
bool append (const KSection &other)
bool isJoinable (const KSection &other) const
 KSection ()
 KSection (const KSection &other)
 KSection (int startIndex, int endIndex)
int localIndex (int index) const
KSection localSection (const KSection &other) const
void moveToEnd (int end)
void moveToStart (int other)
int nextBeforeStart () const
int nextBehindEnd () const
KSection & operator= (const KSection &other)
bool operator== (const KSection &other) const
bool prepend (const KSection &other)
KSection remove (const KSection &removeSection)
KSection removeLocal (const KSection &removeSection)
void restrictEndByWidth (int width)
void setByWidth (int other, int width)
void setEndByWidth (int width)
void setEndNextBefore (int index)
void setEndNextBefore (const KSection &other)
void setStartByWidth (int width)
void setStartNextBehind (int index)
void setStartNextBehind (const KSection &other)
KSection splitAt (int index)
KSection splitAtLocal (int index)
int startForInclude (const KSection &other) const
KSection subSection (const KSection &localSection) const
int width () const
 ~KSection ()

Static Public Member Functions

static KSection fromWidth (int width)
static KSection fromWidth (int startIndex, int width)

Constructor & Destructor Documentation

KHE::KSection::KSection ( int  startIndex,
int  endIndex 
) [inline]

constructs a section

Parameters:
startIndex starting index
endIndex end index

Definition at line 53 of file ksection.h.

KHE::KSection::KSection ( const KSection &  other  )  [inline]

Definition at line 54 of file ksection.h.

KHE::KSection::KSection (  )  [inline]

Definition at line 55 of file ksection.h.

KHE::KSection::~KSection (  )  [inline]

Definition at line 56 of file ksection.h.


Member Function Documentation

void KHE::KSection::adaptToReplacement ( int  Pos,
int  removedLength,
int  insertedLength 
)

Definition at line 28 of file ksection.cpp.

bool KHE::KSection::append ( const KSection &  other  )  [inline]

Definition at line 192 of file ksection.h.

KSection KHE::KSection::fromWidth ( int  width  )  [inline, static]

Definition at line 128 of file ksection.h.

KSection KHE::KSection::fromWidth ( int  startIndex,
int  width 
) [inline, static]

constructs a section by width

Parameters:
startIndex starting index
width width of the section

Definition at line 127 of file ksection.h.

bool KHE::KSection::isJoinable ( const KSection &  other  )  const [inline]

Returns:
true if both section .

If one of both is invalid the behaviour is undefined

Definition at line 187 of file ksection.h.

int KHE::KSection::localIndex ( int  index  )  const [inline]

Returns:
index relative to the start

Definition at line 175 of file ksection.h.

KSection KHE::KSection::localSection ( const KSection &  other  )  const [inline]

Definition at line 176 of file ksection.h.

void KHE::KSection::moveToEnd ( int  end  )  [inline]

moves the range defined by a new end.

If the range is invalid the behaviour is undefined

Definition at line 148 of file ksection.h.

void KHE::KSection::moveToStart ( int  other  )  [inline]

moves the range defined by a new start.

If the range is invalid the behaviour is undefined

Definition at line 147 of file ksection.h.

int KHE::KSection::nextBeforeStart (  )  const [inline]

Definition at line 135 of file ksection.h.

int KHE::KSection::nextBehindEnd (  )  const [inline]

Definition at line 136 of file ksection.h.

KSection & KHE::KSection::operator= ( const KSection &  other  )  [inline]

Definition at line 132 of file ksection.h.

bool KHE::KSection::operator== ( const KSection &  other  )  const [inline]

Definition at line 130 of file ksection.h.

bool KHE::KSection::prepend ( const KSection &  other  )  [inline]

Definition at line 190 of file ksection.h.

KSection KHE::KSection::remove ( const KSection &  removeSection  )  [inline]

Reimplemented in KPieceTable::Piece.

Definition at line 162 of file ksection.h.

KSection KHE::KSection::removeLocal ( const KSection &  removeSection  )  [inline]

Reimplemented in KPieceTable::Piece.

Definition at line 168 of file ksection.h.

void KHE::KSection::restrictEndByWidth ( int  width  )  [inline]

restricts the end by width.

If the section is invalid the behaviour is undefined

Definition at line 145 of file ksection.h.

void KHE::KSection::setByWidth ( int  other,
int  width 
) [inline]

Definition at line 138 of file ksection.h.

void KHE::KSection::setEndByWidth ( int  width  )  [inline]

sets the last index of the section's range to be width-1 behind the start If the section is invalid the behaviour is undefined

Definition at line 140 of file ksection.h.

void KHE::KSection::setEndNextBefore ( int  index  )  [inline]

Definition at line 144 of file ksection.h.

void KHE::KSection::setEndNextBefore ( const KSection &  other  )  [inline]

sets the first index of the section's range one behind the other's end If one of both is invalid or the other' start is 0 the behaviour is undefined

Definition at line 143 of file ksection.h.

void KHE::KSection::setStartByWidth ( int  width  )  [inline]

sets the first index of the section's range to be width-1 before the end If the section is invalid the behaviour is undefined

Definition at line 139 of file ksection.h.

void KHE::KSection::setStartNextBehind ( int  index  )  [inline]

Definition at line 142 of file ksection.h.

void KHE::KSection::setStartNextBehind ( const KSection &  other  )  [inline]

sets the first index of the section's range one behind the other's end If one of both is invalid the behaviour is undefined

Definition at line 141 of file ksection.h.

KSection KHE::KSection::splitAt ( int  index  )  [inline]

Reimplemented in KPieceTable::Piece.

Definition at line 150 of file ksection.h.

KSection KHE::KSection::splitAtLocal ( int  index  )  [inline]

Reimplemented in KPieceTable::Piece.

Definition at line 156 of file ksection.h.

int KHE::KSection::startForInclude ( const KSection &  other  )  const [inline]

Returns:
the needed start so that other gets included, undefined if any is invalid

Definition at line 181 of file ksection.h.

KSection KHE::KSection::subSection ( const KSection &  localSection  )  const [inline]

Returns:
section given by local

Definition at line 178 of file ksection.h.

int KHE::KSection::width (  )  const [inline]

Returns:
the numbered of included indizes or 0, if the section is invalid

Definition at line 134 of file ksection.h.


The documentation for this class was generated from the following files:
  • ksection.h
  • ksection.cpp

okteta

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

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils by doxygen 1.5.4
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