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

okteta

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

#include <revertablepiecetable.h>

Public Member Functions

 RevertablePieceTable ()
 
int appliedChangesCount () const
 
QString changeDescription (int change) const
 
int changesCount () const
 
void closeGroupedChange (const QString &description)
 
void finishChange ()
 
void getChangeData (ArrayChangeMetrics *metrics, Address *storageOffset, int versionIndex) const
 
bool getStorageData (int *storageId, Address *storageOffset, Address dataOffset) const
 
QString headChangeDescription () const
 
void init (Size size)
 
bool insert (Address pos, Size length, Size *storageSize)
 
bool isAtBase () const
 
void openGroupedChange (const QString &description)
 
bool remove (const AddressRange &removeRange)
 
bool replace (const AddressRange &removeRange, Size insertLength, Size *storageSize)
 
bool replace (Address removeStart, Size removeLength, Size insertLength, Size *storageSize)
 
bool replaceOne (Address dataOffset, Size *storageSize)
 
bool revertBeforeChange (int changeId, AddressRangeList *changedRanges, ArrayChangeMetricsList *changeList)
 
void setBeforeCurrentChangeAsBase (bool hide)
 
Size size () const
 
bool swap (Address firstStart, const AddressRange &secondRange)
 
bool swap (Address firstStart, Address secondStart, Size secondLength)
 

Protected Attributes

PieceTableChangeHistory mChangeHistory
 
PieceTable mPieceTable
 

Detailed Description

Definition at line 34 of file revertablepiecetable.h.

Constructor & Destructor Documentation

KPieceTable::RevertablePieceTable::RevertablePieceTable ( )

Definition at line 37 of file revertablepiecetable.cpp.

Member Function Documentation

int KPieceTable::RevertablePieceTable::appliedChangesCount ( ) const
inline

Definition at line 115 of file revertablepiecetable.h.

QString KPieceTable::RevertablePieceTable::changeDescription ( int  change) const
inline

Definition at line 117 of file revertablepiecetable.h.

int KPieceTable::RevertablePieceTable::changesCount ( ) const
inline

Definition at line 114 of file revertablepiecetable.h.

void KPieceTable::RevertablePieceTable::closeGroupedChange ( const QString &  description)
inline

closes the current group and sets the parent group as current if there is one

Parameters
descriptionsets a new description for the group if not empty

Definition at line 144 of file revertablepiecetable.h.

void KPieceTable::RevertablePieceTable::finishChange ( )
inline

closes the current change, so any following operation will not be tried to merge

Definition at line 148 of file revertablepiecetable.h.

void KPieceTable::RevertablePieceTable::getChangeData ( ArrayChangeMetrics *  metrics,
Address *  storageOffset,
int  versionIndex 
) const

Definition at line 45 of file revertablepiecetable.cpp.

bool KPieceTable::RevertablePieceTable::getStorageData ( int *  storageId,
Address *  storageOffset,
Address  dataOffset 
) const
inline

Definition at line 103 of file revertablepiecetable.h.

QString KPieceTable::RevertablePieceTable::headChangeDescription ( ) const
inline

Definition at line 121 of file revertablepiecetable.h.

void KPieceTable::RevertablePieceTable::init ( Size  size)

Definition at line 39 of file revertablepiecetable.cpp.

bool KPieceTable::RevertablePieceTable::insert ( Address  pos,
Size  length,
Size *  storageSize 
)

Definition at line 50 of file revertablepiecetable.cpp.

bool KPieceTable::RevertablePieceTable::isAtBase ( ) const
inline

Definition at line 116 of file revertablepiecetable.h.

void KPieceTable::RevertablePieceTable::openGroupedChange ( const QString &  description)
inline

opens a group of changes

Parameters
descriptionsets the description of the group

Definition at line 139 of file revertablepiecetable.h.

bool KPieceTable::RevertablePieceTable::remove ( const AddressRange &  removeRange)

Definition at line 62 of file revertablepiecetable.cpp.

bool KPieceTable::RevertablePieceTable::replace ( const AddressRange &  removeRange,
Size  insertLength,
Size *  storageSize 
)

Definition at line 72 of file revertablepiecetable.cpp.

bool KPieceTable::RevertablePieceTable::replace ( Address  removeStart,
Size  removeLength,
Size  insertLength,
Size *  storageSize 
)
inline

Definition at line 130 of file revertablepiecetable.h.

bool KPieceTable::RevertablePieceTable::replaceOne ( Address  dataOffset,
Size *  storageSize 
)

Definition at line 95 of file revertablepiecetable.cpp.

bool KPieceTable::RevertablePieceTable::revertBeforeChange ( int  changeId,
AddressRangeList *  changedRanges,
ArrayChangeMetricsList *  changeList 
)
inline

closes the current change, so any following operation will not be tried to merge currently it also closes any opened groups

Parameters
changeId
changedRanges
changeList

Definition at line 150 of file revertablepiecetable.h.

void KPieceTable::RevertablePieceTable::setBeforeCurrentChangeAsBase ( bool  hide)
inline
Parameters
hideif true sets the base to none.

Definition at line 108 of file revertablepiecetable.h.

Size KPieceTable::RevertablePieceTable::size ( ) const
inline

Definition at line 113 of file revertablepiecetable.h.

bool KPieceTable::RevertablePieceTable::swap ( Address  firstStart,
const AddressRange &  secondRange 
)

Definition at line 85 of file revertablepiecetable.cpp.

bool KPieceTable::RevertablePieceTable::swap ( Address  firstStart,
Address  secondStart,
Size  secondLength 
)
inline

Definition at line 134 of file revertablepiecetable.h.

Member Data Documentation

PieceTableChangeHistory KPieceTable::RevertablePieceTable::mChangeHistory
protected

Definition at line 99 of file revertablepiecetable.h.

PieceTable KPieceTable::RevertablePieceTable::mPieceTable
protected

Definition at line 98 of file revertablepiecetable.h.


The documentation for this class was generated from the following files:
  • revertablepiecetable.h
  • revertablepiecetable.cpp
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