Dynalib Utils
Static Public Member Functions | List of all members
DynaAllocVect< T > Class Template Reference

#include <DynaAlloc.h>

Static Public Member Functions

static T ** newVect (uint count)
 
static T ** reallocVect (T **array, uint oldCount, uint newCount, bool isOwner)
 
static T ** deleteVect (T **array, uint arrayCount, bool isOwner)
 
static void setAllocUnits (uint allocUnits)
 
static uint getAllocUnits ()
 

Member Function Documentation

◆ deleteVect()

template<class T >
T ** DynaAllocVect< T >::deleteVect ( T **  array,
uint  arrayCount,
bool  isOwner 
)
static

◆ getAllocUnits()

template<class T >
static uint DynaAllocVect< T >::getAllocUnits ( )
inlinestatic

◆ newVect()

template<class T >
T ** DynaAllocVect< T >::newVect ( uint  count)
static

◆ reallocVect()

template<class T >
T ** DynaAllocVect< T >::reallocVect ( T **  array,
uint  oldCount,
uint  newCount,
bool  isOwner 
)
static

Delete any items that are past the new list size

Zero out all the pointers from the old array so that deleting it will not invoke any destructors, since we have already invoked them just above if we are the owners of the members.

◆ setAllocUnits()

template<class T >
static void DynaAllocVect< T >::setAllocUnits ( uint  allocUnits)
inlinestatic

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