OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
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.

template <class A> class TMMemBlocks

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

Definition at line 421 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 436 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 446 of file template.h.

References PRECONDITION.

◆ Free()

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

Definition at line 460 of file template.h.


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