OWLNext    7.0
Borland's Object Windows Library for the modern age
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
owl::TMMemBlocks< A > Class Template Reference

Managed single-size block allocator. More...

#include <owl/template.h>

Public Member Functions

 TMMemBlocks (size_t sz, unsigned int count=100)
 
voidAllocate (size_t sz)
 
void Free (void *block)
 

Detailed Description

template<class A>
class owl::TMMemBlocks< A >

Managed single-size block allocator.

Allocates blocks of the size specified in the constructor, using the memory manager specified by A.

Definition at line 458 of file template.h.

Constructor & Destructor Documentation

◆ TMMemBlocks()

template<class A >
owl::TMMemBlocks< A >::TMMemBlocks ( size_t sz,
unsigned int count = 100 )
inline

Definition at line 478 of file template.h.

References CHECK.

Member Function Documentation

◆ Allocate()

template<class A >
void * owl::TMMemBlocks< A >::Allocate ( size_t sz)
inline

Definition at line 485 of file template.h.

References owl::InUse(), and PRECONDITION.

◆ Free()

template<class A >
void owl::TMMemBlocks< A >::Free ( void * block)
inline

Definition at line 499 of file template.h.


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