|
| __host__ __device__ | SmallSpan2 (pointer ptr, Int32 dim1_size, Int32 dim2_size) |
| | Creates a 2D view of dimension [dim1_size][dim2_size].
|
| __host__ __device__ | SmallSpan2 () |
| | Creates an empty 2D view.
|
| | SmallSpan2 (const Array2View< value_type > &from) |
| | Copy constructor from another view.
|
| template<typename X, typename = std::enable_if_t<std::is_same_v<X, value_type>>> |
| | SmallSpan2 (const ConstArray2View< X > &from) |
| template<typename X, typename = std::enable_if_t<std::is_same_v<X, value_type>>> |
| __host__ __device__ | SmallSpan2 (const SmallSpan2< X > &from) |
| __host__ __device__ SmallSpan< ElementType > | operator[] (Int32 i) const |
| __host__ __device__ SmallSpan< ElementType > | operator() (Int32 i) const |
| constexpr __host__ __device__ reference | operator() (Int32 i, Int32 j) const |
| __host__ __device__ | Span2Impl (pointer ptr, Int32 dim1_size, Int32 dim2_size) |
| | Creates a 2D view of dimension [dim1_size][dim2_size].
|
| __host__ __device__ | Span2Impl () |
| | Creates an empty 2D view.
|
| | Span2Impl (const ConstArray2View< X > &from) |
| __host__ __device__ | Span2Impl (const Span2< X > &from) |
| constexpr __host__ __device__ Int32 | dim1Size () const |
| | Number of elements in the first dimension.
|
| constexpr __host__ __device__ Int32 | dim2Size () const |
| | Number of elements in the second dimension.
|
| constexpr __host__ __device__ Int32 | totalNbElement () const |
| | Total number of elements.
|
| constexpr __host__ __device__ SpanImpl< ElementType, Int32 > | operator[] (Int32 i) const |
| constexpr __host__ __device__ SpanImpl< ElementType, Int32 > | operator() (Int32 i) const |
| constexpr __host__ __device__ reference | operator() (Int32 i, Int32 j) const |
| constexpr __host__ __device__ ElementType | item (Int32 i, Int32 j) const |
| | Value of the element [i][j].
|
| constexpr __host__ __device__ ElementType | setItem (Int32 i, Int32 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.
|
| __host__ __device__ | Span2Impl (pointer ptr, Int32 dim1_size, Int32 dim2_size) |
| | Creates a 2D view of dimension [dim1_size][dim2_size].
|
| __host__ __device__ | Span2Impl () |
| | Creates an empty 2D view.
|
| | Span2Impl (const ConstArray2View< X > &from) |
| __host__ __device__ | Span2Impl (const Span2< X > &from) |
| constexpr __host__ __device__ Int32 | dim1Size () const |
| | Number of elements in the first dimension.
|
| constexpr __host__ __device__ Int32 | dim2Size () const |
| | Number of elements in the second dimension.
|
| constexpr __host__ __device__ Int32 | totalNbElement () const |
| | Total number of elements.
|
| constexpr __host__ __device__ SpanImpl< ElementType, Int32 > | operator[] (Int32 i) const |
| constexpr __host__ __device__ SpanImpl< ElementType, Int32 > | operator() (Int32 i) const |
| constexpr __host__ __device__ reference | operator() (Int32 i, Int32 j) const |
| constexpr __host__ __device__ ElementType | item (Int32 i, Int32 j) const |
| | Value of the element [i][j].
|
| constexpr __host__ __device__ ElementType | setItem (Int32 i, Int32 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<class T,
Int32 Extent1,
Int32 Extent2>
class Arcane::SmallSpan2< T, Extent1, Extent2 >
View for a 2D array whose size is an 'Int32'.
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.
Definition at line 247 of file Span2.h.