Classe représentant un tableau 2D classique. Plus de détails...
#include <arccore/collections/Array2.h>
Fonctions membres publiques | |
| ArrayView< DataType > | operator[] (Int64 i) |
| ConstArrayView< DataType > | operator[] (Int64 i) const |
| ArrayView< DataType > | operator() (Int64 i) |
| ConstArrayView< DataType > | operator() (Int64 i) const |
| DataType & | operator() (Int64 i, Int64 j) |
| ConstReferenceType | operator() (Int64 i, Int64 j) const |
| DataType | item (Int64 i, Int64 j) |
| void | setItem (Int64 i, Int64 j, ConstReferenceType v) |
| ConstArrayView< DataType > | at (Int64 i) const |
| Elément d'indice i. Vérifie toujours les débordements. | |
| ArrayView< DataType > | at (Int64 i) |
| Elément d'indice i. Vérifie toujours les débordements. | |
| DataType | at (Int64 i, Int64 j) |
| void | fill (ConstReferenceType v) |
| void | clear () |
| Array2< DataType > | clone () |
| void | copy (Span2< const DataType > rhs) |
| Redimensionne l'instance à partir des dimensions de rhs et copie dedans les valeurs de rhs. | |
| Integer | capacity () const |
| Capacité (nombre d'éléments alloués) du tableau. | |
| Int64 | largeCapacity () const |
| Capacité (nombre d'éléments alloués) du tableau. | |
| void | reserve (Int64 new_capacity) |
| Réserve de la mémoire pour new_capacity éléments. | |
| void | shrink () |
| void | shrink (Int64 new_capacity) |
| Réalloue la mémoire avoir une capacité proche de new_capacity. | |
| void | shrink_to_fit () |
| ArrayView< DataType > | viewAsArray () |
| Vue du tableau sous forme de tableau 1D. | |
| ConstArrayView< DataType > | viewAsArray () const |
| Vue du tableau sous forme de tableau 1D. | |
| Span< DataType > | to1DSpan () |
| Vue du tableau sous forme de tableau 1D. | |
| Span< const DataType > | to1DSpan () const |
| Vue du tableau sous forme de tableau 1D. | |
| operator Array2View< DataType > () | |
| operator ConstArray2View< DataType > () const | |
| operator Span2< const DataType > () const | |
| operator Span2< DataType > () | |
| Array2View< DataType > | view () |
| ConstArray2View< DataType > | constView () const |
| Span2< DataType > | span () |
| Span2< const DataType > | constSpan () const |
| Integer | dim2Size () const |
| Integer | dim1Size () const |
| Int64 | largeDim2Size () const |
| Int64 | largeDim1Size () const |
| void | add (const DataType &value) |
| void | resize (Int64 new_size) |
| Redimensionne uniquement la première dimension en laissant la deuxième à l'identique. | |
| void | resizeNoInit (Int64 new_size) |
| Redimensionne uniquement la première dimension en laissant la deuxième à l'identique. | |
| void | resize (Int64 new_size1, Int64 new_size2) |
| Réalloue les deux dimensions. | |
| void | resizeNoInit (Int64 new_size1, Int64 new_size2) |
| Réalloue les deux dimensions. | |
| Integer | totalNbElement () const |
| Nombre total d'éléments (dim1Size()*dim2Size()) | |
| Int64 | largeTotalNbElement () const |
| Nombre total d'éléments (largeDim1Size()*largeDim2Size()) | |
| void | setDebugName (const String &name) |
| Positionne le nom du tableau pour les informations de debug. | |
| String | debugName () const |
| Nom de debug (nul si aucun nom spécifié) | |
| MemoryAllocationOptions | allocationOptions () const |
Types protégés | |
| enum | CloneBehaviour { CB_Clone , CB_Shared } |
| enum | InitBehaviour { IB_InitWithDefault , IB_NoInit } |
Fonctions membres protégées | |
| Array2 (Int64 size1, Int64 size2) | |
| Créé un tableau de size1 * size2 éléments. | |
| Array2 (ConstArray2View< DataType > rhs) | |
| Array2 (const Span2< const DataType > &rhs) | |
| Array2 (IMemoryAllocator *allocator) | |
| Créé un tableau vide avec un allocateur spécifique allocator. | |
| Array2 (IMemoryAllocator *allocator, Int64 size1, Int64 size2) | |
| Créé un tableau de size1 * size2 éléments avec un allocateur spécifique allocator. | |
| Array2 (Array2< DataType > &&rhs) | |
| Constructeur par déplacement. Uniquement valide pour UniqueArray2. | |
| void | _resize (Int64 new_size, InitBehaviour rb) |
| Redimensionne uniquement la première dimension en laissant la deuxième à l'identique. | |
| void | _resize (Int64 new_size1, Int64 new_size2, InitBehaviour rb) |
| Réalloue les deux dimensions. | |
| void | _resizeFromEmpty (Int64 new_size1, Int64 new_size2, InitBehaviour rb) |
| void | _resizeSameDim1ReduceDim2 (Int64 new_size2, InitBehaviour rb) |
| void | _resizeSameDim1IncreaseDim2 (Int64 new_size2, InitBehaviour rb) |
| void | _resize2 (Int64 d1, Int64 d2, InitBehaviour rb) |
| void | _move (Array2< DataType > &rhs) |
| void | _swap (Array2< DataType > &rhs) |
| void | _assignFromArray2 (const Array2< DataType > &rhs) |
| void | _resizeAndCopyView (Span2< const DataType > rhs) |
| void | _copyMetaData (const Array2< DataType > &rhs) |
| void | _setMP2 (TrueImpl *new_mp, ArrayMetaData *new_md) |
| void | _setMP (TrueImpl *new_mp) |
| void | _destroy () |
| void | _internalDeallocate (RunQueue *queue=nullptr) |
| void | _initFromAllocator (MemoryAllocationOptions o, Int64 acapacity, void *pre_allocated_buffer=nullptr) |
| Construit un vecteur vide avec un allocateur spécifique a. | |
Attributs protégés | |
| DataType * | m_ptr |
Classe représentant un tableau 2D classique.
Les instances de cette classe ne sont ni copiables ni affectable. Pour créer un tableau copiable, il faut utiliser SharedArray2 (pour une sémantique par référence) ou UniqueArray2 (pour une sémantique par valeur comme la STL).
Définition à la ligne 41 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
protected |
Définition à la ligne 46 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
protected |
Définition à la ligne 51 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineprotected |
Définition à la ligne 85 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineprotected |
Créé un tableau de size1 * size2 éléments.
Définition à la ligne 87 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineprotected |
Définition à la ligne 92 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineprotected |
Définition à la ligne 96 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineexplicitprotected |
Créé un tableau vide avec un allocateur spécifique allocator.
Définition à la ligne 104 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineprotected |
Créé un tableau de size1 * size2 éléments avec un allocateur spécifique allocator.
Définition à la ligne 113 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineprotected |
Constructeur par déplacement. Uniquement valide pour UniqueArray2.
Définition à la ligne 131 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineprotected |
Définition à la ligne 471 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineprotected |
Définition à la ligne 513 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineprotected |
Définition à la ligne 617 du fichier AbstractArray.h.
|
inlineprotected |
Construit un vecteur vide avec un allocateur spécifique a.
Si acapacity n'est pas nul, la mémoire est allouée pour contenir acapacity éléments (mais le tableau reste vide).
Cette méthode ne doit être appelée que dans un constructeur de la classe dérivée et uniquement par les classes utilisant une sémantique à la UniqueArray.
Définition à la ligne 261 du fichier AbstractArray.h.
Référencé par Arcane::Array2< T >::Array2(), et Arcane::Array2< T >::Array2().
|
inlineprotected |
Définition à la ligne 487 du fichier AbstractArray.h.
|
inlineprotected |
Définition à la ligne 460 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineprotected |
Redimensionne uniquement la première dimension en laissant la deuxième à l'identique.
Définition à la ligne 367 du fichier arccore/src/collections/arccore/collections/Array2.h.
Référencé par Arcane::Array2< T >::_resize(), Arcane::Array2< T >::resize(), Arcane::Array2< T >::resize(), Arcane::Array2< T >::resizeNoInit(), et Arcane::Array2< T >::resizeNoInit().
|
inlineprotected |
Réalloue les deux dimensions.
Définition à la ligne 378 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineprotected |
Définition à la ligne 444 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineprotected |
Définition à la ligne 485 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineprotected |
Définition à la ligne 398 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineprotected |
Définition à la ligne 420 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineprotected |
Définition à la ligne 406 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inlineprotected |
Définition à la ligne 862 du fichier AbstractArray.h.
|
inlineprotected |
Définition à la ligne 867 du fichier AbstractArray.h.
|
inlineprotected |
Définition à la ligne 465 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 309 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 62 du fichier AbstractArray.h.
|
inline |
Elément d'indice i. Vérifie toujours les débordements.
Définition à la ligne 198 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Elément d'indice i. Vérifie toujours les débordements.
Définition à la ligne 192 du fichier arccore/src/collections/arccore/collections/Array2.h.
Référencé par Arcane::Array2VariableT< T >::compact().
|
inline |
Définition à la ligne 203 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Capacité (nombre d'éléments alloués) du tableau.
Définition à la ligne 231 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 213 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 218 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 299 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 291 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Redimensionne l'instance à partir des dimensions de rhs et copie dedans les valeurs de rhs.
Définition à la ligne 226 du fichier arccore/src/collections/arccore/collections/Array2.h.
Référencé par Arcane::Array2VariableT< T >::_compareVariable().
| String Arcane::AbstractArrayBase::debugName | ( | ) | const |
Nom de debug (nul si aucun nom spécifié)
Définition à la ligne 73 du fichier arccore/src/common/arccore/common/Array.cc.
|
inline |
Définition à la ligne 306 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 305 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 209 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 181 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Capacité (nombre d'éléments alloués) du tableau.
Définition à la ligne 234 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 308 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 307 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Nombre total d'éléments (largeDim1Size()*largeDim2Size())
Définition à la ligne 362 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 271 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 275 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 279 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 283 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 148 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 154 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 159 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 164 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 136 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 142 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Réserve de la mémoire pour new_capacity éléments.
Définition à la ligne 237 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Redimensionne uniquement la première dimension en laissant la deuxième à l'identique.
Les éventuelles nouvelles valeurs sont initialisées avec le constructeur par défaut.
Définition à la ligne 322 du fichier arccore/src/collections/arccore/collections/Array2.h.
Référencé par Arcane::Array2< T >::Array2(), Arcane::Array2< T >::Array2(), et Arcane::Array2VariableT< T >::compact().
|
inline |
Réalloue les deux dimensions.
Les éventuelles nouvelles valeurs sont initialisées avec le constructeur par défaut.
Définition à la ligne 343 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Redimensionne uniquement la première dimension en laissant la deuxième à l'identique.
Les éventuelles nouvelles valeurs NE sont PAS initialisées.
Définition à la ligne 333 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Réalloue les deux dimensions.
Les éventuelles nouvelles valeurs NE sont PAS initialisées.
Définition à la ligne 353 du fichier arccore/src/collections/arccore/collections/Array2.h.
| void Arcane::AbstractArrayBase::setDebugName | ( | const String & | name | ) |
Positionne le nom du tableau pour les informations de debug.
Ce nom peut être utilisé par exemple pour les affichages listing.
Définition à la ligne 71 du fichier arccore/src/common/arccore/common/Array.cc.
|
inline |
Définition à la ligne 186 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 240 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Réalloue la mémoire avoir une capacité proche de new_capacity.
Définition à la ligne 243 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 246 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Définition à la ligne 295 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Vue du tableau sous forme de tableau 1D.
Définition à la ligne 259 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Vue du tableau sous forme de tableau 1D.
Définition à la ligne 264 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Nombre total d'éléments (dim1Size()*dim2Size())
Définition à la ligne 359 du fichier arccore/src/collections/arccore/collections/Array2.h.
Référencé par Arcane::Array2< T >::_resize().
|
inline |
Définition à la ligne 287 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Vue du tableau sous forme de tableau 1D.
Définition à la ligne 249 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
inline |
Vue du tableau sous forme de tableau 1D.
Définition à la ligne 254 du fichier arccore/src/collections/arccore/collections/Array2.h.
|
protected |
Définition à la ligne 412 du fichier AbstractArray.h.