Blockstructured Adaptive Mesh Refinement in object-oriented C++
#include <fastAlloc.h>
Public Methods | |
fastAlloc (const unsigned int size, const unsigned int atatime) | |
Creates a class instance which returns blocks of size bytes. More... | |
~fastAlloc () | |
void * | alloc () |
void | free (void *block) |
This class is similar to the one described in Bjarne Stroustrup's "The C++ Programming Language", Second Edition. Adapted from implementation by Scott Kohn (skohn@cs.ucsd.edu).
Definition at line 18 of file fastAlloc.h.
|
Creates a class instance which returns blocks of size bytes. When new blocks are allocated, atatime blocks are allocated. We want to align the data on powers-of-two boundaries 4, 8, or 16 since many architectures restrict the address of some data objects such as doubles. Definition at line 32 of file fastAlloc.C. |
Quickstart Users Guide Programmers Reference Installation Examples Download
AMROC Main Home Contactlast update: 06/01/04