TRUSTTravPool#
#include <TRUSTTravPool.h>
How to reference this class#
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
: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
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`TRUSTTravPool<_TYPE_>::TRUSTTravPool()=delete <trusttravpool-public-trusttravpool-type-trusttravpool-equal-delete>`
[TRUSTTravPool<_TYPE_>::TRUSTTravPool()=delete](#trusttravpool-public-trusttravpool-type-trusttravpool-equal-delete)
ClearPool#
void TRUSTTravPool<_TYPE_>::ClearPool()
Detailed description
Empty the TRUSTTrav pool explicitely.
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void TRUSTTravPool<_TYPE_>::ClearPool() <trusttravpool-public-static-void-trusttravpool-type-clearpool>`
[void TRUSTTravPool<_TYPE_>::ClearPool()](#trusttravpool-public-static-void-trusttravpool-type-clearpool)
DeleteOnDevice#
static void TRUSTTravPool<_TYPE_>::DeleteOnDevice()
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`static void TRUSTTravPool<_TYPE_>::DeleteOnDevice() <trusttravpool-public-static-static-void-trusttravpool-type-deleteondevice>`
[static void TRUSTTravPool<_TYPE_>::DeleteOnDevice()](#trusttravpool-public-static-static-void-trusttravpool-type-deleteondevice)
GetFreeBlock#
TRUSTTravPool<_TYPE_>::block_ptr_t TRUSTTravPool<_TYPE_>::GetFreeBlock(int sz)
Detailed description
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 reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`TRUSTTravPool<_TYPE_>::block_ptr_t TRUSTTravPool<_TYPE_>::GetFreeBlock(int sz) <trusttravpool-public-static-trusttravpool-type-block-ptr-t-trusttravpool-type-getfreeblock-int-sz>`
[TRUSTTravPool<_TYPE_>::block_ptr_t TRUSTTravPool<_TYPE_>::GetFreeBlock(int sz)](#trusttravpool-public-static-trusttravpool-type-block-ptr-t-trusttravpool-type-getfreeblock-int-sz)
PrintStats#
void TRUSTTravPool<_TYPE_>::PrintStats()
Detailed description
Debug method printing useful stats.
References
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void TRUSTTravPool<_TYPE_>::PrintStats() <trusttravpool-public-static-void-trusttravpool-type-printstats>`
[void TRUSTTravPool<_TYPE_>::PrintStats()](#trusttravpool-public-static-void-trusttravpool-type-printstats)
ReleaseBlock#
void TRUSTTravPool<_TYPE_>::ReleaseBlock(block_ptr_t)
Detailed description
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 reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void TRUSTTravPool<_TYPE_>::ReleaseBlock(block_ptr_t) <trusttravpool-public-static-void-trusttravpool-type-releaseblock-block-ptr-t>`
[void TRUSTTravPool<_TYPE_>::ReleaseBlock(block_ptr_t)](#trusttravpool-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)
Detailed description
“Resize” a temporary Trav block - two possible strategies: Strategy 1
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`TRUSTTravPool<_TYPE_>::block_ptr_t TRUSTTravPool<_TYPE_>::ResizeBlock(block_ptr_t p, int new_sz) <trusttravpool-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)](#trusttravpool-public-static-trusttravpool-type-block-ptr-t-trusttravpool-type-resizeblock-block-ptr-t-p-int-new-sz)