![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Offers services for allocating small objects. More...
#include <mdsSmallObject.h>

Public Member Functions | |
| void * | allocate (tSize NumBytes) |
| Allocates memory. | |
| CSmallObjectAllocator (tSize PageSize, tSize MaxObjectSize, tSize ObjectAlignSize) | |
| Constructor. | |
| void | deallocate (void *p, tSize NumBytes) |
| Deallocates memory previously allocated with allocate(). | |
| tSize | getAlignment () const |
| Returns number of bytes between allocation boundaries. | |
| tSize | getMaxObjectSize () const |
| Returns maximal allowed object size. | |
| bool | trimExcessMemory () |
| Releases empty chunks from memory. | |
| ~CSmallObjectAllocator () | |
| Destructor. | |
Offers services for allocating small objects.
| mds::base::CSmallObjectAllocator::CSmallObjectAllocator | ( | tSize | PageSize, |
| tSize | MaxObjectSize, | ||
| tSize | ObjectAlignSize | ||
| ) |
Constructor.
Destructor.
| void * mds::base::CSmallObjectAllocator::allocate | ( | tSize | NumBytes | ) |
Allocates memory.
| void mds::base::CSmallObjectAllocator::deallocate | ( | void * | p, |
| tSize | NumBytes | ||
| ) |
Deallocates memory previously allocated with allocate().
Returns number of bytes between allocation boundaries.
Returns maximal allowed object size.
Releases empty chunks from memory.
1.7.6.1