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

okteta

  • Okteta
  • PieceTableByteArrayModelPrivate
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Okteta::PieceTableByteArrayModelPrivate Class Reference

#include <piecetablebytearraymodel_p.h>

Public Member Functions

 PieceTableByteArrayModelPrivate (PieceTableByteArrayModel *parent, const QByteArray &data)
 
 PieceTableByteArrayModelPrivate (PieceTableByteArrayModel *parent, int size, Byte fillByte= '\0')
 
 ~PieceTableByteArrayModelPrivate ()
 
void addBookmarks (const QList< Bookmark > &bookmarks)
 
const Bookmark & bookmarkAt (unsigned int index) const
 
const Bookmark & bookmarkFor (int offset) const
 
unsigned int bookmarksCount () const
 
Byte byte (Address offset) const
 
void cancelGroupedChange ()
 
QList< ByteArrayChange > changes (int firstVersionIndex, int lastVersionIndex) const
 
void closeGroupedChange (const QString &description)
 
bool containsBookmarkFor (int offset) const
 
BookmarksConstIterator createBookmarksConstIterator () const
 
void doChanges (const QList< Okteta::ByteArrayChange > &changes, int oldVersionIndex, int newVersionIndex)
 
Size fill (Byte fillByte, Address offset=0, Size fillLength=-1)
 
const QByteArray & initialData () const
 
Size insert (Address offset, const Byte *insertData, int insertLength)
 
bool isModified () const
 
bool isReadOnly () const
 
void openGroupedChange (const QString &description)
 
Size remove (const AddressRange &removeRange)
 
void removeAllBookmarks ()
 
void removeBookmarks (const QList< Bookmark > &bookmarks)
 
Size replace (const AddressRange &removeRange, const Byte *insertData, int insertLength)
 
void revertToVersionByIndex (int versionIndex)
 
void setBookmark (unsigned int index, const Bookmark &bookmark)
 
void setByte (Address offset, Byte byte)
 
void setData (const QByteArray &data)
 
void setModified (bool modified=true)
 
void setReadOnly (bool isReadOnly=true)
 
Size size () const
 
bool swap (Address firstStart, const AddressRange &secondRange)
 
int versionCount () const
 
QString versionDescription (int versionIndex) const
 
int versionIndex () const
 

Protected Member Functions

void beginChanges ()
 
void doFillChange (Address offset, Size filledLength, Byte fillByte, int fillLength)
 
void doInsertChange (Address offset, const Byte *insertData, int insertLength)
 
void doRemoveChange (const AddressRange &removeRange)
 
void doReplaceChange (const AddressRange &removeRange, const Byte *insertData, int insertLength)
 
void doSwapChange (Address firstStart, const AddressRange &secondRange)
 
void endChanges ()
 

Protected Attributes

bool mBeforeChangesModified:1
 
int mBeforeChangesVersionIndex
 
int mBeforeGroupedChangeVersionIndex
 
BookmarkList mBookmarks
 
bool mBookmarksModified:1
 
ArrayChangeMetricsList mChangeMetrics
 
QList< ByteArrayChange > mChanges
 
ChangesDataStorage mChangesDataStorage
 
QByteArray mInitialData
 
KPieceTable::RevertablePieceTable mPieceTable
 
bool mReadOnly:1
 
PieceTableByteArrayModel * p
 

Detailed Description

Definition at line 40 of file piecetablebytearraymodel_p.h.

Constructor & Destructor Documentation

Okteta::PieceTableByteArrayModelPrivate::PieceTableByteArrayModelPrivate ( PieceTableByteArrayModel *  parent,
const QByteArray &  data 
)
explicit
Okteta::PieceTableByteArrayModelPrivate::PieceTableByteArrayModelPrivate ( PieceTableByteArrayModel *  parent,
int  size,
Byte  fillByte = '\0' 
)
explicit

creates a writeable buffer which is deleted at the end

Okteta::PieceTableByteArrayModelPrivate::~PieceTableByteArrayModelPrivate ( )

Member Function Documentation

void Okteta::PieceTableByteArrayModelPrivate::addBookmarks ( const QList< Bookmark > &  bookmarks)
inline

Definition at line 162 of file piecetablebytearraymodel_p.h.

void Okteta::PieceTableByteArrayModelPrivate::beginChanges ( )
protected
const Bookmark & Okteta::PieceTableByteArrayModelPrivate::bookmarkAt ( unsigned int  index) const
inline

Definition at line 193 of file piecetablebytearraymodel_p.h.

const Bookmark & Okteta::PieceTableByteArrayModelPrivate::bookmarkFor ( int  offset) const
inline

Definition at line 197 of file piecetablebytearraymodel_p.h.

unsigned int Okteta::PieceTableByteArrayModelPrivate::bookmarksCount ( ) const
inline

Definition at line 202 of file piecetablebytearraymodel_p.h.

Byte Okteta::PieceTableByteArrayModelPrivate::byte ( Address  offset) const
void Okteta::PieceTableByteArrayModelPrivate::cancelGroupedChange ( )
QList<ByteArrayChange> Okteta::PieceTableByteArrayModelPrivate::changes ( int  firstVersionIndex,
int  lastVersionIndex 
) const
void Okteta::PieceTableByteArrayModelPrivate::closeGroupedChange ( const QString &  description)
bool Okteta::PieceTableByteArrayModelPrivate::containsBookmarkFor ( int  offset) const
inline

Definition at line 201 of file piecetablebytearraymodel_p.h.

BookmarksConstIterator Okteta::PieceTableByteArrayModelPrivate::createBookmarksConstIterator ( ) const
inline

Definition at line 188 of file piecetablebytearraymodel_p.h.

void Okteta::PieceTableByteArrayModelPrivate::doChanges ( const QList< Okteta::ByteArrayChange > &  changes,
int  oldVersionIndex,
int  newVersionIndex 
)
void Okteta::PieceTableByteArrayModelPrivate::doFillChange ( Address  offset,
Size  filledLength,
Byte  fillByte,
int  fillLength 
)
protected
void Okteta::PieceTableByteArrayModelPrivate::doInsertChange ( Address  offset,
const Byte *  insertData,
int  insertLength 
)
protected
void Okteta::PieceTableByteArrayModelPrivate::doRemoveChange ( const AddressRange &  removeRange)
protected
void Okteta::PieceTableByteArrayModelPrivate::doReplaceChange ( const AddressRange &  removeRange,
const Byte *  insertData,
int  insertLength 
)
protected
void Okteta::PieceTableByteArrayModelPrivate::doSwapChange ( Address  firstStart,
const AddressRange &  secondRange 
)
protected
void Okteta::PieceTableByteArrayModelPrivate::endChanges ( )
protected
Size Okteta::PieceTableByteArrayModelPrivate::fill ( Byte  fillByte,
Address  offset = 0,
Size  fillLength = -1 
)
const QByteArray & Okteta::PieceTableByteArrayModelPrivate::initialData ( ) const
inline

Definition at line 132 of file piecetablebytearraymodel_p.h.

Size Okteta::PieceTableByteArrayModelPrivate::insert ( Address  offset,
const Byte *  insertData,
int  insertLength 
)
bool Okteta::PieceTableByteArrayModelPrivate::isModified ( ) const
inline

Definition at line 136 of file piecetablebytearraymodel_p.h.

bool Okteta::PieceTableByteArrayModelPrivate::isReadOnly ( ) const
inline

Definition at line 135 of file piecetablebytearraymodel_p.h.

void Okteta::PieceTableByteArrayModelPrivate::openGroupedChange ( const QString &  description)
Size Okteta::PieceTableByteArrayModelPrivate::remove ( const AddressRange &  removeRange)
void Okteta::PieceTableByteArrayModelPrivate::removeAllBookmarks ( )
inline

Definition at line 173 of file piecetablebytearraymodel_p.h.

void Okteta::PieceTableByteArrayModelPrivate::removeBookmarks ( const QList< Bookmark > &  bookmarks)
inline

Definition at line 167 of file piecetablebytearraymodel_p.h.

Size Okteta::PieceTableByteArrayModelPrivate::replace ( const AddressRange &  removeRange,
const Byte *  insertData,
int  insertLength 
)
void Okteta::PieceTableByteArrayModelPrivate::revertToVersionByIndex ( int  versionIndex)
void Okteta::PieceTableByteArrayModelPrivate::setBookmark ( unsigned int  index,
const Bookmark &  bookmark 
)
inline

Definition at line 179 of file piecetablebytearraymodel_p.h.

void Okteta::PieceTableByteArrayModelPrivate::setByte ( Address  offset,
Byte  byte 
)
void Okteta::PieceTableByteArrayModelPrivate::setData ( const QByteArray &  data)
void Okteta::PieceTableByteArrayModelPrivate::setModified ( bool  modified = true)
inline

Definition at line 146 of file piecetablebytearraymodel_p.h.

void Okteta::PieceTableByteArrayModelPrivate::setReadOnly ( bool  isReadOnly = true)
inline

Definition at line 138 of file piecetablebytearraymodel_p.h.

Size Okteta::PieceTableByteArrayModelPrivate::size ( ) const
inline

Definition at line 133 of file piecetablebytearraymodel_p.h.

bool Okteta::PieceTableByteArrayModelPrivate::swap ( Address  firstStart,
const AddressRange &  secondRange 
)
int Okteta::PieceTableByteArrayModelPrivate::versionCount ( ) const
inline

Definition at line 158 of file piecetablebytearraymodel_p.h.

QString Okteta::PieceTableByteArrayModelPrivate::versionDescription ( int  versionIndex) const
inline

Definition at line 159 of file piecetablebytearraymodel_p.h.

int Okteta::PieceTableByteArrayModelPrivate::versionIndex ( ) const
inline

Definition at line 157 of file piecetablebytearraymodel_p.h.

Member Data Documentation

bool Okteta::PieceTableByteArrayModelPrivate::mBeforeChangesModified
protected

Definition at line 127 of file piecetablebytearraymodel_p.h.

int Okteta::PieceTableByteArrayModelPrivate::mBeforeChangesVersionIndex
protected

Definition at line 124 of file piecetablebytearraymodel_p.h.

int Okteta::PieceTableByteArrayModelPrivate::mBeforeGroupedChangeVersionIndex
protected

temporary workaround for cancelling groups.

If -1 no group is opened.

Definition at line 122 of file piecetablebytearraymodel_p.h.

BookmarkList Okteta::PieceTableByteArrayModelPrivate::mBookmarks
protected

Definition at line 120 of file piecetablebytearraymodel_p.h.

bool Okteta::PieceTableByteArrayModelPrivate::mBookmarksModified
protected

Definition at line 128 of file piecetablebytearraymodel_p.h.

ArrayChangeMetricsList Okteta::PieceTableByteArrayModelPrivate::mChangeMetrics
protected

Definition at line 125 of file piecetablebytearraymodel_p.h.

QList<ByteArrayChange> Okteta::PieceTableByteArrayModelPrivate::mChanges
protected

Definition at line 126 of file piecetablebytearraymodel_p.h.

ChangesDataStorage Okteta::PieceTableByteArrayModelPrivate::mChangesDataStorage
protected

Definition at line 118 of file piecetablebytearraymodel_p.h.

QByteArray Okteta::PieceTableByteArrayModelPrivate::mInitialData
protected

Definition at line 116 of file piecetablebytearraymodel_p.h.

KPieceTable::RevertablePieceTable Okteta::PieceTableByteArrayModelPrivate::mPieceTable
protected

Definition at line 117 of file piecetablebytearraymodel_p.h.

bool Okteta::PieceTableByteArrayModelPrivate::mReadOnly
protected

Definition at line 114 of file piecetablebytearraymodel_p.h.

PieceTableByteArrayModel* Okteta::PieceTableByteArrayModelPrivate::p
protected

Definition at line 112 of file piecetablebytearraymodel_p.h.


The documentation for this class was generated from the following file:
  • piecetablebytearraymodel_p.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