|
TrioCFD 1.9.8
TrioCFD documentation
|
Public Types | |
| using | ptr_t = std::shared_ptr<typename TRUSTArray<_TYPE_,int>::Vector_> |
| using | list_t = std::list<ptr_t> |
| using | pool_t = std::unordered_map<size_t, list_t> |
Static Public Attributes | |
| static pool_t | Free_blocks_ |
| static size_t | req_sz_ |
| Total allocation requests: | |
| static size_t | actual_sz_ |
| Actual alloc performed: | |
| static int | num_items_ |
| Total number of blocks in the pool: | |
The shared pools of memory - visibility: here only.
Implementation is done as a map of lists. Key is the array size, and the list simply contains pointers to available free blocks. So a block is only registered in the list when it is released.
Definition at line 34 of file TRUSTTravPool.cpp.
Definition at line 37 of file TRUSTTravPool.cpp.
Definition at line 38 of file TRUSTTravPool.cpp.
| using PoolImpl_< _TYPE_ >::ptr_t = std::shared_ptr<typename TRUSTArray<_TYPE_,int>::Vector_> |
Definition at line 36 of file TRUSTTravPool.cpp.
|
static |
Actual alloc performed:
Definition at line 50 of file TRUSTTravPool.cpp.
A pool is a map of lists:
Definition at line 44 of file TRUSTTravPool.cpp.
|
static |
Total number of blocks in the pool:
Definition at line 52 of file TRUSTTravPool.cpp.
|
static |
Total allocation requests:
Definition at line 48 of file TRUSTTravPool.cpp.