TRUSTTravPool#

#include <TRUSTTravPool.h>
Brief description

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#

Definition
TRUSTTravPool<_TYPE_>::TRUSTTravPool()=delete
Brief description
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#

Definition
void TRUSTTravPool<_TYPE_>::ClearPool()
Brief description
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#

Definition
static void TRUSTTravPool<_TYPE_>::DeleteOnDevice()
Brief description
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#

Definition
TRUSTTravPool<_TYPE_>::block_ptr_t TRUSTTravPool<_TYPE_>::GetFreeBlock(int sz)
Brief description
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#

Definition
void TRUSTTravPool<_TYPE_>::PrintStats()
Brief description
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#

Definition
void TRUSTTravPool<_TYPE_>::ReleaseBlock(block_ptr_t)
Brief description
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#

Definition
TRUSTTravPool<_TYPE_>::block_ptr_t TRUSTTravPool<_TYPE_>::ResizeBlock(block_ptr_t p, int new_sz)
Brief description
Detailed description

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

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:`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)

Attributes Documentation#