TRUSTTravPool#

#include <TRUSTTravPool.h>

How to cite this class in this doc#

:ref:`TRUSTTravPool <class-template-trusttravpool>`
[TRUSTTravPool](#class-template-trusttravpool)

Detailed description#

Pool of memory blocks used when requesting temporary storage (Trav arrays) Purely static methods. One pool per base type (int, double, etc…). The implementation details are in the .cpp file.

List of Public Methods#

List of Public Static Methods#

Complete Member Function Documentation#

TRUSTTravPool
TRUSTTravPool<_TYPE_>::TRUSTTravPool()=delete
How to cite in this doc:
:ref:`TRUSTTravPool<_TYPE_>::TRUSTTravPool()=delete <public-trusttravpool-type-trusttravpool-equal-delete>`
[TRUSTTravPool<_TYPE_>::TRUSTTravPool()=delete](#public-trusttravpool-type-trusttravpool-equal-delete)
ClearPool
void TRUSTTravPool<_TYPE_>::ClearPool()

Empty the TRUSTTrav pool explicitely.

How to cite in this doc:
:ref:`void TRUSTTravPool<_TYPE_>::ClearPool() <public-static-void-trusttravpool-type-clearpool>`
[void TRUSTTravPool<_TYPE_>::ClearPool()](#public-static-void-trusttravpool-type-clearpool)
DeleteOnDevice
static void TRUSTTravPool<_TYPE_>::DeleteOnDevice()
How to cite in this doc:
:ref:`static void TRUSTTravPool<_TYPE_>::DeleteOnDevice() <public-static-static-void-trusttravpool-type-deleteondevice>`
[static void TRUSTTravPool<_TYPE_>::DeleteOnDevice()](#public-static-static-void-trusttravpool-type-deleteondevice)
GetFreeBlock
TRUSTTravPool<_TYPE_>::block_ptr_t TRUSTTravPool<_TYPE_>::GetFreeBlock(int sz)

Retrieve a free block of size sz. This takes the last available block from the list of the corresponding size, or returns a newly allocated block if none is available in the block.

Referenced By
How to cite in this doc:
:ref:`TRUSTTravPool<_TYPE_>::block_ptr_t TRUSTTravPool<_TYPE_>::GetFreeBlock(int sz) <public-static-trusttravpool-type-block-ptr-t-trusttravpool-type-getfreeblock-int-sz>`
[TRUSTTravPool<_TYPE_>::block_ptr_t TRUSTTravPool<_TYPE_>::GetFreeBlock(int sz)](#public-static-trusttravpool-type-block-ptr-t-trusttravpool-type-getfreeblock-int-sz)
PrintStats
void TRUSTTravPool<_TYPE_>::PrintStats()

Debug method printing useful stats.

References
How to cite in this doc:
:ref:`void TRUSTTravPool<_TYPE_>::PrintStats() <public-static-void-trusttravpool-type-printstats>`
[void TRUSTTravPool<_TYPE_>::PrintStats()](#public-static-void-trusttravpool-type-printstats)
ReleaseBlock
void TRUSTTravPool<_TYPE_>::ReleaseBlock(block_ptr_t)

Release a block. This is invoked from the dtor of TRUSTArray and makes the memory block available again by registering it in the pool of free blocks. We don’t register blocks of size 0.

Referenced By
How to cite in this doc:
:ref:`void TRUSTTravPool<_TYPE_>::ReleaseBlock(block_ptr_t) <public-static-void-trusttravpool-type-releaseblock-block-ptr-t>`
[void TRUSTTravPool<_TYPE_>::ReleaseBlock(block_ptr_t)](#public-static-void-trusttravpool-type-releaseblock-block-ptr-t)
ResizeBlock
TRUSTTravPool<_TYPE_>::block_ptr_t TRUSTTravPool<_TYPE_>::ResizeBlock(block_ptr_t p, int new_sz)

“Resize” a temporary Trav block - two possible strategies: Strategy 1

References
How to cite in this doc:
:ref:`TRUSTTravPool<_TYPE_>::block_ptr_t TRUSTTravPool<_TYPE_>::ResizeBlock(block_ptr_t p, int new_sz) <public-static-trusttravpool-type-block-ptr-t-trusttravpool-type-resizeblock-block-ptr-t-p-int-new-sz>`
[TRUSTTravPool<_TYPE_>::block_ptr_t TRUSTTravPool<_TYPE_>::ResizeBlock(block_ptr_t p, int new_sz)](#public-static-trusttravpool-type-block-ptr-t-trusttravpool-type-resizeblock-block-ptr-t-p-int-new-sz)

Attributes Documentation#