Static_Int_Lists_32_64#

#include <Static_Int_Lists.h>
Brief description

Cette classe permet de stocker des listes d’entiers accessibles en temps constant.

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:`Static\_Int\_Lists\_32\_64 <class-template-static-int-lists-32-64>`
[Static\_Int\_Lists\_32\_64](#class-template-static-int-lists-32-64)

Detailed description#

La taille des listes ne peut pas changer sans perdre le contenu (ce sont des listes statiques). Exemple: Static_Int_List l; ArrOfInt tailles(3); tailles[0] = 2; tailles[1] = 3; tailles[2] = 0; // On reserve la memoire pour trois listes de taille 2, 3 et 0: l.set_list_sizes(tailles); // On affecte une valeur au deuxieme element de la premiere liste: l.set_value(0,1,765); // Affiche la valeur Cout <<l(0,1);

Inheritance graph#

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

../../../../../_images/classStatic__Int__Lists__32__64__inherit__graph.png

List of Public Methods#

Complete Member Function Documentation#

copy_list_to_array#

Definition
void Static_Int_Lists_32_64<_SIZE_>::copy_list_to_array(int_t i_liste, ArrOfInt_t &array) const
Brief description

copie la i - ieme liste dans le tableau fourni Le tableau array doit etre resizable.

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 Static_Int_Lists_32_64<_SIZE_>::copy_list_to_array(int_t i_liste, ArrOfInt_t &array) const <static-int-lists-32-64-public-void-static-int-lists-32-64-size-copy-list-to-array-int-t-i-liste-arrofint-t-ref-array-const>`
[void Static_Int_Lists_32_64<_SIZE_>::copy_list_to_array(int_t i_liste, ArrOfInt_t &array) const](#static-int-lists-32-64-public-void-static-int-lists-32-64-size-copy-list-to-array-int-t-i-liste-arrofint-t-ref-array-const)

ecrire#

Definition
Sortie & Static_Int_Lists_32_64<_SIZE_>::ecrire(Sortie &os) 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:`Sortie & Static_Int_Lists_32_64<_SIZE_>::ecrire(Sortie &os) const <static-int-lists-32-64-public-sortie-ref-static-int-lists-32-64-size-ecrire-sortie-ref-os-const>`
[Sortie & Static_Int_Lists_32_64<_SIZE_>::ecrire(Sortie &os) const](#static-int-lists-32-64-public-sortie-ref-static-int-lists-32-64-size-ecrire-sortie-ref-os-const)

get_data#

Definition
const ArrOfInt_t & Static_Int_Lists_32_64<_SIZE_>::get_data() 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:`const ArrOfInt_t & Static_Int_Lists_32_64<_SIZE_>::get_data() const <static-int-lists-32-64-public-const-arrofint-t-ref-static-int-lists-32-64-size-get-data-const>`
[const ArrOfInt_t & Static_Int_Lists_32_64<_SIZE_>::get_data() const](#static-int-lists-32-64-public-const-arrofint-t-ref-static-int-lists-32-64-size-get-data-const)

get_index#

Definition
const ArrOfInt_t & Static_Int_Lists_32_64<_SIZE_>::get_index() 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:`const ArrOfInt_t & Static_Int_Lists_32_64<_SIZE_>::get_index() const <static-int-lists-32-64-public-const-arrofint-t-ref-static-int-lists-32-64-size-get-index-const>`
[const ArrOfInt_t & Static_Int_Lists_32_64<_SIZE_>::get_index() const](#static-int-lists-32-64-public-const-arrofint-t-ref-static-int-lists-32-64-size-get-index-const)

get_list_size#

Definition
Static_Int_Lists_32_64<_SIZE_>::int_t Static_Int_Lists_32_64<_SIZE_>::get_list_size(int_t i_liste) const
Brief description

renvoie le nombre d’elements de la liste i

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:`Static_Int_Lists_32_64<_SIZE_>::int_t Static_Int_Lists_32_64<_SIZE_>::get_list_size(int_t i_liste) const <static-int-lists-32-64-public-static-int-lists-32-64-size-int-t-static-int-lists-32-64-size-get-list-size-int-t-i-liste-const>`
[Static_Int_Lists_32_64<_SIZE_>::int_t Static_Int_Lists_32_64<_SIZE_>::get_list_size(int_t i_liste) const](#static-int-lists-32-64-public-static-int-lists-32-64-size-int-t-static-int-lists-32-64-size-get-list-size-int-t-i-liste-const)

get_nb_lists#

Definition
Static_Int_Lists_32_64<_SIZE_>::int_t Static_Int_Lists_32_64<_SIZE_>::get_nb_lists() const
Brief description

renvoie le nombre de listes stockees

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:`Static_Int_Lists_32_64<_SIZE_>::int_t Static_Int_Lists_32_64<_SIZE_>::get_nb_lists() const <static-int-lists-32-64-public-static-int-lists-32-64-size-int-t-static-int-lists-32-64-size-get-nb-lists-const>`
[Static_Int_Lists_32_64<_SIZE_>::int_t Static_Int_Lists_32_64<_SIZE_>::get_nb_lists() const](#static-int-lists-32-64-public-static-int-lists-32-64-size-int-t-static-int-lists-32-64-size-get-nb-lists-const)

operator()#

Definition
Static_Int_Lists_32_64<_SIZE_>::int_t Static_Int_Lists_32_64<_SIZE_>::operator()(int_t i_liste, int_t i_element) const
Brief description

renvoie le j - ieme element de la i - ieme liste avec 0 < = i < get_nb_lists() et 0 < = j <get_list_size(i)

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_Int_Lists_32_64<_SIZE_>::int_t Static_Int_Lists_32_64<_SIZE_>::operator()(int_t i_liste, int_t i_element) const <static-int-lists-32-64-public-static-int-lists-32-64-size-int-t-static-int-lists-32-64-size-operator-int-t-i-liste-int-t-i-element-const>`
[Static_Int_Lists_32_64<_SIZE_>::int_t Static_Int_Lists_32_64<_SIZE_>::operator()(int_t i_liste, int_t i_element) const](#static-int-lists-32-64-public-static-int-lists-32-64-size-int-t-static-int-lists-32-64-size-operator-int-t-i-liste-int-t-i-element-const)

printOn#

Definition
Sortie & Static_Int_Lists_32_64<_SIZE_>::printOn(Sortie &os) 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:`Sortie & Static_Int_Lists_32_64<_SIZE_>::printOn(Sortie &os) const <static-int-lists-32-64-public-sortie-ref-static-int-lists-32-64-size-printon-sortie-ref-os-const>`
[Sortie & Static_Int_Lists_32_64<_SIZE_>::printOn(Sortie &os) const](#static-int-lists-32-64-public-sortie-ref-static-int-lists-32-64-size-printon-sortie-ref-os-const)

readOn#

Definition
Entree & Static_Int_Lists_32_64<_SIZE_>::readOn(Entree &is)
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:`Entree & Static_Int_Lists_32_64<_SIZE_>::readOn(Entree &is) <static-int-lists-32-64-public-entree-ref-static-int-lists-32-64-size-readon-entree-ref-is>`
[Entree & Static_Int_Lists_32_64<_SIZE_>::readOn(Entree &is)](#static-int-lists-32-64-public-entree-ref-static-int-lists-32-64-size-readon-entree-ref-is)

reset#

Definition
void Static_Int_Lists_32_64<_SIZE_>::reset()
Brief description

detruit toutes les listes

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 Static_Int_Lists_32_64<_SIZE_>::reset() <static-int-lists-32-64-public-void-static-int-lists-32-64-size-reset>`
[void Static_Int_Lists_32_64<_SIZE_>::reset()](#static-int-lists-32-64-public-void-static-int-lists-32-64-size-reset)

set#

Definition
void Static_Int_Lists_32_64<_SIZE_>::set(const ArrsOfInt_t &src)
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 Static_Int_Lists_32_64<_SIZE_>::set(const ArrsOfInt_t &src) <static-int-lists-32-64-public-void-static-int-lists-32-64-size-set-const-arrsofint-t-ref-src>`
[void Static_Int_Lists_32_64<_SIZE_>::set(const ArrsOfInt_t &src)](#static-int-lists-32-64-public-void-static-int-lists-32-64-size-set-const-arrsofint-t-ref-src)

set_data#

Definition
void Static_Int_Lists_32_64<_SIZE_>::set_data(const ArrOfInt_t &data)
Brief description

remplace les valeurs stockes par toutes les listes par celles du tableau data.

Detailed description

data doit avoir pour taille la somme des tailles de toutes les listes.

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 Static_Int_Lists_32_64<_SIZE_>::set_data(const ArrOfInt_t &data) <static-int-lists-32-64-public-void-static-int-lists-32-64-size-set-data-const-arrofint-t-ref-data>`
[void Static_Int_Lists_32_64<_SIZE_>::set_data(const ArrOfInt_t &data)](#static-int-lists-32-64-public-void-static-int-lists-32-64-size-set-data-const-arrofint-t-ref-data)

set_index_data#

Definition
void Static_Int_Lists_32_64<_SIZE_>::set_index_data(const ArrOfInt_t &index, const ArrOfInt_t &data)
Brief description

remplace index et data.

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 Static_Int_Lists_32_64<_SIZE_>::set_index_data(const ArrOfInt_t &index, const ArrOfInt_t &data) <static-int-lists-32-64-public-void-static-int-lists-32-64-size-set-index-data-const-arrofint-t-ref-index-const-arrofint-t-ref-data>`
[void Static_Int_Lists_32_64<_SIZE_>::set_index_data(const ArrOfInt_t &index, const ArrOfInt_t &data)](#static-int-lists-32-64-public-void-static-int-lists-32-64-size-set-index-data-const-arrofint-t-ref-index-const-arrofint-t-ref-data)

set_list_sizes#

Definition
void Static_Int_Lists_32_64<_SIZE_>::set_list_sizes(const ArrOfInt_t &sizes)
Brief description

detruit les listes existantes et en cree de nouvelles.

Detailed description

On cree autant de listes que d’elements dans le tableau sizes. La i - ieme liste a une taille sizes[i] Les valeurs sizes doivent etre positives ou nulles.

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 Static_Int_Lists_32_64<_SIZE_>::set_list_sizes(const ArrOfInt_t &sizes) <static-int-lists-32-64-public-void-static-int-lists-32-64-size-set-list-sizes-const-arrofint-t-ref-sizes>`
[void Static_Int_Lists_32_64<_SIZE_>::set_list_sizes(const ArrOfInt_t &sizes)](#static-int-lists-32-64-public-void-static-int-lists-32-64-size-set-list-sizes-const-arrofint-t-ref-sizes)

set_value#

Definition
void Static_Int_Lists_32_64<_SIZE_>::set_value(int_t i_liste, int_t i_element, int_t valeur)
Brief description

affecte la “valeur” au j - ieme element de la i - ieme liste avec 0 < = i < get_nb_lists() et 0 < = j <get_list_size(i)

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 Static_Int_Lists_32_64<_SIZE_>::set_value(int_t i_liste, int_t i_element, int_t valeur) <static-int-lists-32-64-public-void-static-int-lists-32-64-size-set-value-int-t-i-liste-int-t-i-element-int-t-valeur>`
[void Static_Int_Lists_32_64<_SIZE_>::set_value(int_t i_liste, int_t i_element, int_t valeur)](#static-int-lists-32-64-public-void-static-int-lists-32-64-size-set-value-int-t-i-liste-int-t-i-element-int-t-valeur)

trier_liste#

Definition
void Static_Int_Lists_32_64<_SIZE_>::trier_liste(int_t i)
Brief description

tri par ordre croissant des valeurs de la i - ieme liste.

Detailed description

Si num_liste <0, on trie toutes les listes.

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 Static_Int_Lists_32_64<_SIZE_>::trier_liste(int_t i) <static-int-lists-32-64-public-void-static-int-lists-32-64-size-trier-liste-int-t-i>`
[void Static_Int_Lists_32_64<_SIZE_>::trier_liste(int_t i)](#static-int-lists-32-64-public-void-static-int-lists-32-64-size-trier-liste-int-t-i)

Attributes Documentation#

index_ (private)
ArrOfInt_t Static_Int_Lists_32_64<_SIZE_>::index_
valeurs_ (private)
ArrOfInt_t Static_Int_Lists_32_64<_SIZE_>::valeurs_