Interval over Arccore array classes. More...
#include <arccore/base/ArrayRange.h>
Public Types | |
| using | value_type = TraitsType_::value_type |
| using | difference_type = TraitsType_::difference_type |
| using | reference = TraitsType_::reference |
| using | pointer = TraitsType_::pointer |
| using | const_pointer = const value_type* |
| using | iterator = ArrayIterator<pointer> |
| Type of the iterator for an element of the array. | |
| using | const_iterator = ArrayIterator<const_pointer> |
| Type of the constant iterator for an element of the array. | |
Public Member Functions | |
| ArrayRange ()=default | |
| Constructs an empty range. | |
| ArrayRange (pointer abegin, pointer aend) noexcept | |
| Constructs a range going from abegin to aend. | |
| iterator | begin () |
| Returns an iterator to the first element of the array. | |
| iterator | end () |
| Returns an iterator to the first element after the end of the array. | |
| const_iterator | begin () const |
| Returns a constant iterator to the first element of the array. | |
| const_iterator | end () const |
| Returns a constant iterator to the first element after the end of the array. | |
| value_type * | data () |
| Pointer to the underlying array. | |
| const value_type * | data () const |
| Constant pointer to the underlying array. | |
| bool | empty () const |
| Indicates if the array is empty. | |
Protected Types | |
| using | TraitsType_ = Arcane::Impl::ArrayIteratorTraits<T> |
Interval over Arccore array classes.
This class is used to adapt array classes to STL iterators. It provides methods such as begin()/end().
Definition at line 34 of file arccore/src/base/arccore/base/ArrayRange.h.
| using Arcane::ArrayRange< T >::const_iterator = ArrayIterator<const_pointer> |
Type of the constant iterator for an element of the array.
Definition at line 51 of file arccore/src/base/arccore/base/ArrayRange.h.
| using Arcane::ArrayRange< T >::const_pointer = const value_type* |
Definition at line 47 of file arccore/src/base/arccore/base/ArrayRange.h.
| using Arcane::ArrayRange< T >::difference_type = TraitsType_::difference_type |
Definition at line 43 of file arccore/src/base/arccore/base/ArrayRange.h.
| using Arcane::ArrayRange< T >::iterator = ArrayIterator<pointer> |
Type of the iterator for an element of the array.
Definition at line 49 of file arccore/src/base/arccore/base/ArrayRange.h.
| using Arcane::ArrayRange< T >::pointer = TraitsType_::pointer |
Definition at line 45 of file arccore/src/base/arccore/base/ArrayRange.h.
| using Arcane::ArrayRange< T >::reference = TraitsType_::reference |
Definition at line 44 of file arccore/src/base/arccore/base/ArrayRange.h.
|
protected |
Definition at line 38 of file arccore/src/base/arccore/base/ArrayRange.h.
| using Arcane::ArrayRange< T >::value_type = TraitsType_::value_type |
Definition at line 42 of file arccore/src/base/arccore/base/ArrayRange.h.
|
inlinenoexcept |
Constructs a range going from abegin to aend.
Definition at line 59 of file arccore/src/base/arccore/base/ArrayRange.h.
|
inline |
Returns an iterator to the first element of the array.
Definition at line 67 of file arccore/src/base/arccore/base/ArrayRange.h.
|
inline |
Returns a constant iterator to the first element of the array.
Definition at line 71 of file arccore/src/base/arccore/base/ArrayRange.h.
|
inline |
Pointer to the underlying array.
Definition at line 76 of file arccore/src/base/arccore/base/ArrayRange.h.
|
inline |
Constant pointer to the underlying array.
Definition at line 78 of file arccore/src/base/arccore/base/ArrayRange.h.
|
inline |
Indicates if the array is empty.
Definition at line 80 of file arccore/src/base/arccore/base/ArrayRange.h.
|
inline |
Returns an iterator to the first element after the end of the array.
Definition at line 69 of file arccore/src/base/arccore/base/ArrayRange.h.
|
inline |
Returns a constant iterator to the first element after the end of the array.
Definition at line 73 of file arccore/src/base/arccore/base/ArrayRange.h.