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

okteta

  • KPieceTable
  • Piece
Public Types | Public Member Functions | Protected Attributes | List of all members
KPieceTable::Piece Class Reference

#include <piece.h>

Inheritance diagram for KPieceTable::Piece:
Inheritance graph
[legend]

Public Types

enum  { OriginalStorage, ChangeStorage }
 

Public Member Functions

 Piece (Address storageOffset, Size size, int storageId)
 
 Piece (const AddressRange &storageRange, int storageId)
 
 Piece ()
 
bool append (const Piece &other)
 
bool prepend (const Piece &other)
 
Piece remove (const AddressRange &removeStorageRange)
 
Piece removeEndBehindLocal (Address storageOffset)
 
Piece removeLocal (const AddressRange &localRemoveStorageRange)
 
Piece removeStartBeforeLocal (Address storageOffset)
 
void setStorageId (int storageId)
 
Piece splitAt (Address storageOffset)
 
Piece splitAtLocal (Address localStorageOffset)
 
int storageId () const
 
Piece subPiece (const AddressRange &local) const
 
- Public Member Functions inherited from KDE::NumberRange< N, S >
 NumberRange (N startIndex, N endIndex)
 
 NumberRange (const NumberRange &other)
 
 NumberRange ()
 
 ~NumberRange ()
 
void adaptToReplacement (N offset, S removedLength, S insertedLength)
 
bool append (const NumberRange &other)
 
bool isJoinable (const NumberRange &other) const
 
N localIndex (N index) const
 
NumberRange localRange (const NumberRange &other) const
 
void moveToEnd (N end)
 
void moveToStart (N other)
 
N nextBeforeStart () const
 
N nextBehindEnd () const
 
NumberRange & operator= (const NumberRange &other)
 
bool operator== (const NumberRange &other) const
 
bool prepend (const NumberRange &other)
 
NumberRange remove (const NumberRange &removeRange)
 
NumberRange removeLocal (const NumberRange &removeRange)
 
void restrictEndByWidth (S width)
 
void setByWidth (N other, S width)
 
void setEndByWidth (S width)
 
void setEndNextBefore (const NumberRange &other)
 
void setEndNextBefore (N index)
 
void setStartByWidth (S width)
 
void setStartNextBehind (const NumberRange &other)
 
void setStartNextBehind (N index)
 
NumberRange splitAt (N index)
 
NumberRange splitAtLocal (N index)
 
N startForInclude (const NumberRange &other) const
 
NumberRange subRange (const NumberRange &localRange) const
 
S width () const
 
- Public Member Functions inherited from KDE::Range< N >
 Range (NS, NE)
 
 Range ()
 
 ~Range ()
 
N end () const
 
bool endsBefore (NValue) const
 
bool endsBefore (const Range &R) const
 
bool endsBehind (NValue) const
 
bool endsBehind (const Range &R) const
 
void extendEndTo (NLimit)
 
void extendStartTo (NLimit)
 
void extendTo (const Range &Limit)
 
bool includes (NValue) const
 
bool includes (const Range &R) const
 
bool includesInside (NValue) const
 
bool includesInside (const Range &R) const
 
bool isEmpty () const
 
bool isValid () const
 
void moveBy (ND)
 
void moveEndBy (ND)
 
void moveStartBy (ND)
 
Range & operator= (const Range &R)
 
bool operator== (const Range &R) const
 
bool overlaps (const Range &R) const
 
void restrictEndTo (NLimit)
 
void restrictStartTo (NLimit)
 
void restrictTo (const Range &Limit)
 
void set (NS, NE)
 
void set (const Range &R)
 
void setEnd (NE)
 
void setStart (NS)
 
N start () const
 
bool startsBefore (NValue) const
 
bool startsBefore (const Range &R) const
 
bool startsBehind (NValue) const
 
bool startsBehind (const Range &R) const
 
void unset ()
 

Protected Attributes

int mStorageId
 
- Protected Attributes inherited from KDE::Range< N >
N End
 
N Start
 

Additional Inherited Members

- Static Public Member Functions inherited from KDE::NumberRange< N, S >
static NumberRange fromWidth (N startIndex, S width)
 
static NumberRange fromWidth (S width)
 
- Protected Member Functions inherited from KDE::Range< N >
const N null () const
 

Detailed Description

Definition at line 38 of file piece.h.

Member Enumeration Documentation

anonymous enum
Enumerator
OriginalStorage 
ChangeStorage 

Definition at line 41 of file piece.h.

Constructor & Destructor Documentation

KPieceTable::Piece::Piece ( Address  storageOffset,
Size  size,
int  storageId 
)
inline

Definition at line 73 of file piece.h.

KPieceTable::Piece::Piece ( const AddressRange &  storageRange,
int  storageId 
)
inline

Definition at line 77 of file piece.h.

KPieceTable::Piece::Piece ( )
inline

Definition at line 81 of file piece.h.

Member Function Documentation

bool KPieceTable::Piece::append ( const Piece &  other)
inline

Definition at line 126 of file piece.h.

bool KPieceTable::Piece::prepend ( const Piece &  other)
inline

Definition at line 121 of file piece.h.

Piece KPieceTable::Piece::remove ( const AddressRange &  removeStorageRange)
inline

Definition at line 95 of file piece.h.

Piece KPieceTable::Piece::removeEndBehindLocal ( Address  storageOffset)
inline

Definition at line 109 of file piece.h.

Piece KPieceTable::Piece::removeLocal ( const AddressRange &  localRemoveStorageRange)
inline

Definition at line 99 of file piece.h.

Piece KPieceTable::Piece::removeStartBeforeLocal ( Address  storageOffset)
inline

Definition at line 103 of file piece.h.

void KPieceTable::Piece::setStorageId ( int  storageId)
inline

Definition at line 85 of file piece.h.

Piece KPieceTable::Piece::splitAt ( Address  storageOffset)
inline

Definition at line 87 of file piece.h.

Piece KPieceTable::Piece::splitAtLocal ( Address  localStorageOffset)
inline

Definition at line 91 of file piece.h.

int KPieceTable::Piece::storageId ( ) const
inline

Definition at line 83 of file piece.h.

Piece KPieceTable::Piece::subPiece ( const AddressRange &  local) const
inline

Definition at line 116 of file piece.h.

Member Data Documentation

int KPieceTable::Piece::mStorageId
protected

Definition at line 69 of file piece.h.


The documentation for this class was generated from the following file:
  • piece.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okteta

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

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal