• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

util

KDevelop::EmbeddedTreeRemoveItem

KDevelop::EmbeddedTreeRemoveItem< Data, ItemHandler, increaseFraction > Class Template Reference

Use this to add items. More...

#include <embeddedfreetree.h>

List of all members.

Public Member Functions

 EmbeddedTreeRemoveItem (Data *items, uint itemCount, int &centralFreeItem, const Data &remove)
uint newItemCount () const
void transferData (Data *newItems, uint newCount, int *newCentralFree=0)

Detailed Description

template<class Data, class ItemHandler, int increaseFraction = 5>
class KDevelop::EmbeddedTreeRemoveItem< Data, ItemHandler, increaseFraction >

Use this to add items.

The removed item must be in the set! General usage:

  • Construct the object
  • Check if newItemCount() equals the previous item-count. If not, construct a new list as large as newItemCount, and call object.transferData to transfer the data into the new list. The new size must match the returned newItemCount. However this may also be ignored if the memory-saving is not wanted in that moment.

Definition at line 752 of file embeddedfreetree.h.


Member Function Documentation

template<class Data , class ItemHandler , int increaseFraction = 5>
uint KDevelop::EmbeddedTreeRemoveItem< Data, ItemHandler, increaseFraction >::newItemCount (  )  const [inline]

Check this to see whether a new item-count is needed.

If this does not equal the given itemCount, then the data needs to be transferred into a new list using transferData

Definition at line 765 of file embeddedfreetree.h.

template<class Data , class ItemHandler , int increaseFraction = 5>
void KDevelop::EmbeddedTreeRemoveItem< Data, ItemHandler, increaseFraction >::transferData ( Data *  newItems,
uint  newCount,
int *  newCentralFree = 0 
) [inline]

Transfers the data into a new item-list. The size of the new item-list must equal newItemCount().

Definition at line 779 of file embeddedfreetree.h.


The documentation for this class was generated from the following file:
  • embeddedfreetree.h

util

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

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.9-20090814
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