okteta
revertablepiecetable.h
Go to the documentation of this file.
51 // int fill( const char FillChar, unsigned int Pos = 0, int Length = -1 ); TODO: filter change, calculated
58 void openGroupedChange( const QString& description ); // TODO: hand over description? user change id?
88 void getChangeData( ArrayChangeMetrics* metrics, Address* storageOffset, int versionIndex ) const;
103 inline bool RevertablePieceTable::getStorageData( int* storageId, Address* storageOffset, Address dataOffset ) const
115 inline int RevertablePieceTable::appliedChangesCount() const { return mChangeHistory.appliedChangesCount(); }
130 inline bool RevertablePieceTable::replace( Address removeStart, Size removeLength, Size insertLength, Size* storageSize )
134 inline bool RevertablePieceTable::swap( Address firstStart, Address secondStart, Size secondLength )
QString changeDescription(int changeId) const
Definition: piecetablechangehistory.h:126
QString headChangeDescription() const
Definition: revertablepiecetable.h:121
QString changeDescription(int change) const
Definition: revertablepiecetable.h:117
PieceTable mPieceTable
Definition: revertablepiecetable.h:98
int appliedChangesCount() const
Definition: piecetablechangehistory.h:118
void openGroupedChange(const QString &description)
Definition: piecetablechangehistory.cpp:63
void finishChange()
closes the current change, so any following operation will not be tried to merge
Definition: piecetablechangehistory.cpp:81
void getChangeData(ArrayChangeMetrics *metrics, Address *storageOffset, int versionIndex) const
Definition: revertablepiecetable.cpp:45
bool replace(const AddressRange &removeRange, Size insertLength, Size *storageSize)
Definition: revertablepiecetable.cpp:72
RevertablePieceTable()
Definition: revertablepiecetable.cpp:37
void finishChange()
closes the current change, so any following operation will not be tried to merge
Definition: revertablepiecetable.h:148
int appliedChangesCount() const
Definition: revertablepiecetable.h:115
bool getStorageData(int *storageId, Address *storageOffset, Address dataOffset) const
Definition: piecetable.cpp:47
bool revertBeforeChange(PieceTable *pieceTable, int changeId, AddressRangeList *changedRanges, ArrayChangeMetricsList *changeList)
Definition: piecetablechangehistory.cpp:133
bool swap(Address firstStart, const AddressRange &secondRange)
Definition: revertablepiecetable.cpp:85
QString headChangeDescription() const
Definition: piecetablechangehistory.h:119
void setBeforeCurrentChangeAsBase(bool hide)
Definition: revertablepiecetable.h:108
bool isAtBase() const
Definition: revertablepiecetable.h:116
bool replaceOne(Address dataOffset, Size *storageSize)
Definition: revertablepiecetable.cpp:95
bool getStorageData(int *storageId, Address *storageOffset, Address dataOffset) const
Definition: revertablepiecetable.h:103
static NumberRange fromWidth(AddressstartIndex, Sizewidth)
constructs a range by width
void openGroupedChange(const QString &description)
opens a group of changes
Definition: revertablepiecetable.h:139
bool isAtBase() const
Definition: piecetablechangehistory.h:120
PieceTableChangeHistory mChangeHistory
Definition: revertablepiecetable.h:99
void closeGroupedChange(const QString &description)
Definition: piecetablechangehistory.cpp:71
void setBeforeCurrentChangeAsBase(bool hide)
Definition: piecetablechangehistory.cpp:57
Definition: piecetable.h:35
int count() const
Definition: piecetablechangehistory.h:117
int changesCount() const
Definition: revertablepiecetable.h:114
void closeGroupedChange(const QString &description)
closes the current group and sets the parent group as current if there is one
Definition: revertablepiecetable.h:144
bool revertBeforeChange(int changeId, AddressRangeList *changedRanges, ArrayChangeMetricsList *changeList)
closes the current change, so any following operation will not be tried to merge currently it also cl...
Definition: revertablepiecetable.h:150
Definition: addressrangelist.h:38
bool insert(Address pos, Size length, Size *storageSize)
Definition: revertablepiecetable.cpp:50
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.