37 #ifndef AFF_CARRAY_H_VERSION 39 #define AFF_CARRAY_H_VERSION \ 169 {
return (
Msize[i]); }
318 #endif // AFF_CARRAY_H_VERSION (includeguard) aff::Array< T > Tarray
Type of array to be interfaced.
Root namespace of library.
utility for compile-time checked cast
Shape for a rectangular array layout.
ConstCArray(const Tarray &array)
construct from shape and representation
Interface class to raw memory (C style array)
T & Treference
Type of reference to element.
Tarray::Treference Treference
Type of reference to element.
CArray< T > Tcontainer
Type of this array.
Tarray::Tconst_value Tconst_value
const element type
const Tsize & stride(const Tsubscript &i) const
stride of dimension
Trepresentation Mrepresentation
my (mutable) data representation
TT * castedpointer() const
return type-casted pointer to first element in Fortran layout
const T & Tconst_reference
Type of reference to const element.
Tarray::Trepresentation Trepresentation
Type of representation.
ConstArray< T > Tarray
Type of array to be interfaced.
const TSizeVec::Tvalue & offset() const
pass offset to derived class
Strided & setfirst(const Tdim &i, const Tsubscript &index)
setfirst
Tarray::Tconst_pointer Tconst_pointer
Type of pointer to const element.
size checked pointer cast (prototypes)
Tshape::TSizeVec TSizeVec
we use this for one of the access operators
Tcontainer Tcoc
Short for Tcontainer_of_const.
ConstCArray< T > Tcontainer
Type of this array.
const TSizeVec & size() const
size of dimensions
Tarray::Tvalue Tvalue
Element type.
const Tsize & stride(const Tsubscript &i) const
stride of dimension
full template array class headers (prototypes)
Tarray::Tconst_reference Tconst_reference
Type of reference to const element.
Tarray::Tvalue Tvalue
Element type.
T * Tpointer
Type of pointer to element.
Tconst_pointer pointer() const
return pointer to first element in Fortran layout
Tpointer pointer() const
return pointer to first element in Fortran layout
Tbase Tcontainer_of_const
Type of the array of const values.
Tshape::TSizeVec TSizeVec
we use this for one of the access operators
Tsize size() const
size of array
const T Tconst_value
const element type
Tarray::Tconst_value Tconst_value
const element type
Tarray::Tpointer Tpointer
Type of pointer to element.
const Tshape & shape() const
provide access to const shape
Tcontainer Tcoc
Short for Tcontainer_of_const.
This is the base class for const elements.
Trepresentation Mrepresentation
representation member
Interface class to raw memory (C style array)
const T * Tconst_pointer
Type of pointer to const element.
CArray(const Tarray &array)
construct from shape and representation
Full multi-dimensional array functionality.This is the full array class template. It adds no addition...
Tarray::Tpointer Tpointer
Type of pointer to element.
TSizeVec::Tvalue Moffset
offset to first index
Tcontainer Tcontainer_of_const
Type of the array of const values.
Tarray::Treference Treference
Type of reference to element.
Tarray::Tconst_reference Tconst_reference
Type of reference to const element.
TSizeVec Msize
sizes of dimensions
Tsubscript first_offset() const
first mapped position
const TSizeVec & stride() const
strides of dimensions
ptrdiff_t Tsubscript
Type to hold an array's subscript value.
Tarray::Tconst_pointer Tconst_pointer
Type of pointer to const element.
Tarray::Tshape Tshape
Type of shape.
Tarray::Tshape Tshape
Type of shape.
TSizeVec Mstride
strides of dimensions
Array base classThis is a multidimensional (array) container that uses a strided memory layout (Fortr...
TT * castedpointer() const
return type-casted pointer to first element in Fortran layout
const Tsubscript & last(const Tsubscript &i) const
last index of dimension
aff::ConstCArray< T > Tbase
Base class.
Tarray::Trepresentation Trepresentation
Type of representation.
size_t Tsize
Type to hold the size of an array dimension.