Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

nvutil::FixedAllocator Class Reference

Manages allocation requests for objects of a certain size only. More...

#include <Allocator.h>

Collaboration diagram for nvutil::FixedAllocator:

Collaboration graph
[legend]
List of all members.

Public Methods

 FixedAllocator ()
 default constructs a FixedAllocator object. More...

 ~FixedAllocator ()
 destructor - last chunk memory cleanup. More...

void * alloc ()
 Allocate one memory block of size blockSize. More...

void dealloc (void *p)
 Free the single memory block pointed to by p. More...

void init (size_t blockSize)
 one time initialization. More...


Detailed Description

Manages allocation requests for objects of a certain size only.


Constructor & Destructor Documentation

nvutil::FixedAllocator::FixedAllocator  
 

default constructs a FixedAllocator object.

nvutil::FixedAllocator::~FixedAllocator  
 

destructor - last chunk memory cleanup.


Member Function Documentation

void* nvutil::FixedAllocator::alloc  
 

Allocate one memory block of size blockSize.

void nvutil::FixedAllocator::dealloc void *    p
 

Free the single memory block pointed to by p.

void nvutil::FixedAllocator::init size_t    blockSize [inline]
 

one time initialization.

FixedAllocator::init()

one time initialization


The documentation for this class was generated from the following file:
Generated on Tue Mar 1 13:20:44 2005 for NVSGSDK by NVIDIA