okteta
KHE::KSection Class Reference
#include <ksection.h>

Detailed Description
describes a section of indizes
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
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
Definition at line 28 of file ksection.cpp.
| bool KHE::KSection::append | ( | const KSection & | other | ) | [inline] |
Definition at line 192 of file ksection.h.
Definition at line 128 of file ksection.h.
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.
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.
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.
| 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.
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.
- Returns:
- the needed start so that other gets included, undefined if any is invalid
Definition at line 181 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:
KDE 4.2 API Reference