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

kcachegrind

Public Member Functions | List of all members
DynPool Class Reference

#include <pool.h>

Public Member Functions

 DynPool ()
 
 ~DynPool ()
 
bool allocate (char **ptr, unsigned int size)
 
void free (char **ptr)
 

Detailed Description

DynPool.

For objects which probably need to be resized in the future. Objects also can be deleted to free up space. As objects can also be moved in a defragmentation step, access has to be done via the given pointer object.

Definition at line 77 of file pool.h.

Constructor & Destructor Documentation

DynPool::DynPool ( )

Definition at line 126 of file pool.cpp.

DynPool::~DynPool ( )

Definition at line 136 of file pool.cpp.

Member Function Documentation

bool DynPool::allocate ( char **  ptr,
unsigned int  size 
)

Take <size> bytes from the pool, changing <*ptr> to point to this allocated space.

<*ptr> will be changed if the object is moved. Returns false if no space available.

Definition at line 143 of file pool.cpp.

void DynPool::free ( char **  ptr)

To resize, first allocate new space, and free old afterwards.

Definition at line 166 of file pool.cpp.


The documentation for this class was generated from the following files:
  • pool.h
  • pool.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kcachegrind

Skip menu "kcachegrind"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

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