Interval over Arccore array classes. More...
#include <arccore/base/ArrayRange.h>
Public Types | |
| typedef std::iterator_traits< T > | _TraitsType |
| typedef _TraitsType::value_type | value_type |
| typedef _TraitsType::difference_type | difference_type |
| typedef _TraitsType::reference | reference |
| typedef _TraitsType::pointer | pointer |
| typedef const value_type * | const_pointer |
| typedef ArrayIterator< pointer > | iterator |
| Type of the iterator for an element of the array. | |
| typedef ArrayIterator< const_pointer > | const_iterator |
| Type of the constant iterator for an element of the array. | |
Public Member Functions | |
| ArrayRange () ARCCORE_NOEXCEPT | |
| Constructs an empty range. | |
| ArrayRange (pointer abegin, pointer aend) ARCCORE_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. | |
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 35 of file arccore/src/base/arccore/base/ArrayRange.h.
| typedef std::iterator_traits<T> Arcane::ArrayRange< T >::_TraitsType |
Definition at line 39 of file arccore/src/base/arccore/base/ArrayRange.h.
| typedef ArrayIterator<const_pointer> Arcane::ArrayRange< T >::const_iterator |
Type of the constant iterator for an element of the array.
Definition at line 51 of file arccore/src/base/arccore/base/ArrayRange.h.
| typedef const value_type* Arcane::ArrayRange< T >::const_pointer |
Definition at line 47 of file arccore/src/base/arccore/base/ArrayRange.h.
| typedef _TraitsType::difference_type Arcane::ArrayRange< T >::difference_type |
Definition at line 44 of file arccore/src/base/arccore/base/ArrayRange.h.
| typedef ArrayIterator<pointer> Arcane::ArrayRange< T >::iterator |
Type of the iterator for an element of the array.
Definition at line 49 of file arccore/src/base/arccore/base/ArrayRange.h.
| typedef _TraitsType::pointer Arcane::ArrayRange< T >::pointer |
Definition at line 46 of file arccore/src/base/arccore/base/ArrayRange.h.
| typedef _TraitsType::reference Arcane::ArrayRange< T >::reference |
Definition at line 45 of file arccore/src/base/arccore/base/ArrayRange.h.
| typedef _TraitsType::value_type Arcane::ArrayRange< T >::value_type |
Definition at line 43 of file arccore/src/base/arccore/base/ArrayRange.h.
|
inline |
Constructs an empty range.
Definition at line 56 of file arccore/src/base/arccore/base/ArrayRange.h.
|
inline |
Constructs a range going from abegin to aend.
Definition at line 60 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.