libMesh::PoolAllocator< T > Class Template Reference
#include <pool_allocator.h>
Classes | |
| struct | rebind |
Public Member Functions | |
| PoolAllocator () | |
| PoolAllocator (const PoolAllocator &o) | |
| PoolAllocator () | |
| PoolAllocator (const PoolAllocator &o) | |
Static Public Member Functions | |
| static bool | release_memory () |
| static bool | purge_memory () |
| static bool | release_memory () |
| static bool | purge_memory () |
Detailed Description
template<typename T>
class libMesh::PoolAllocator< T >
An allocator which can be used in standard containers. Uses pool-based memory allocation to efficiently allocate many small objects. Note that object destruction returns memory to the pool rather than deallocate it. It must be explicitly deallocated prior to program termination.
An allocator which can be used in standard containers. A wrapper for std::allocator<> when Boost is not available.
Definition at line 44 of file pool_allocator.h.
Constructor & Destructor Documentation
| libMesh::PoolAllocator< T >::PoolAllocator | ( | ) | [inline] |
Definition at line 57 of file pool_allocator.h.
| libMesh::PoolAllocator< T >::PoolAllocator | ( | const PoolAllocator< T > & | o | ) | [inline, explicit] |
Definition at line 61 of file pool_allocator.h.
| libMesh::PoolAllocator< T >::PoolAllocator | ( | ) | [inline] |
Definition at line 155 of file pool_allocator.h.
| libMesh::PoolAllocator< T >::PoolAllocator | ( | const PoolAllocator< T > & | o | ) | [inline, explicit] |
Definition at line 159 of file pool_allocator.h.
Member Function Documentation
| static bool libMesh::PoolAllocator< T >::purge_memory | ( | ) | [inline, static] |
Frees every memory block. This function invalidates any pointers previously returned by allocation functions. Returns true if at least one memory block was freed.
Definition at line 173 of file pool_allocator.h.
| static bool libMesh::PoolAllocator< T >::purge_memory | ( | ) | [inline, static] |
Frees every memory block. This function invalidates any pointers previously returned by allocation functions. Returns true if at least one memory block was freed.
Definition at line 78 of file pool_allocator.h.
| static bool libMesh::PoolAllocator< T >::release_memory | ( | ) | [inline, static] |
Frees every memory block that doesn't have any allocated chunks. Returns true if at least one memory block was freed.
Definition at line 167 of file pool_allocator.h.
| static bool libMesh::PoolAllocator< T >::release_memory | ( | ) | [inline, static] |
Frees every memory block that doesn't have any allocated chunks. Returns true if at least one memory block was freed.
Definition at line 69 of file pool_allocator.h.
The documentation for this class was generated from the following file:
Site Created By: libMesh Developers
Last modified: February 05 2013 19:55:34 UTC
Hosted By: