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

okteta

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

#include <bytearraymodel_p.h>

Public Member Functions

 ByteArrayModelPrivate (ByteArrayModel *parent, Byte *data, int size, int rawSize, bool keepsMemory)
 
 ByteArrayModelPrivate (ByteArrayModel *parent, const Byte *data, int size)
 
 ByteArrayModelPrivate (ByteArrayModel *parent, int size, int maxSize)
 
 ~ByteArrayModelPrivate ()
 
void addBookmarks (const QList< Bookmark > &bookmarks)
 
bool autoDelete () const
 
const Bookmark & bookmarkAt (unsigned int index) const
 
const Bookmark & bookmarkFor (int offset) const
 
unsigned int bookmarksCount () const
 
Byte byte (Address offset) const
 
bool containsBookmarkFor (int offset) const
 
BookmarksConstIterator createBookmarksConstIterator () const
 
Byte * data () const
 
Size fill (Byte fillByte, Address offset=0, Size fillLength=-1)
 
Size insert (Address offset, const Byte *insertData, int insertLength)
 
bool isModified () const
 
bool isReadOnly () const
 
bool keepsMemory () const
 
int maxSize () const
 
Size remove (const AddressRange &removeRange)
 
void removeAllBookmarks ()
 
void removeBookmarks (const QList< Bookmark > &bookmarks)
 
Size replace (const AddressRange &removeRange, const Byte *insertData, int insertLength)
 
void setAutoDelete (bool autoDelete=true)
 
void setBookmark (unsigned int index, const Bookmark &bookmark)
 
void setByte (Address offset, Byte byte)
 
void setData (Byte *data, int size, int rawSize=-1, bool keepsMemory=true)
 
void setKeepsMemory (bool keepsMemory=true)
 
void setMaxSize (int maxSize)
 
void setModified (bool modified=true)
 
void setReadOnly (bool readOnly=true)
 
Size size () const
 
bool swap (Address firstStart, const AddressRange &secondRange)
 

Protected Member Functions

int addSize (int AddSize, int splitOffset=-1, bool saveUpperPart=true)
 

Protected Attributes

BookmarkList m_bookmarks
 
bool mAutoDelete:1
 
Byte * mData
 
bool mKeepsMemory:1
 
int mMaxSize
 
bool mModified:1
 
int mRawSize
 
bool mReadOnly:1
 
int mSize
 
ByteArrayModel * p
 

Detailed Description

Definition at line 39 of file bytearraymodel_p.h.

Constructor & Destructor Documentation

Okteta::ByteArrayModelPrivate::ByteArrayModelPrivate ( ByteArrayModel *  parent,
Byte *  data,
int  size,
int  rawSize,
bool  keepsMemory 
)
Okteta::ByteArrayModelPrivate::ByteArrayModelPrivate ( ByteArrayModel *  parent,
const Byte *  data,
int  size 
)
Okteta::ByteArrayModelPrivate::ByteArrayModelPrivate ( ByteArrayModel *  parent,
int  size,
int  maxSize 
)
Okteta::ByteArrayModelPrivate::~ByteArrayModelPrivate ( )
inline

Definition at line 125 of file bytearraymodel_p.h.

Member Function Documentation

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

Definition at line 166 of file bytearraymodel_p.h.

int Okteta::ByteArrayModelPrivate::addSize ( int  AddSize,
int  splitOffset = -1,
bool  saveUpperPart = true 
)
protected

resizes the buffer, if possible, saving the data and splitting the data, if demanded

Parameters
AddSizeadditional size the buffer should grow
splitOffsetif -1 does not split
saveUpperParttrue if upper part should be copied into new buffer
Returns
additional size the buffer has grown
bool Okteta::ByteArrayModelPrivate::autoDelete ( ) const
inline

Definition at line 164 of file bytearraymodel_p.h.

const Bookmark & Okteta::ByteArrayModelPrivate::bookmarkAt ( unsigned int  index) const
inline

Definition at line 201 of file bytearraymodel_p.h.

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

Definition at line 197 of file bytearraymodel_p.h.

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

Definition at line 206 of file bytearraymodel_p.h.

Byte Okteta::ByteArrayModelPrivate::byte ( Address  offset) const
inline

Definition at line 127 of file bytearraymodel_p.h.

bool Okteta::ByteArrayModelPrivate::containsBookmarkFor ( int  offset) const
inline

Definition at line 205 of file bytearraymodel_p.h.

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

Definition at line 192 of file bytearraymodel_p.h.

Byte * Okteta::ByteArrayModelPrivate::data ( ) const
inline

Definition at line 161 of file bytearraymodel_p.h.

Size Okteta::ByteArrayModelPrivate::fill ( Byte  fillByte,
Address  offset = 0,
Size  fillLength = -1 
)
Size Okteta::ByteArrayModelPrivate::insert ( Address  offset,
const Byte *  insertData,
int  insertLength 
)
bool Okteta::ByteArrayModelPrivate::isModified ( ) const
inline

Definition at line 131 of file bytearraymodel_p.h.

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

Definition at line 130 of file bytearraymodel_p.h.

bool Okteta::ByteArrayModelPrivate::keepsMemory ( ) const
inline

returns whether the memory of the byte array is kept on resize

Definition at line 163 of file bytearraymodel_p.h.

int Okteta::ByteArrayModelPrivate::maxSize ( ) const
inline

Definition at line 162 of file bytearraymodel_p.h.

Size Okteta::ByteArrayModelPrivate::remove ( const AddressRange &  removeRange)
void Okteta::ByteArrayModelPrivate::removeAllBookmarks ( )
inline

Definition at line 177 of file bytearraymodel_p.h.

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

Definition at line 171 of file bytearraymodel_p.h.

Size Okteta::ByteArrayModelPrivate::replace ( const AddressRange &  removeRange,
const Byte *  insertData,
int  insertLength 
)
void Okteta::ByteArrayModelPrivate::setAutoDelete ( bool  autoDelete = true)
inline

Definition at line 143 of file bytearraymodel_p.h.

void Okteta::ByteArrayModelPrivate::setBookmark ( unsigned int  index,
const Bookmark &  bookmark 
)
inline

Definition at line 183 of file bytearraymodel_p.h.

void Okteta::ByteArrayModelPrivate::setByte ( Address  offset,
Byte  byte 
)
inline

Definition at line 144 of file bytearraymodel_p.h.

void Okteta::ByteArrayModelPrivate::setData ( Byte *  data,
int  size,
int  rawSize = -1,
bool  keepsMemory = true 
)
void Okteta::ByteArrayModelPrivate::setKeepsMemory ( bool  keepsMemory = true)
inline

sets whether the memory given by setData or in the constructor should be kept on resize

Definition at line 142 of file bytearraymodel_p.h.

void Okteta::ByteArrayModelPrivate::setMaxSize ( int  maxSize)
inline

Definition at line 141 of file bytearraymodel_p.h.

void Okteta::ByteArrayModelPrivate::setModified ( bool  modified = true)
inline

Definition at line 153 of file bytearraymodel_p.h.

void Okteta::ByteArrayModelPrivate::setReadOnly ( bool  readOnly = true)
inline

Definition at line 133 of file bytearraymodel_p.h.

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

Definition at line 128 of file bytearraymodel_p.h.

bool Okteta::ByteArrayModelPrivate::swap ( Address  firstStart,
const AddressRange &  secondRange 
)

Member Data Documentation

BookmarkList Okteta::ByteArrayModelPrivate::m_bookmarks
protected

Definition at line 121 of file bytearraymodel_p.h.

bool Okteta::ByteArrayModelPrivate::mAutoDelete
protected

flag whether the

Definition at line 115 of file bytearraymodel_p.h.

Byte* Okteta::ByteArrayModelPrivate::mData
protected

Definition at line 105 of file bytearraymodel_p.h.

bool Okteta::ByteArrayModelPrivate::mKeepsMemory
protected

flag whether the initially given memory should be kept

Definition at line 113 of file bytearraymodel_p.h.

int Okteta::ByteArrayModelPrivate::mMaxSize
protected

maximal size of array, unlimited if -1

Definition at line 111 of file bytearraymodel_p.h.

bool Okteta::ByteArrayModelPrivate::mModified
protected

Definition at line 119 of file bytearraymodel_p.h.

int Okteta::ByteArrayModelPrivate::mRawSize
protected

mSize of data array

Definition at line 109 of file bytearraymodel_p.h.

bool Okteta::ByteArrayModelPrivate::mReadOnly
protected

Definition at line 117 of file bytearraymodel_p.h.

int Okteta::ByteArrayModelPrivate::mSize
protected

size of the data

Definition at line 107 of file bytearraymodel_p.h.

ByteArrayModel* Okteta::ByteArrayModelPrivate::p
protected

Definition at line 103 of file bytearraymodel_p.h.


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