PixelLightAPI  .
Static Public Member Functions
PLCore::GrowFunction Class Reference

Standard grow functions. More...

#include <Functions.h>

List of all members.

Static Public Member Functions

static PLCORE_API uint32 GetNewSize (uint32 nCurrentSize, uint32 nFreeSlots)
 Returns a new size.

Detailed Description

Standard grow functions.

Remarks:
The default grow function makes sure that there are at least 10% slots, if not, a new size basing on prime numbers is returned.

Member Function Documentation

static PLCORE_API uint32 PLCore::GrowFunction::GetNewSize ( uint32  nCurrentSize,
uint32  nFreeSlots 
) [static]

Returns a new size.

Parameters:
[in]nCurrentSizeCurrent size
[in]nFreeSlotsNumber of free slots
Returns:
New size, if <= current size then no grow is required

The documentation for this class was generated from the following file:


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:24
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported