okteta
piecetablechangehistory.cpp
Go to the documentation of this file.
48 void PieceTableChangeHistory::getChangeData( ArrayChangeMetrics* metrics, Address* storageOffset,
65 GroupPieceTableChange *groupChange = new GroupPieceTableChange( mActiveGroupChange, description );
Size mAppliedChangesDataSize
Definition: piecetablechangehistory.h:102
virtual AddressRange apply(PieceTable *pieceTable) const =0
void getChangeData(ArrayChangeMetrics *metrics, Address *storageOffset, int versionIndex) const
Definition: piecetablechangehistory.cpp:48
void addAddressRange(const AddressRange &addressRange)
Definition: addressrangelist.cpp:32
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
bool revertBeforeChange(PieceTable *pieceTable, int changeId, AddressRangeList *changedRanges, ArrayChangeMetricsList *changeList)
Definition: piecetablechangehistory.cpp:133
GroupPieceTableChange * mActiveGroupChange
if 0, there is no
Definition: piecetablechangehistory.h:105
int mBaseBeforeChangeIndex
Definition: piecetablechangehistory.h:98
ArrayChangeMetricsList groupMetrics(bool reverted=false) const
Definition: grouppiecetablechange.cpp:153
QStack< AbstractPieceTableChange * > mChangeStack
Definition: piecetablechangehistory.h:100
AddressRangeList applyGroup(PieceTable *pieceTable) const
Definition: grouppiecetablechange.cpp:112
void closeGroupedChange(const QString &description)
Definition: piecetablechangehistory.cpp:71
void setBeforeCurrentChangeAsBase(bool hide)
Definition: piecetablechangehistory.cpp:57
Definition: piecetable.h:35
int mAppliedChangesCount
Definition: piecetablechangehistory.h:96
virtual ArrayChangeMetrics metrics() const =0
virtual int type() const =0
GroupPieceTableChange * parent() const
Definition: grouppiecetablechange.h:117
bool appendChange(AbstractPieceTableChange *change)
Definition: grouppiecetablechange.cpp:75
AddressRangeList revertGroup(PieceTable *pieceTable) const
Definition: grouppiecetablechange.cpp:131
virtual Address storageOffset() const
returns the storageOffset. Default returns -1.
Definition: abstractpiecetablechange.cpp:37
virtual Size dataSize() const
returns the size of the added data. Default returns 0.
Definition: abstractpiecetablechange.cpp:39
virtual AddressRange revert(PieceTable *pieceTable) const =0
Definition: addressrangelist.h:38
void addAddressRangeList(const AddressRangeList &addressRangeList)
Definition: addressrangelist.cpp:81
void finishChange()
Definition: grouppiecetablechange.h:118
void setDescription(const QString &description)
Definition: grouppiecetablechange.h:116
bool mTryToMergeAppendedChange
if true, try to merge changes
Definition: piecetablechangehistory.h:94
bool appendChange(AbstractPieceTableChange *change)
returns true, if a new change is appended, false if merged
Definition: piecetablechangehistory.cpp:89
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:08 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:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.