Arcane  v3.16.0.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
Référence du modèle de la classe Arcane::ArrayIterator< Iterator_ >

Itérateur sur les classes tableau de Arccore. Plus de détails...

#include <arccore/base/ArrayIterator.h>

Types publics

typedef std::random_access_iterator_tag iterator_category
 
typedef TraitsType_::value_type value_type
 
typedef TraitsType_::difference_type difference_type
 
typedef TraitsType_::reference reference
 
typedef TraitsType_::pointer pointer
 

Fonctions membres publiques

constexpr __host__ __device__ ArrayIterator (const Iterator_ &i) ARCCORE_NOEXCEPT
 
template<typename X, typename = Iterator_enable_if_t<std::is_same<X,value_type*>::value>>
constexpr __host__ __device__ ArrayIterator (const ArrayIterator< X > &iter) ARCCORE_NOEXCEPT
 
constexpr __host__ __device__ reference operator* () const ARCCORE_NOEXCEPT
 
constexpr __host__ __device__ pointer operator-> () const ARCCORE_NOEXCEPT
 
constexpr __host__ __device__ ArrayIteratoroperator++ () ARCCORE_NOEXCEPT
 
constexpr __host__ __device__ ArrayIterator operator++ (int) ARCCORE_NOEXCEPT
 
constexpr __host__ __device__ ArrayIteratoroperator-- () ARCCORE_NOEXCEPT
 
constexpr __host__ __device__ ArrayIterator operator-- (int) ARCCORE_NOEXCEPT
 
constexpr __host__ __device__ reference operator[] (difference_type n) const ARCCORE_NOEXCEPT
 
constexpr __host__ __device__ ArrayIteratoroperator+= (difference_type n) ARCCORE_NOEXCEPT
 
constexpr __host__ __device__ ArrayIterator operator+ (difference_type n) const ARCCORE_NOEXCEPT
 
constexpr __host__ __device__ ArrayIteratoroperator-= (difference_type n) ARCCORE_NOEXCEPT
 
constexpr __host__ __device__ ArrayIterator operator- (difference_type n) const ARCCORE_NOEXCEPT
 
constexpr __host__ __device__ const Iterator_ & base () const ARCCORE_NOEXCEPT
 

Types protégés

using TraitsType_ = std::iterator_traits<Iterator_>
 

Attributs protégés

Iterator_ m_ptr
 

Description détaillée

template<typename Iterator_>
class Arcane::ArrayIterator< Iterator_ >

Itérateur sur les classes tableau de Arccore.

Cet itérateur est utilisé pour les classes Array, ArrayView et ConstArrayView.

Il est du type std::random_access_iterator_tag.

Définition à la ligne 37 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

Documentation des définitions de type membres

◆ difference_type

template<typename Iterator_>
typedef TraitsType_::difference_type Arcane::ArrayIterator< Iterator_ >::difference_type

Définition à la ligne 55 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ iterator_category

template<typename Iterator_>
typedef std::random_access_iterator_tag Arcane::ArrayIterator< Iterator_ >::iterator_category

Définition à la ligne 53 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ pointer

template<typename Iterator_>
typedef TraitsType_::pointer Arcane::ArrayIterator< Iterator_ >::pointer

Définition à la ligne 57 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ reference

template<typename Iterator_>
typedef TraitsType_::reference Arcane::ArrayIterator< Iterator_ >::reference

Définition à la ligne 56 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ TraitsType_

template<typename Iterator_>
using Arcane::ArrayIterator< Iterator_ >::TraitsType_ = std::iterator_traits<Iterator_>
protected

Définition à la ligne 49 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ value_type

template<typename Iterator_>
typedef TraitsType_::value_type Arcane::ArrayIterator< Iterator_ >::value_type

Définition à la ligne 54 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

Documentation des constructeurs et destructeur

◆ ArrayIterator() [1/3]

template<typename Iterator_>
__host__ __device__ Arcane::ArrayIterator< Iterator_ >::ArrayIterator ( )
inlineconstexpr

Définition à la ligne 61 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ ArrayIterator() [2/3]

template<typename Iterator_>
__host__ __device__ Arcane::ArrayIterator< Iterator_ >::ArrayIterator ( const Iterator_ & i)
inlineexplicitconstexpr

Définition à la ligne 63 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ ArrayIterator() [3/3]

template<typename Iterator_>
template<typename X, typename = Iterator_enable_if_t<std::is_same<X,value_type*>::value>>
__host__ __device__ Arcane::ArrayIterator< Iterator_ >::ArrayIterator ( const ArrayIterator< X > & iter)
inlineconstexpr

Définition à la ligne 68 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

Documentation des fonctions membres

◆ base()

template<typename Iterator_>
__host__ __device__ const Iterator_ & Arcane::ArrayIterator< Iterator_ >::base ( ) const
inlineconstexpr

Définition à la ligne 88 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ operator*()

template<typename Iterator_>
__host__ __device__ reference Arcane::ArrayIterator< Iterator_ >::operator* ( ) const
inlineconstexpr

Définition à la ligne 72 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ operator+()

template<typename Iterator_>
__host__ __device__ ArrayIterator Arcane::ArrayIterator< Iterator_ >::operator+ ( difference_type n) const
inlineconstexpr

Définition à la ligne 84 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ operator++() [1/2]

template<typename Iterator_>
__host__ __device__ ArrayIterator & Arcane::ArrayIterator< Iterator_ >::operator++ ( )
inlineconstexpr

Définition à la ligne 74 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ operator++() [2/2]

template<typename Iterator_>
__host__ __device__ ArrayIterator Arcane::ArrayIterator< Iterator_ >::operator++ ( int )
inlineconstexpr

Définition à la ligne 75 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ operator+=()

template<typename Iterator_>
__host__ __device__ ArrayIterator & Arcane::ArrayIterator< Iterator_ >::operator+= ( difference_type n)
inlineconstexpr

Définition à la ligne 83 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ operator-()

template<typename Iterator_>
__host__ __device__ ArrayIterator Arcane::ArrayIterator< Iterator_ >::operator- ( difference_type n) const
inlineconstexpr

Définition à la ligne 86 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ operator--() [1/2]

template<typename Iterator_>
__host__ __device__ ArrayIterator & Arcane::ArrayIterator< Iterator_ >::operator-- ( )
inlineconstexpr

Définition à la ligne 78 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ operator--() [2/2]

template<typename Iterator_>
__host__ __device__ ArrayIterator Arcane::ArrayIterator< Iterator_ >::operator-- ( int )
inlineconstexpr

Définition à la ligne 79 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ operator-=()

template<typename Iterator_>
__host__ __device__ ArrayIterator & Arcane::ArrayIterator< Iterator_ >::operator-= ( difference_type n)
inlineconstexpr

Définition à la ligne 85 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ operator->()

template<typename Iterator_>
__host__ __device__ pointer Arcane::ArrayIterator< Iterator_ >::operator-> ( ) const
inlineconstexpr

Définition à la ligne 73 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

◆ operator[]()

template<typename Iterator_>
__host__ __device__ reference Arcane::ArrayIterator< Iterator_ >::operator[] ( difference_type n) const
inlineconstexpr

Définition à la ligne 82 du fichier arccore/src/base/arccore/base/ArrayIterator.h.

Documentation des données membres

◆ m_ptr

template<typename Iterator_>
Iterator_ Arcane::ArrayIterator< Iterator_ >::m_ptr
protected

Définition à la ligne 47 du fichier arccore/src/base/arccore/base/ArrayIterator.h.


La documentation de cette classe a été générée à partir du fichier suivant :