|
| __host__ __device__ | Span2Impl (pointer ptr, SizeType dim1_size, SizeType dim2_size) |
| | Creates a 2D view of dimension [dim1_size][dim2_size].
|
| __host__ __device__ | Span2Impl () |
| | Creates an empty 2D view.
|
| template<typename X, typename = std::enable_if_t<std::is_same_v<X, value_type>>> |
| | Span2Impl (const ConstArray2View< X > &from) |
| template<typename X, typename = std::enable_if_t<std::is_same_v<X, value_type>>> |
| __host__ __device__ | Span2Impl (const Span2< X > &from) |
| constexpr __host__ __device__ SizeType | dim1Size () const |
| | Number of elements in the first dimension.
|
| constexpr __host__ __device__ SizeType | dim2Size () const |
| | Number of elements in the second dimension.
|
| constexpr __host__ __device__ SizeType | totalNbElement () const |
| | Total number of elements.
|
| constexpr __host__ __device__ SpanImpl< ElementType, SizeType > | operator[] (SizeType i) const |
| constexpr __host__ __device__ SpanImpl< ElementType, SizeType > | operator() (SizeType i) const |
| constexpr __host__ __device__ reference | operator() (SizeType i, SizeType j) const |
| constexpr __host__ __device__ ElementType | item (SizeType i, SizeType j) const |
| | Value of the element [i][j].
|
| constexpr __host__ __device__ ElementType | setItem (SizeType i, SizeType j, const ElementType &value) |
| | Positions the element [i][j] at value.
|
| constexpr view_type | smallView () |
| | Constant view of this view.
|
| constexpr ConstArrayView< value_type > | constSmallView () const |
| | Constant view of this view.
|
| constexpr ElementType * | unguardedBasePointer () |
| | Pointer to the allocated memory.
|
| constexpr __host__ __device__ ElementType * | data () |
| | Pointer to the allocated memory.
|
| constexpr __host__ __device__ const ElementType * | data () const |
| | Pointer to the allocated memory.
|
|
| template<typename X, SizeType XExtent1, SizeType XExtent2, typename = std::enable_if_t<std::is_same_v<X, value_type>>> |
| bool | operator== (const ThatClass &lhs, const Span2Impl< X, SizeType, XExtent1, XExtent2 > &rhs) |
| | Equality operator (valid if T is const but not X).
|
| template<typename X, SizeType XExtent1, SizeType XExtent2, typename = std::enable_if_t<std::is_same_v<X, value_type>>> |
| bool | operator!= (const ThatClass &lhs, const Span2Impl< X, SizeType, XExtent1, XExtent2 > &rhs) |
| | Inequality operator (valid if T is const but not X).
|
| template<SizeType XExtent1, SizeType XExtent2> |
| bool | operator== (const ThatClass &lhs, const Span2Impl< T, SizeType, XExtent1, XExtent2 > &rhs) |
| | Equality operator.
|
| template<SizeType XExtent1, SizeType XExtent2> |
| bool | operator!= (const ThatClass &lhs, const Span2Impl< T, SizeType, XExtent1, XExtent2 > &rhs) |
| | Inequality operator.
|
template<typename T, typename SizeType, SizeType Extent1, SizeType Extent2>
class Arcane::Span2Impl< T, SizeType, Extent1, Extent2 >
View for a 2D array.
Like any view, an instance of this class is only valid as long as the container it originated from does not change its number of elements. The view is non-modifiable if the template argument is of type 'const T'. This class allows accessing and using an array of elements of type T in the same way as a standard C array. SizeType is the type used to store the number of elements in the array. This can be 'Int32' or 'Int64'.
Definition at line 65 of file Span2.h.
template<typename T, typename SizeType, SizeType Extent1, SizeType Extent2>
template<typename X, typename = std::enable_if_t<std::is_same_v<X, value_type>>>
template<typename T, typename SizeType, SizeType Extent1, SizeType Extent2>
template<SizeType XExtent1, SizeType XExtent2>
| bool operator!= |
( |
const ThatClass & | lhs, |
|
|
const Span2Impl< T, SizeType, XExtent1, XExtent2 > & | rhs ) |
|
friend |
Inequality operator.
Definition at line 223 of file Span2.h.
template<typename T, typename SizeType, SizeType Extent1, SizeType Extent2>
template<typename X, SizeType XExtent1, SizeType XExtent2, typename = std::enable_if_t<std::is_same_v<X, value_type>>>
| bool operator!= |
( |
const ThatClass & | lhs, |
|
|
const Span2Impl< X, SizeType, XExtent1, XExtent2 > & | rhs ) |
|
friend |
Inequality operator (valid if T is const but not X).
Definition at line 211 of file Span2.h.
template<typename T, typename SizeType, SizeType Extent1, SizeType Extent2>
template<SizeType XExtent1, SizeType XExtent2>
| bool operator== |
( |
const ThatClass & | lhs, |
|
|
const Span2Impl< T, SizeType, XExtent1, XExtent2 > & | rhs ) |
|
friend |
Equality operator.
Definition at line 217 of file Span2.h.
template<typename T, typename SizeType, SizeType Extent1, SizeType Extent2>
template<typename X, SizeType XExtent1, SizeType XExtent2, typename = std::enable_if_t<std::is_same_v<X, value_type>>>
| bool operator== |
( |
const ThatClass & | lhs, |
|
|
const Span2Impl< X, SizeType, XExtent1, XExtent2 > & | rhs ) |
|
friend |
Equality operator (valid if T is const but not X).
Definition at line 205 of file Span2.h.