Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class 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 Member Functions

 FixedAllocator ()
 default constructs a FixedAllocator object
 ~FixedAllocator ()
 destructor - last chunk memory cleanup
void * alloc ()
 Allocate one memory block of size blockSize.
void dealloc (void *p)
 Free the single memory block pointed to by p.
void init (size_t blockSize)
 one time initialization

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:21:12 2005 for NVSGSDK by NVIDIA