util
KDevelop::EmbeddedTreeRemoveItem< Data, ItemHandler, increaseFraction > Class Template Reference
Use this to add items. More...
#include <embeddedfreetree.h>
Public Member Functions | |
| EmbeddedTreeRemoveItem (Data *items, uint itemCount, int ¢ralFreeItem, 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:
KDE 4.4 API Reference