|
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 | |
| PoolAllocator () | |
| template<typename U > | |
| PoolAllocator (const PoolAllocator< U > &o) | |
| PoolAllocator () | |
| template<typename U > | |
| PoolAllocator (const PoolAllocator< U > &o) | |
Static Public Member Functions | |
| static bool | release_memory () |
| Frees every memory block that doesn't have any allocated chunks. | |
| static bool | purge_memory () |
| Frees every memory block. | |
| static bool | release_memory () |
| Frees every memory block that doesn't have any allocated chunks. | |
| static bool | purge_memory () |
| Frees every memory block. | |
An allocator which can be used in standard containers.
Uses pool-based memory allocation to efficiently allocate many small objects.
Boost-derived allocator that can be used with std::containers.
A wrapper for std::allocator<> when Boost is not available.
PoolAllocator is std::allocator when Boost is not available.
Definition at line 53 of file pool_allocator.h.
|
inline |
Definition at line 66 of file pool_allocator.h.
|
inline |
Definition at line 71 of file pool_allocator.h.
|
inline |
Definition at line 180 of file pool_allocator.h.
|
inline |
Definition at line 185 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 90 of file pool_allocator.h.
References libMesh::PoolAllocator< T >::purge_memory().
Referenced by libMesh::PoolAllocator< T >::purge_memory().
|
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 201 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 79 of file pool_allocator.h.
References libMesh::PoolAllocator< T >::release_memory().
Referenced by libMesh::PoolAllocator< T >::release_memory().
|
inlinestatic |
Frees every memory block that doesn't have any allocated chunks.
true if at least one memory block was freed. Definition at line 193 of file pool_allocator.h.