TRUSTArray#

#include <TRUSTArray.h>
Brief description

Represents a an array of int/int64/double/… values.

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:`TRUSTArray <class-template-trustarray>`
[TRUSTArray](#class-template-trustarray)

Detailed description#

The two main members are mem_ and span_: We can have 3 states for the array: Finally, in case of a “XXTrav” array, the memory allocation is special: In the template parameters below, is the value type (what it contains), is the extent type (how many items).

Inherits from#

Inherited by#

Inheritance graph#

If the image is too small, right-click and open in new tab

../../../../../_images/classTRUSTArray__inherit__graph.png

List of Protected Methods#

List of Public Methods#

List of Private Methods#

Complete Member Function Documentation#

attach_array#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::attach_array(const TRUSTArray &a, _SIZE_ start=0, _SIZE_ size=-1)
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:`void TRUSTArray<_TYPE_, _SIZE_>::attach_array(const TRUSTArray &a, _SIZE_ start=0, _SIZE_ size=-1) <trustarray-protected-void-trustarray-type-size-attach-array-const-trustarray-ref-a-size-start-equal-0-size-size-equal-1>`
[void TRUSTArray<_TYPE_, _SIZE_>::attach_array(const TRUSTArray &a, _SIZE_ start=0, _SIZE_ size=-1)](#trustarray-protected-void-trustarray-type-size-attach-array-const-trustarray-ref-a-size-start-equal-0-size-size-equal-1)

detach_array#

Definition
bool TRUSTArray<_TYPE_, _SIZE_>::detach_array()
Brief description
Detailed description
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:`bool TRUSTArray<_TYPE_, _SIZE_>::detach_array() <trustarray-protected-bool-trustarray-type-size-detach-array>`
[bool TRUSTArray<_TYPE_, _SIZE_>::detach_array()](#trustarray-protected-bool-trustarray-type-size-detach-array)

duplique#

Definition
int TRUSTArray<_TYPE_, _SIZE_>::duplique() const override
Brief description
Detailed description

Reimplements:

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:`int TRUSTArray<_TYPE_, _SIZE_>::duplique() const override <trustarray-protected-int-trustarray-type-size-duplique-const-override>`
[int TRUSTArray<_TYPE_, _SIZE_>::duplique() const override](#trustarray-protected-int-trustarray-type-size-duplique-const-override)

init_device_view#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::init_device_view() const
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:`void TRUSTArray<_TYPE_, _SIZE_>::init_device_view() const <trustarray-protected-void-trustarray-type-size-init-device-view-const>`
[void TRUSTArray<_TYPE_, _SIZE_>::init_device_view() const](#trustarray-protected-void-trustarray-type-size-init-device-view-const)

printOn#

Definition
Sortie & TRUSTArray<_TYPE_, _SIZE_>::printOn(Sortie &os) const override
Brief description

Ecriture de l’objet sur un flot de sortie Methode a surcharger.

Detailed description

Reimplements:

References
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:`Sortie & TRUSTArray<_TYPE_, _SIZE_>::printOn(Sortie &os) const override <trustarray-protected-sortie-ref-trustarray-type-size-printon-sortie-ref-os-const-override>`
[Sortie & TRUSTArray<_TYPE_, _SIZE_>::printOn(Sortie &os) const override](#trustarray-protected-sortie-ref-trustarray-type-size-printon-sortie-ref-os-const-override)

readOn#

Definition
Entree & TRUSTArray<_TYPE_, _SIZE_>::readOn(Entree &is) override
Brief description

Lecture d’un Objet_U sur un flot d’entree Methode a surcharger.

Detailed description

Reimplements:

References
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:`Entree & TRUSTArray<_TYPE_, _SIZE_>::readOn(Entree &is) override <trustarray-protected-entree-ref-trustarray-type-size-readon-entree-ref-is-override>`
[Entree & TRUSTArray<_TYPE_, _SIZE_>::readOn(Entree &is) override](#trustarray-protected-entree-ref-trustarray-type-size-readon-entree-ref-is-override)

resize_array_#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::resize_array_(_SIZE_ n, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)
Brief description
Detailed description

Protected method for resize. Used by derived classes. Same as resize_array() with less checks. This is also where we deal with the STORAGE::TEMP_STORAGE capability, i.e. the Trav arrays. There memory is taken from a shared pool ( TRUSTTravPool ). This kind of array should never be used in 64bits, since Trav are meaningful when inside the timestepping (so the 32bit world after the Scatter isntruction).

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 TRUSTArray<_TYPE_, _SIZE_>::resize_array_(_SIZE_ n, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT) <trustarray-protected-void-trustarray-type-size-resize-array-underscore-size-n-resize-options-opt-equal-resize-options-copy-init>`
[void TRUSTArray<_TYPE_, _SIZE_>::resize_array_(_SIZE_ n, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)](#trustarray-protected-void-trustarray-type-size-resize-array-underscore-size-n-resize-options-opt-equal-resize-options-copy-init)

taille_memoire#

Definition
unsigned TRUSTArray<_TYPE_, _SIZE_>::taille_memoire() const override
Brief description
Detailed description

Reimplements:

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:`unsigned TRUSTArray<_TYPE_, _SIZE_>::taille_memoire() const override <trustarray-protected-unsigned-trustarray-type-size-taille-memoire-const-override>`
[unsigned TRUSTArray<_TYPE_, _SIZE_>::taille_memoire() const override](#trustarray-protected-unsigned-trustarray-type-size-taille-memoire-const-override)

addr#

Definition
_TYPE_ * TRUSTArray<_TYPE_, _SIZE_>::addr()
Brief description
Detailed description
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:`_TYPE_ * TRUSTArray<_TYPE_, _SIZE_>::addr() <trustarray-public-type-ptr-trustarray-type-size-addr>`
[_TYPE_ * TRUSTArray<_TYPE_, _SIZE_>::addr()](#trustarray-public-type-ptr-trustarray-type-size-addr)

addr#

Definition
const _TYPE_ * TRUSTArray<_TYPE_, _SIZE_>::addr() const
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:`const _TYPE_ * TRUSTArray<_TYPE_, _SIZE_>::addr() const <trustarray-public-const-type-ptr-trustarray-type-size-addr-const>`
[const _TYPE_ * TRUSTArray<_TYPE_, _SIZE_>::addr() const](#trustarray-public-const-type-ptr-trustarray-type-size-addr-const)

append_array#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::append_array(_TYPE_ valeur)
Brief description
Detailed description

Add a slot at the end of the array and store it valeur - > similar to vector<>::push_back

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 TRUSTArray<_TYPE_, _SIZE_>::append_array(_TYPE_ valeur) <trustarray-public-void-trustarray-type-size-append-array-type-valeur>`
[void TRUSTArray<_TYPE_, _SIZE_>::append_array(_TYPE_ valeur)](#trustarray-public-void-trustarray-type-size-append-array-type-valeur)

begin#

Definition
Iterator_ TRUSTArray<_TYPE_, _SIZE_>::begin()
Brief description
Detailed description
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:`Iterator_ TRUSTArray<_TYPE_, _SIZE_>::begin() <trustarray-public-iterator-trustarray-type-size-begin>`
[Iterator_ TRUSTArray<_TYPE_, _SIZE_>::begin()](#trustarray-public-iterator-trustarray-type-size-begin)

check_flattened#

Definition
bool TRUSTArray<_TYPE_, _SIZE_>::check_flattened() const
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:`bool TRUSTArray<_TYPE_, _SIZE_>::check_flattened() const <trustarray-public-bool-trustarray-type-size-check-flattened-const>`
[bool TRUSTArray<_TYPE_, _SIZE_>::check_flattened() const](#trustarray-public-bool-trustarray-type-size-check-flattened-const)

checkDataOnDevice#

Definition
bool TRUSTArray<_TYPE_, _SIZE_>::checkDataOnDevice()
Brief description
Detailed description
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:`bool TRUSTArray<_TYPE_, _SIZE_>::checkDataOnDevice() <trustarray-public-bool-trustarray-type-size-checkdataondevice>`
[bool TRUSTArray<_TYPE_, _SIZE_>::checkDataOnDevice()](#trustarray-public-bool-trustarray-type-size-checkdataondevice)

checkDataOnDevice#

Definition
bool TRUSTArray<_TYPE_, _SIZE_>::checkDataOnDevice() const
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:`bool TRUSTArray<_TYPE_, _SIZE_>::checkDataOnDevice() const <trustarray-public-bool-trustarray-type-size-checkdataondevice-const>`
[bool TRUSTArray<_TYPE_, _SIZE_>::checkDataOnDevice() const](#trustarray-public-bool-trustarray-type-size-checkdataondevice-const)

checkDataOnDevice#

Definition
bool TRUSTArray<_TYPE_, _SIZE_>::checkDataOnDevice(const TRUSTArray &arr)
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:`bool TRUSTArray<_TYPE_, _SIZE_>::checkDataOnDevice(const TRUSTArray &arr) <trustarray-public-bool-trustarray-type-size-checkdataondevice-const-trustarray-ref-arr>`
[bool TRUSTArray<_TYPE_, _SIZE_>::checkDataOnDevice(const TRUSTArray &arr)](#trustarray-public-bool-trustarray-type-size-checkdataondevice-const-trustarray-ref-arr)

CleanMyView#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::CleanMyView()
Brief description
Detailed description
References
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 TRUSTArray<_TYPE_, _SIZE_>::CleanMyView() <trustarray-public-void-trustarray-type-size-cleanmyview>`
[void TRUSTArray<_TYPE_, _SIZE_>::CleanMyView()](#trustarray-public-void-trustarray-type-size-cleanmyview)

copy_array#

Definition
TRUSTArray & TRUSTArray<_TYPE_, _SIZE_>::copy_array(const TRUSTArray &a)
Brief description
Detailed description
References
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:`TRUSTArray & TRUSTArray<_TYPE_, _SIZE_>::copy_array(const TRUSTArray &a) <trustarray-public-trustarray-ref-trustarray-type-size-copy-array-const-trustarray-ref-a>`
[TRUSTArray & TRUSTArray<_TYPE_, _SIZE_>::copy_array(const TRUSTArray &a)](#trustarray-public-trustarray-ref-trustarray-type-size-copy-array-const-trustarray-ref-a)

data#

Definition
_TYPE_ * TRUSTArray<_TYPE_, _SIZE_>::data()
Brief description
Detailed description
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:`_TYPE_ * TRUSTArray<_TYPE_, _SIZE_>::data() <trustarray-public-type-ptr-trustarray-type-size-data>`
[_TYPE_ * TRUSTArray<_TYPE_, _SIZE_>::data()](#trustarray-public-type-ptr-trustarray-type-size-data)

data#

Definition
const _TYPE_ * TRUSTArray<_TYPE_, _SIZE_>::data() const
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:`const _TYPE_ * TRUSTArray<_TYPE_, _SIZE_>::data() const <trustarray-public-const-type-ptr-trustarray-type-size-data-const>`
[const _TYPE_ * TRUSTArray<_TYPE_, _SIZE_>::data() const](#trustarray-public-const-type-ptr-trustarray-type-size-data-const)

dimension_tot#

Definition
virtual _SIZE_ TRUSTArray<_TYPE_, _SIZE_>::dimension_tot(int) const
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:`virtual _SIZE_ TRUSTArray<_TYPE_, _SIZE_>::dimension_tot(int) const <trustarray-public-virtual-size-trustarray-type-size-dimension-tot-int-const>`
[virtual _SIZE_ TRUSTArray<_TYPE_, _SIZE_>::dimension_tot(int) const](#trustarray-public-virtual-size-trustarray-type-size-dimension-tot-int-const)

end#

Definition
Iterator_ TRUSTArray<_TYPE_, _SIZE_>::end()
Brief description
Detailed description
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:`Iterator_ TRUSTArray<_TYPE_, _SIZE_>::end() <trustarray-public-iterator-trustarray-type-size-end>`
[Iterator_ TRUSTArray<_TYPE_, _SIZE_>::end()](#trustarray-public-iterator-trustarray-type-size-end)

ensureDataOnHost#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::ensureDataOnHost()
Brief description
Detailed description
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 TRUSTArray<_TYPE_, _SIZE_>::ensureDataOnHost() <trustarray-public-void-trustarray-type-size-ensuredataonhost>`
[void TRUSTArray<_TYPE_, _SIZE_>::ensureDataOnHost()](#trustarray-public-void-trustarray-type-size-ensuredataonhost)

ensureDataOnHost#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::ensureDataOnHost() const
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:`void TRUSTArray<_TYPE_, _SIZE_>::ensureDataOnHost() const <trustarray-public-void-trustarray-type-size-ensuredataonhost-const>`
[void TRUSTArray<_TYPE_, _SIZE_>::ensureDataOnHost() const](#trustarray-public-void-trustarray-type-size-ensuredataonhost-const)

from_tid_to_int#

Definition
void TRUSTArray<trustIdType, trustIdType>::from_tid_to_int(TRUSTArray< int, int > &out) const
Brief description
Detailed description

Conversion from a BigArrOfTID to an ArrOfInt. Careful, it always does a copy! It is your responsibility to invoke it only when necessary (typically you should avoid this when trustIdType = = int …)

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 TRUSTArray<trustIdType, trustIdType>::from_tid_to_int(TRUSTArray< int, int > &out) const <trustarray-public-void-trustarray-trustidtype-trustidtype-from-tid-to-int-trustarray-int-int-ref-out-const>`
[void TRUSTArray<trustIdType, trustIdType>::from_tid_to_int(TRUSTArray< int, int > &out) const](#trustarray-public-void-trustarray-trustidtype-trustidtype-from-tid-to-int-trustarray-int-int-ref-out-const)

from_tid_to_int#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::from_tid_to_int(TRUSTArray< int, int > &out) const
Brief description
Detailed description
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 TRUSTArray<_TYPE_, _SIZE_>::from_tid_to_int(TRUSTArray< int, int > &out) const <trustarray-public-void-trustarray-type-size-from-tid-to-int-trustarray-int-int-ref-out-const>`
[void TRUSTArray<_TYPE_, _SIZE_>::from_tid_to_int(TRUSTArray< int, int > &out) const](#trustarray-public-void-trustarray-type-size-from-tid-to-int-trustarray-int-int-ref-out-const)

get_data_location#

Definition
DataLocation TRUSTArray<_TYPE_, _SIZE_>::get_data_location()
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:`DataLocation TRUSTArray<_TYPE_, _SIZE_>::get_data_location() <trustarray-public-datalocation-trustarray-type-size-get-data-location>`
[DataLocation TRUSTArray<_TYPE_, _SIZE_>::get_data_location()](#trustarray-public-datalocation-trustarray-type-size-get-data-location)

get_data_location#

Definition
DataLocation TRUSTArray<_TYPE_, _SIZE_>::get_data_location() const
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:`DataLocation TRUSTArray<_TYPE_, _SIZE_>::get_data_location() const <trustarray-public-datalocation-trustarray-type-size-get-data-location-const>`
[DataLocation TRUSTArray<_TYPE_, _SIZE_>::get_data_location() const](#trustarray-public-datalocation-trustarray-type-size-get-data-location-const)

get_mem#

Definition
std::shared_ptr<Vector_> TRUSTArray<_TYPE_, _SIZE_>::get_mem()
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:`std::shared_ptr<Vector_> TRUSTArray<_TYPE_, _SIZE_>::get_mem() <trustarray-public-std-shared-ptr-vector-trustarray-type-size-get-mem>`
[std::shared_ptr<Vector_> TRUSTArray<_TYPE_, _SIZE_>::get_mem()](#trustarray-public-std-shared-ptr-vector-trustarray-type-size-get-mem)

get_mem_storage#

Definition
STORAGE TRUSTArray<_TYPE_, _SIZE_>::get_mem_storage() const
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:`STORAGE TRUSTArray<_TYPE_, _SIZE_>::get_mem_storage() const <trustarray-public-storage-trustarray-type-size-get-mem-storage-const>`
[STORAGE TRUSTArray<_TYPE_, _SIZE_>::get_mem_storage() const](#trustarray-public-storage-trustarray-type-size-get-mem-storage-const)

get_span#

Definition
virtual Span_ TRUSTArray<_TYPE_, _SIZE_>::get_span()
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:`virtual Span_ TRUSTArray<_TYPE_, _SIZE_>::get_span() <trustarray-public-virtual-span-trustarray-type-size-get-span>`
[virtual Span_ TRUSTArray<_TYPE_, _SIZE_>::get_span()](#trustarray-public-virtual-span-trustarray-type-size-get-span)

get_span#

Definition
virtual const Span_ TRUSTArray<_TYPE_, _SIZE_>::get_span() const
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:`virtual const Span_ TRUSTArray<_TYPE_, _SIZE_>::get_span() const <trustarray-public-virtual-const-span-trustarray-type-size-get-span-const>`
[virtual const Span_ TRUSTArray<_TYPE_, _SIZE_>::get_span() const](#trustarray-public-virtual-const-span-trustarray-type-size-get-span-const)

get_span_tot#

Definition
virtual Span_ TRUSTArray<_TYPE_, _SIZE_>::get_span_tot()
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:`virtual Span_ TRUSTArray<_TYPE_, _SIZE_>::get_span_tot() <trustarray-public-virtual-span-trustarray-type-size-get-span-tot>`
[virtual Span_ TRUSTArray<_TYPE_, _SIZE_>::get_span_tot()](#trustarray-public-virtual-span-trustarray-type-size-get-span-tot)

get_span_tot#

Definition
virtual const Span_ TRUSTArray<_TYPE_, _SIZE_>::get_span_tot() const
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:`virtual const Span_ TRUSTArray<_TYPE_, _SIZE_>::get_span_tot() const <trustarray-public-virtual-const-span-trustarray-type-size-get-span-tot-const>`
[virtual const Span_ TRUSTArray<_TYPE_, _SIZE_>::get_span_tot() const](#trustarray-public-virtual-const-span-trustarray-type-size-get-span-tot-const)

getDims#

Definition
std::array<_SIZE_, 4> TRUSTArray<_TYPE_, _SIZE_>::getDims() const
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:`std::array<_SIZE_, 4> TRUSTArray<_TYPE_, _SIZE_>::getDims() const <trustarray-public-std-array-size-4-trustarray-type-size-getdims-const>`
[std::array<_SIZE_, 4> TRUSTArray<_TYPE_, _SIZE_>::getDims() const](#trustarray-public-std-array-size-4-trustarray-type-size-getdims-const)

inject_array#

Definition
TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::inject_array(const TRUSTArray &source, _SIZE_ nb_elements=-1, _SIZE_ first_element_dest=0, _SIZE_ first_element_source=0)
Brief description
Detailed description

Copie les elements source[first_element_source + i] dans les elements (*this)[first_element_dest + i] pour 0 < = i <nb_elements Les autres elements de (*this) sont inchanges.

References
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:`TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::inject_array(const TRUSTArray &source, _SIZE_ nb_elements=-1, _SIZE_ first_element_dest=0, _SIZE_ first_element_source=0) <trustarray-public-trustarray-type-size-ref-trustarray-type-size-inject-array-const-trustarray-ref-source-size-nb-elements-equal-1-size-first-element-dest-equal-0-size-first-element-source-equal-0>`
[TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::inject_array(const TRUSTArray &source, _SIZE_ nb_elements=-1, _SIZE_ first_element_dest=0, _SIZE_ first_element_source=0)](#trustarray-public-trustarray-type-size-ref-trustarray-type-size-inject-array-const-trustarray-ref-source-size-nb-elements-equal-1-size-first-element-dest-equal-0-size-first-element-source-equal-0)

isDataOnDevice#

Definition
bool TRUSTArray<_TYPE_, _SIZE_>::isDataOnDevice() const
Brief description
Detailed description
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:`bool TRUSTArray<_TYPE_, _SIZE_>::isDataOnDevice() const <trustarray-public-bool-trustarray-type-size-isdataondevice-const>`
[bool TRUSTArray<_TYPE_, _SIZE_>::isDataOnDevice() const](#trustarray-public-bool-trustarray-type-size-isdataondevice-const)

operator()#

Definition
_TYPE_ & TRUSTArray<_TYPE_, _SIZE_>::operator()(_SIZE_ i)
Brief description
Detailed description
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:`_TYPE_ & TRUSTArray<_TYPE_, _SIZE_>::operator()(_SIZE_ i) <trustarray-public-type-ref-trustarray-type-size-operator-size-i>`
[_TYPE_ & TRUSTArray<_TYPE_, _SIZE_>::operator()(_SIZE_ i)](#trustarray-public-type-ref-trustarray-type-size-operator-size-i)

operator()#

Definition
const _TYPE_ & TRUSTArray<_TYPE_, _SIZE_>::operator()(_SIZE_ i) const
Brief description
Detailed description
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:`const _TYPE_ & TRUSTArray<_TYPE_, _SIZE_>::operator()(_SIZE_ i) const <trustarray-public-const-type-ref-trustarray-type-size-operator-size-i-const>`
[const _TYPE_ & TRUSTArray<_TYPE_, _SIZE_>::operator()(_SIZE_ i) const](#trustarray-public-const-type-ref-trustarray-type-size-operator-size-i-const)

operator* =#

Definition
TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator*=(const _TYPE_ dy)
Brief description
Detailed description

muliplie toutes les cases par dy

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:`TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator*=(const _TYPE_ dy) <trustarray-public-trustarray-type-size-ref-trustarray-type-size-operator-ptr-equal-const-type-dy>`
[TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator*=(const _TYPE_ dy)](#trustarray-public-trustarray-type-size-ref-trustarray-type-size-operator-ptr-equal-const-type-dy)

operator + =#

Definition
TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator+=(const _TYPE_ dy)
Brief description
Detailed description

ajoute la meme valeur a toutes les cases du tableau Ajoute la meme valeur a toutes les cases du tableau

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:`TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator+=(const _TYPE_ dy) <trustarray-public-trustarray-type-size-ref-trustarray-type-size-operator+-equal-const-type-dy>`
[TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator+=(const _TYPE_ dy)](#trustarray-public-trustarray-type-size-ref-trustarray-type-size-operator+-equal-const-type-dy)

operator + =#

Definition
TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator+=(const TRUSTArray &y)
Brief description
Detailed description

Addition case a case sur toutes les cases du tableau : la taille de y doit etre au moins egale a la taille de this

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:`TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator+=(const TRUSTArray &y) <trustarray-public-trustarray-type-size-ref-trustarray-type-size-operator+-equal-const-trustarray-ref-y>`
[TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator+=(const TRUSTArray &y)](#trustarray-public-trustarray-type-size-ref-trustarray-type-size-operator+-equal-const-trustarray-ref-y)

operator - =#

Definition
TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator-=(const _TYPE_ dy)
Brief description
Detailed description

soustrait la meme valeur a toutes les cases

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:`TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator-=(const _TYPE_ dy) <trustarray-public-trustarray-type-size-ref-trustarray-type-size-operator-equal-const-type-dy>`
[TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator-=(const _TYPE_ dy)](#trustarray-public-trustarray-type-size-ref-trustarray-type-size-operator-equal-const-type-dy)

operator - =#

Definition
TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator-=(const TRUSTArray &y)
Brief description
Detailed description

Soustraction case a case sur toutes les cases du tableau : tableau de meme taille que *this

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:`TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator-=(const TRUSTArray &y) <trustarray-public-trustarray-type-size-ref-trustarray-type-size-operator-equal-const-trustarray-ref-y>`
[TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator-=(const TRUSTArray &y)](#trustarray-public-trustarray-type-size-ref-trustarray-type-size-operator-equal-const-trustarray-ref-y)

operator/ =#

Definition
TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator/=(const _TYPE_ dy)
Brief description
Detailed description

divise toutes les cases par dy (pas pour TRUSTArray<int> )

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:`TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator/=(const _TYPE_ dy) <trustarray-public-trustarray-type-size-ref-trustarray-type-size-operator/-equal-const-type-dy>`
[TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator/=(const _TYPE_ dy)](#trustarray-public-trustarray-type-size-ref-trustarray-type-size-operator/-equal-const-type-dy)

operator =#

Definition
TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator=(_TYPE_ x)
Brief description
Detailed description

Assign ‘x’ to all slots in the array Remplit le tableau avec la x en parametre (x est affecte a toutes les cases du tableau)

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:`TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator=(_TYPE_ x) <trustarray-public-trustarray-type-size-ref-trustarray-type-size-operator-equal-type-x>`
[TRUSTArray<_TYPE_, _SIZE_> & TRUSTArray<_TYPE_, _SIZE_>::operator=(_TYPE_ x)](#trustarray-public-trustarray-type-size-ref-trustarray-type-size-operator-equal-type-x)

operator =#

Definition
TRUSTArray & TRUSTArray<_TYPE_, _SIZE_>::operator=(const TRUSTArray &)
Brief description
Detailed description
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:`TRUSTArray & TRUSTArray<_TYPE_, _SIZE_>::operator=(const TRUSTArray &) <trustarray-public-trustarray-ref-trustarray-type-size-operator-equal-const-trustarray-ref>`
[TRUSTArray & TRUSTArray<_TYPE_, _SIZE_>::operator=(const TRUSTArray &)](#trustarray-public-trustarray-ref-trustarray-type-size-operator-equal-const-trustarray-ref)

operator[]#

Definition
_TYPE_ & TRUSTArray<_TYPE_, _SIZE_>::operator[](_SIZE_ i)
Brief description
Detailed description
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:`_TYPE_ & TRUSTArray<_TYPE_, _SIZE_>::operator[](_SIZE_ i) <trustarray-public-type-ref-trustarray-type-size-operator[]-size-i>`
[_TYPE_ & TRUSTArray<_TYPE_, _SIZE_>::operator[](_SIZE_ i)](#trustarray-public-type-ref-trustarray-type-size-operator[]-size-i)

operator[]#

Definition
const _TYPE_ & TRUSTArray<_TYPE_, _SIZE_>::operator[](_SIZE_ i) const
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:`const _TYPE_ & TRUSTArray<_TYPE_, _SIZE_>::operator[](_SIZE_ i) const <trustarray-public-const-type-ref-trustarray-type-size-operator[]-size-i-const>`
[const _TYPE_ & TRUSTArray<_TYPE_, _SIZE_>::operator[](_SIZE_ i) const](#trustarray-public-const-type-ref-trustarray-type-size-operator[]-size-i-const)

ordonne_array#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::ordonne_array()
Brief description
Detailed description
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 TRUSTArray<_TYPE_, _SIZE_>::ordonne_array() <trustarray-public-void-trustarray-type-size-ordonne-array>`
[void TRUSTArray<_TYPE_, _SIZE_>::ordonne_array()](#trustarray-public-void-trustarray-type-size-ordonne-array)

ref_array#

Definition
virtual void TRUSTArray<_TYPE_, _SIZE_>::ref_array(TRUSTArray &, _SIZE_ start=0, _SIZE_ sz=-1)
Brief description
Detailed description
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:`virtual void TRUSTArray<_TYPE_, _SIZE_>::ref_array(TRUSTArray &, _SIZE_ start=0, _SIZE_ sz=-1) <trustarray-public-virtual-void-trustarray-type-size-ref-array-trustarray-ref-size-start-equal-0-size-sz-equal-1>`
[virtual void TRUSTArray<_TYPE_, _SIZE_>::ref_array(TRUSTArray &, _SIZE_ start=0, _SIZE_ sz=-1)](#trustarray-public-virtual-void-trustarray-type-size-ref-array-trustarray-ref-size-start-equal-0-size-sz-equal-1)

ref_as_big#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::ref_as_big(TRUSTArray< _TYPE_, trustIdType > &out) const
Brief description
Detailed description
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 TRUSTArray<_TYPE_, _SIZE_>::ref_as_big(TRUSTArray< _TYPE_, trustIdType > &out) const <trustarray-public-void-trustarray-type-size-ref-as-big-trustarray-type-trustidtype-ref-out-const>`
[void TRUSTArray<_TYPE_, _SIZE_>::ref_as_big(TRUSTArray< _TYPE_, trustIdType > &out) const](#trustarray-public-void-trustarray-type-size-ref-as-big-trustarray-type-trustidtype-ref-out-const)

ref_as_small#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::ref_as_small(TRUSTArray< _TYPE_, int > &out) const
Brief description
Detailed description
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 TRUSTArray<_TYPE_, _SIZE_>::ref_as_small(TRUSTArray< _TYPE_, int > &out) const <trustarray-public-void-trustarray-type-size-ref-as-small-trustarray-type-int-ref-out-const>`
[void TRUSTArray<_TYPE_, _SIZE_>::ref_as_small(TRUSTArray< _TYPE_, int > &out) const](#trustarray-public-void-trustarray-type-size-ref-as-small-trustarray-type-int-ref-out-const)

ref_as_small#

Definition
void TRUSTArray<float, trustIdType>::ref_as_small(TRUSTArray< float, int > &out) const
Brief description
Detailed description

Conversion methods - from a big array ( = trustIdType), return a small one ( = int). Overflow is detected in debug if array is too big to be fit into = int. No data copied! This behaves somewhat like a ref_array. Used in LATA stuff and FT notably.

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 TRUSTArray<float, trustIdType>::ref_as_small(TRUSTArray< float, int > &out) const <trustarray-public-void-trustarray-float-trustidtype-ref-as-small-trustarray-float-int-ref-out-const>`
[void TRUSTArray<float, trustIdType>::ref_as_small(TRUSTArray< float, int > &out) const](#trustarray-public-void-trustarray-float-trustidtype-ref-as-small-trustarray-float-int-ref-out-const)

ref_as_small#

Definition
void TRUSTArray<int, trustIdType>::ref_as_small(TRUSTArray< int, int > &out) const
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:`void TRUSTArray<int, trustIdType>::ref_as_small(TRUSTArray< int, int > &out) const <trustarray-public-void-trustarray-int-trustidtype-ref-as-small-trustarray-int-int-ref-out-const>`
[void TRUSTArray<int, trustIdType>::ref_as_small(TRUSTArray< int, int > &out) const](#trustarray-public-void-trustarray-int-trustidtype-ref-as-small-trustarray-int-int-ref-out-const)

ref_count#

Definition
int TRUSTArray<_TYPE_, _SIZE_>::ref_count() const
Brief description
Detailed description

Returns the number of owners of the data, i.e. the number of Arrays pointing to the same underlying data

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:`int TRUSTArray<_TYPE_, _SIZE_>::ref_count() const <trustarray-public-int-trustarray-type-size-ref-count-const>`
[int TRUSTArray<_TYPE_, _SIZE_>::ref_count() const](#trustarray-public-int-trustarray-type-size-ref-count-const)

ref_data#

Definition
virtual void TRUSTArray<_TYPE_, _SIZE_>::ref_data(_TYPE_ *ptr, _SIZE_ size)
Brief description
Detailed description

Construction de tableaux qui pointent vers des donnees existantes !!! Utiliser ref_data avec precaution

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:`virtual void TRUSTArray<_TYPE_, _SIZE_>::ref_data(_TYPE_ *ptr, _SIZE_ size) <trustarray-public-virtual-void-trustarray-type-size-ref-data-type-ptr-ptr-size-size>`
[virtual void TRUSTArray<_TYPE_, _SIZE_>::ref_data(_TYPE_ *ptr, _SIZE_ size)](#trustarray-public-virtual-void-trustarray-type-size-ref-data-type-ptr-ptr-size-size)

reset#

Definition
virtual void TRUSTArray<_TYPE_, _SIZE_>::reset()
Brief description
Detailed description

Remet le tableau dans l’etat obtenu avec le constructeur par defaut (libere la memoire mais conserve le mode d’allocation memoire actuel)

References
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:`virtual void TRUSTArray<_TYPE_, _SIZE_>::reset() <trustarray-public-virtual-void-trustarray-type-size-reset>`
[virtual void TRUSTArray<_TYPE_, _SIZE_>::reset()](#trustarray-public-virtual-void-trustarray-type-size-reset)

resize#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::resize(_SIZE_ new_size, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)
Brief description
Detailed description
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 TRUSTArray<_TYPE_, _SIZE_>::resize(_SIZE_ new_size, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT) <trustarray-public-void-trustarray-type-size-resize-size-new-size-resize-options-opt-equal-resize-options-copy-init>`
[void TRUSTArray<_TYPE_, _SIZE_>::resize(_SIZE_ new_size, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)](#trustarray-public-void-trustarray-type-size-resize-size-new-size-resize-options-opt-equal-resize-options-copy-init)

resize_array#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::resize_array(_SIZE_ new_size, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)
Brief description
Detailed description
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 TRUSTArray<_TYPE_, _SIZE_>::resize_array(_SIZE_ new_size, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT) <trustarray-public-void-trustarray-type-size-resize-array-size-new-size-resize-options-opt-equal-resize-options-copy-init>`
[void TRUSTArray<_TYPE_, _SIZE_>::resize_array(_SIZE_ new_size, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)](#trustarray-public-void-trustarray-type-size-resize-array-size-new-size-resize-options-opt-equal-resize-options-copy-init)

resize_tab#

Definition
virtual void TRUSTArray<_TYPE_, _SIZE_>::resize_tab(_SIZE_ n, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)
Brief description
Detailed description
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:`virtual void TRUSTArray<_TYPE_, _SIZE_>::resize_tab(_SIZE_ n, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT) <trustarray-public-virtual-void-trustarray-type-size-resize-tab-size-n-resize-options-opt-equal-resize-options-copy-init>`
[virtual void TRUSTArray<_TYPE_, _SIZE_>::resize_tab(_SIZE_ n, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)](#trustarray-public-virtual-void-trustarray-type-size-resize-tab-size-n-resize-options-opt-equal-resize-options-copy-init)

set_data_location#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::set_data_location(DataLocation flag)
Brief description
Detailed description
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 TRUSTArray<_TYPE_, _SIZE_>::set_data_location(DataLocation flag) <trustarray-public-void-trustarray-type-size-set-data-location-datalocation-flag>`
[void TRUSTArray<_TYPE_, _SIZE_>::set_data_location(DataLocation flag)](#trustarray-public-void-trustarray-type-size-set-data-location-datalocation-flag)

set_data_location#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::set_data_location(DataLocation flag) const
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:`void TRUSTArray<_TYPE_, _SIZE_>::set_data_location(DataLocation flag) const <trustarray-public-void-trustarray-type-size-set-data-location-datalocation-flag-const>`
[void TRUSTArray<_TYPE_, _SIZE_>::set_data_location(DataLocation flag) const](#trustarray-public-void-trustarray-type-size-set-data-location-datalocation-flag-const)

set_mem_storage#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::set_mem_storage(const STORAGE storage)
Brief description
Detailed description

Memory allocation type-TEMP arrays (i.e. Trav) have a different allocation mechanism - see TRUSTTravPool.h)

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 TRUSTArray<_TYPE_, _SIZE_>::set_mem_storage(const STORAGE storage) <trustarray-public-void-trustarray-type-size-set-mem-storage-const-storage-storage>`
[void TRUSTArray<_TYPE_, _SIZE_>::set_mem_storage(const STORAGE storage)](#trustarray-public-void-trustarray-type-size-set-mem-storage-const-storage-storage)

size_array#

Definition
_SIZE_ TRUSTArray<_TYPE_, _SIZE_>::size_array() const
Brief description
Detailed description

Return the size of the span on the data (not the full underlying allocated size)

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:`_SIZE_ TRUSTArray<_TYPE_, _SIZE_>::size_array() const <trustarray-public-size-trustarray-type-size-size-array-const>`
[_SIZE_ TRUSTArray<_TYPE_, _SIZE_>::size_array() const](#trustarray-public-size-trustarray-type-size-size-array-const)

size_mem#

Definition
int TRUSTArray<_TYPE_, _SIZE_>::size_mem()
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:`int TRUSTArray<_TYPE_, _SIZE_>::size_mem() <trustarray-public-int-trustarray-type-size-size-mem>`
[int TRUSTArray<_TYPE_, _SIZE_>::size_mem()](#trustarray-public-int-trustarray-type-size-size-mem)

TRUSTArray#

Definition
TRUSTArray<_TYPE_, _SIZE_>::TRUSTArray()
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:`TRUSTArray<_TYPE_, _SIZE_>::TRUSTArray() <trustarray-public-trustarray-type-size-trustarray>`
[TRUSTArray<_TYPE_, _SIZE_>::TRUSTArray()](#trustarray-public-trustarray-type-size-trustarray)

TRUSTArray#

Definition
TRUSTArray<_TYPE_, _SIZE_>::TRUSTArray(_SIZE_ n)
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:`TRUSTArray<_TYPE_, _SIZE_>::TRUSTArray(_SIZE_ n) <trustarray-public-trustarray-type-size-trustarray-size-n>`
[TRUSTArray<_TYPE_, _SIZE_>::TRUSTArray(_SIZE_ n)](#trustarray-public-trustarray-type-size-trustarray-size-n)

TRUSTArray#

Definition
TRUSTArray<_TYPE_, _SIZE_>::TRUSTArray(const TRUSTArray &A)
Brief description
Detailed description

Copy ctor. Performs a deep copy. It is forbidden to deep copy a ref_data.

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:`TRUSTArray<_TYPE_, _SIZE_>::TRUSTArray(const TRUSTArray &A) <trustarray-public-trustarray-type-size-trustarray-const-trustarray-ref-a>`
[TRUSTArray<_TYPE_, _SIZE_>::TRUSTArray(const TRUSTArray &A)](#trustarray-public-trustarray-type-size-trustarray-const-trustarray-ref-a)

view_ro#

Definition
std::enable_if_t<is_default_exec_space<EXEC_SPACE>, ConstView<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_ro() const
Brief description
Detailed description
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:`std::enable_if_t<is_default_exec_space<EXEC_SPACE>, ConstView<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_ro() const <trustarray-public-std-enable-if-t-is-default-exec-space-exec-space-constview-type-shape-trustarray-type-size-view-ro-const>`
[std::enable_if_t<is_default_exec_space<EXEC_SPACE>, ConstView<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_ro() const](#trustarray-public-std-enable-if-t-is-default-exec-space-exec-space-constview-type-shape-trustarray-type-size-view-ro-const)

view_ro#

Definition
std::enable_if_t<gpu_enabled_is_host_exec_space<EXEC_SPACE>, ConstHostView<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_ro() const
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:`std::enable_if_t<gpu_enabled_is_host_exec_space<EXEC_SPACE>, ConstHostView<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_ro() const <trustarray-public-std-enable-if-t-gpu-enabled-is-host-exec-space-exec-space-consthostview-type-shape-trustarray-type-size-view-ro-const>`
[std::enable_if_t<gpu_enabled_is_host_exec_space<EXEC_SPACE>, ConstHostView<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_ro() const](#trustarray-public-std-enable-if-t-gpu-enabled-is-host-exec-space-exec-space-consthostview-type-shape-trustarray-type-size-view-ro-const)

view_rw#

Definition
std::enable_if_t<is_default_exec_space<EXEC_SPACE>, View<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_rw()
Brief description
Detailed description
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:`std::enable_if_t<is_default_exec_space<EXEC_SPACE>, View<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_rw() <trustarray-public-std-enable-if-t-is-default-exec-space-exec-space-view-type-shape-trustarray-type-size-view-rw>`
[std::enable_if_t<is_default_exec_space<EXEC_SPACE>, View<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_rw()](#trustarray-public-std-enable-if-t-is-default-exec-space-exec-space-view-type-shape-trustarray-type-size-view-rw)

view_rw#

Definition
std::enable_if_t<gpu_enabled_is_host_exec_space<EXEC_SPACE>, HostView<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_rw()
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:`std::enable_if_t<gpu_enabled_is_host_exec_space<EXEC_SPACE>, HostView<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_rw() <trustarray-public-std-enable-if-t-gpu-enabled-is-host-exec-space-exec-space-hostview-type-shape-trustarray-type-size-view-rw>`
[std::enable_if_t<gpu_enabled_is_host_exec_space<EXEC_SPACE>, HostView<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_rw()](#trustarray-public-std-enable-if-t-gpu-enabled-is-host-exec-space-exec-space-hostview-type-shape-trustarray-type-size-view-rw)

view_wo#

Definition
std::enable_if_t<is_default_exec_space<EXEC_SPACE>, View<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_wo()
Brief description
Detailed description
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:`std::enable_if_t<is_default_exec_space<EXEC_SPACE>, View<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_wo() <trustarray-public-std-enable-if-t-is-default-exec-space-exec-space-view-type-shape-trustarray-type-size-view-wo>`
[std::enable_if_t<is_default_exec_space<EXEC_SPACE>, View<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_wo()](#trustarray-public-std-enable-if-t-is-default-exec-space-exec-space-view-type-shape-trustarray-type-size-view-wo)

view_wo#

Definition
std::enable_if_t<gpu_enabled_is_host_exec_space<EXEC_SPACE>, HostView<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_wo()
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:`std::enable_if_t<gpu_enabled_is_host_exec_space<EXEC_SPACE>, HostView<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_wo() <trustarray-public-std-enable-if-t-gpu-enabled-is-host-exec-space-exec-space-hostview-type-shape-trustarray-type-size-view-wo>`
[std::enable_if_t<gpu_enabled_is_host_exec_space<EXEC_SPACE>, HostView<_TYPE_, _SHAPE_>> TRUSTArray<_TYPE_, _SIZE_>::view_wo()](#trustarray-public-std-enable-if-t-gpu-enabled-is-host-exec-space-exec-space-hostview-type-shape-trustarray-type-size-view-wo)

~TRUSTArray#

Definition
virtual TRUSTArray<_TYPE_, _SIZE_>::~TRUSTArray()
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:`virtual TRUSTArray<_TYPE_, _SIZE_>::~TRUSTArray() <trustarray-public-virtual-trustarray-type-size-dtor-trustarray>`
[virtual TRUSTArray<_TYPE_, _SIZE_>::~TRUSTArray()](#trustarray-public-virtual-trustarray-type-size-dtor-trustarray)

get_device_view#

Definition
std::enable_if<_SHAPE_==1, DeviceView<_TYPE_, 1>>::type & TRUSTArray<_TYPE_, _SIZE_>::get_device_view() const
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:`std::enable_if<_SHAPE_==1, DeviceView<_TYPE_, 1>>::type & TRUSTArray<_TYPE_, _SIZE_>::get_device_view() const <trustarray-private-std-enable-if-shape-equal-equal-1-deviceview-type-1-type-ref-trustarray-type-size-get-device-view-const>`
[std::enable_if<_SHAPE_==1, DeviceView<_TYPE_, 1>>::type & TRUSTArray<_TYPE_, _SIZE_>::get_device_view() const](#trustarray-private-std-enable-if-shape-equal-equal-1-deviceview-type-1-type-ref-trustarray-type-size-get-device-view-const)

get_device_view#

Definition
std::enable_if<_SHAPE_==2, DeviceView<_TYPE_, 2>>::type & TRUSTArray<_TYPE_, _SIZE_>::get_device_view() const
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:`std::enable_if<_SHAPE_==2, DeviceView<_TYPE_, 2>>::type & TRUSTArray<_TYPE_, _SIZE_>::get_device_view() const <trustarray-private-std-enable-if-shape-equal-equal-2-deviceview-type-2-type-ref-trustarray-type-size-get-device-view-const>`
[std::enable_if<_SHAPE_==2, DeviceView<_TYPE_, 2>>::type & TRUSTArray<_TYPE_, _SIZE_>::get_device_view() const](#trustarray-private-std-enable-if-shape-equal-equal-2-deviceview-type-2-type-ref-trustarray-type-size-get-device-view-const)

get_device_view#

Definition
std::enable_if<_SHAPE_==3, DeviceView<_TYPE_, 3>>::type & TRUSTArray<_TYPE_, _SIZE_>::get_device_view() const
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:`std::enable_if<_SHAPE_==3, DeviceView<_TYPE_, 3>>::type & TRUSTArray<_TYPE_, _SIZE_>::get_device_view() const <trustarray-private-std-enable-if-shape-equal-equal-3-deviceview-type-3-type-ref-trustarray-type-size-get-device-view-const>`
[std::enable_if<_SHAPE_==3, DeviceView<_TYPE_, 3>>::type & TRUSTArray<_TYPE_, _SIZE_>::get_device_view() const](#trustarray-private-std-enable-if-shape-equal-equal-3-deviceview-type-3-type-ref-trustarray-type-size-get-device-view-const)

get_device_view#

Definition
std::enable_if<_SHAPE_==4, DeviceView<_TYPE_, 4>>::type & TRUSTArray<_TYPE_, _SIZE_>::get_device_view() const
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:`std::enable_if<_SHAPE_==4, DeviceView<_TYPE_, 4>>::type & TRUSTArray<_TYPE_, _SIZE_>::get_device_view() const <trustarray-private-std-enable-if-shape-equal-equal-4-deviceview-type-4-type-ref-trustarray-type-size-get-device-view-const>`
[std::enable_if<_SHAPE_==4, DeviceView<_TYPE_, 4>>::type & TRUSTArray<_TYPE_, _SIZE_>::get_device_view() const](#trustarray-private-std-enable-if-shape-equal-equal-4-deviceview-type-4-type-ref-trustarray-type-size-get-device-view-const)

ref_conv_helper_#

Definition
void TRUSTArray<_TYPE_, _SIZE_>::ref_conv_helper_(_TAB_ &out) const
Brief description
Detailed description

Debug

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 TRUSTArray<_TYPE_, _SIZE_>::ref_conv_helper_(_TAB_ &out) const <trustarray-private-void-trustarray-type-size-ref-conv-helper-underscore-tab-ref-out-const>`
[void TRUSTArray<_TYPE_, _SIZE_>::ref_conv_helper_(_TAB_ &out) const](#trustarray-private-void-trustarray-type-size-ref-conv-helper-underscore-tab-ref-out-const)

Attributes Documentation#

device_view_1_ (protected)
DeviceView<_TYPE_, 1> TRUSTArray<_TYPE_, _SIZE_>::device_view_1_
device_view_2_ (protected)
DeviceView<_TYPE_, 2> TRUSTArray<_TYPE_, _SIZE_>::device_view_2_
device_view_3_ (protected)
DeviceView<_TYPE_, 3> TRUSTArray<_TYPE_, _SIZE_>::device_view_3_
device_view_4_ (protected)
DeviceView<_TYPE_, 4> TRUSTArray<_TYPE_, _SIZE_>::device_view_4_
nb_dim_ (protected)
int TRUSTArray<_TYPE_, _SIZE_>::nb_dim_ = 1
data_location_ (private)
std::shared_ptr<DataLocation> TRUSTArray<_TYPE_, _SIZE_>::data_location_
mem_ (private)
std::shared_ptr<Vector_> TRUSTArray<_TYPE_, _SIZE_>::mem_

Shared pointer to the actual underlying memory block:

span_ (private)
Span_ TRUSTArray<_TYPE_, _SIZE_>::span_

Actual view on the data. See comments at the top of the class

storage_type_ (private)
STORAGE TRUSTArray<_TYPE_, _SIZE_>::storage_type_

Drapeau indiquant si l’allocation memoire a lieu avec un new classique ou dans le pool de memoire temporaire de TRUST

Friends#

  • friend class TRUSTArray

  • friend class TRUSTArrayKokkos