• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Konsole

Konsole::BlockArray

Konsole::BlockArray Class Reference

#include <BlockArray.h>

List of all members.


Detailed Description

Definition at line 42 of file BlockArray.h.


Public Member Functions

size_t append (Block *block)
const Block * at (size_t index)
 BlockArray ()
size_t getCurrent () const
bool has (size_t index) const
Block * lastBlock () const
size_t len () const
size_t newBlock ()
bool setHistorySize (size_t newsize)
bool setSize (size_t newsize)
 ~BlockArray ()

Constructor & Destructor Documentation

BlockArray::BlockArray (  ) 

Creates a history file for holding maximal size blocks.

If more blocks are requested, then it drops earlier added ones.

Definition at line 38 of file BlockArray.cpp.

BlockArray::~BlockArray (  ) 

destructor

Definition at line 53 of file BlockArray.cpp.


Member Function Documentation

size_t BlockArray::append ( Block *  block  ) 

adds the Block at the end of history.

This may drop other blocks.

The ownership on the block is transfered. An unique index number is returned for accessing it later (if not yet dropped then)

Note, that the block may be dropped completely if history is turned off.

Definition at line 59 of file BlockArray.cpp.

const Block * BlockArray::at ( size_t  index  ) 

gets the block at the index.

Function may return 0 if the block isn't available any more.

The returned block is strictly readonly as only maped in memory - and will be invalid on the next operation on this class.

Definition at line 107 of file BlockArray.cpp.

size_t Konsole::BlockArray::getCurrent (  )  const [inline]

Definition at line 100 of file BlockArray.h.

bool BlockArray::has ( size_t  index  )  const

Definition at line 95 of file BlockArray.cpp.

Block * BlockArray::lastBlock (  )  const

Definition at line 90 of file BlockArray.cpp.

size_t Konsole::BlockArray::len (  )  const [inline]

Definition at line 96 of file BlockArray.h.

size_t BlockArray::newBlock (  ) 

Definition at line 80 of file BlockArray.cpp.

bool BlockArray::setHistorySize ( size_t  newsize  ) 

reorders blocks as needed.

If newsize is null, the history is emptied completely. The indices returned on append won't change their semantic, but they may not be valid after this call.

Definition at line 155 of file BlockArray.cpp.

bool BlockArray::setSize ( size_t  newsize  ) 

Convenient function to set the size in KBytes instead of blocks.

Definition at line 150 of file BlockArray.cpp.


The documentation for this class was generated from the following files:
  • BlockArray.h
  • BlockArray.cpp

Konsole

Skip menu "Konsole"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal