|
IBAMR
IBAMR version 0.19.
|
Public Member Functions | |
| Allocator () | |
| Allocator (const Allocator &)=delete | |
| Allocator & | operator= (const Allocator &)=delete |
| ~Allocator () | |
| TYPE * | allocate (const std::size_t block_size) |
Static Public Member Functions | |
| static Allocator & | getAllocator () |
| static std::size_t | getNumberOfAllocations () |
| static void | deallocate (TYPE *const block, const std::size_t block_size) |
Static Private Member Functions | |
| static std::size_t | get_block_id (const std::size_t block_size) |
Static Private Attributes | |
| static bool | s_is_available |
| static std::size_t | s_number_of_allocations |
| static std::vector< std::vector< TYPE * > > | s_block_stacks |
Internal allocation class. Responsible for managing a memory pool for each type of Array.
|
inline |
|
delete |
|
inline |
|
inlinestaticprivate |
|
delete |
|
inlinestatic |
|
inlinestatic |
|
inline |
Return a block of memory with enough space for block_size elements of type TYPE. This block may either be newly allocated (via std::malloc()) or taken from a pool of previously allocated data.
This function is not static to ensure it is only called after Allocator() called.
|
inlinestatic |
Return an allocated block to the allocator.
This function is static since it may be run after ~Allocator() is run.
|
staticprivate |
|
staticprivate |
|
staticprivate |
1.8.17