|
libMesh
|
An allocator which can be used in standard containers. More...
#include <pool_allocator.h>
Classes | |
| struct | rebind |
| Methods required for copy construction of containers using this allocator. More... | |
Public Member Functions | |
| FastPoolAllocator () | |
| template<typename U > | |
| FastPoolAllocator (const FastPoolAllocator< U > &o) | |
| FastPoolAllocator () | |
| template<typename U > | |
| FastPoolAllocator (const FastPoolAllocator< U > &o) | |
Static Public Member Functions | |
| static bool | release_memory () |
| Frees every memory block that doesn't have any allocated chunks. More... | |
| static bool | purge_memory () |
| Frees every memory block. More... | |
| static bool | release_memory () |
| Frees every memory block that doesn't have any allocated chunks. More... | |
| static bool | purge_memory () |
| Frees every memory block. More... | |
An allocator which can be used in standard containers.
Uses pool-based memory allocation to efficiently allocate many small objects.
A wrapper for std::allocator<> when Boost is not available.
Definition at line 112 of file pool_allocator.h.
|
inline |
Definition at line 125 of file pool_allocator.h.
|
inline |
Definition at line 130 of file pool_allocator.h.
|
inline |
Definition at line 227 of file pool_allocator.h.
|
inline |
Definition at line 232 of file pool_allocator.h.
|
inlinestatic |
Frees every memory block.
This function invalidates any pointers previously returned by allocation functions.
true if at least one memory block was freed. Definition at line 150 of file pool_allocator.h.
|
inlinestatic |
Frees every memory block.
This function invalidates any pointers previously returned by allocation functions.
true if at least one memory block was freed. Definition at line 248 of file pool_allocator.h.
|
inlinestatic |
Frees every memory block that doesn't have any allocated chunks.
true if at least one memory block was freed. Definition at line 139 of file pool_allocator.h.
|
inlinestatic |
Frees every memory block that doesn't have any allocated chunks.
true if at least one memory block was freed. Definition at line 240 of file pool_allocator.h.
1.8.14