47 #ifndef AFF_SUBARRAY_H_VERSION 49 #define AFF_SUBARRAY_H_VERSION \ 86 typedef typename Tarray::Tshape
Tshape;
102 { ++
Mdim;
return(*
this); }
123 typename Tshape::Tstepper st(
Mshape);
124 for(st.tofirst(); st.valid(); st.incr())
139 "ERROR (Subarray): you use too many dimension-brackets!");
168 #endif // AFF_SUBARRAY_H_VERSION (includeguard) Root namespace of library.
Tshape Mshape
Shape to process.
Tarray::Tconst_pointer Tconst_pointer
Type of pointer to const element.
aff::util::Subarray< C > subarray(const C &c)
Wrapper function to select correct type.
Tdim Mdim
Dimension to specify.
Trepresentation Mrepresentation
Representation to use.
Subarray & operator=(Tconst_reference value)
provide value assignment to a subarray
full template array class headers (prototypes)
Tarray array() const
return an array
C Tcontainer
Type of array to be handled.
#define AFF_assert(C, M)
Check an assertion and report by throwing an exception.
C Tarray
Type of array to be handled.
Tarray::Tconst_reference Tconst_reference
Type of reference to const element.
Subarray & operator()()
use full range of this dimension
Subarray & operator()(const Tsubscript &first, const Tsubscript &last)
set first and last index of this dimension
Tarray::Tshape Tshape
Type of shape to be used.
unsigned short int Tdim
Type to hold an array dimensionality.
ptrdiff_t Tsubscript
Type to hold an array's subscript value.
Subarray(const Tarray &array)
Constructor takes a reference to an array.
Tarray::Tconst_value Tconst_value
Type of const element.
Tarray::Trepresentation Trepresentation
Type of reference to be used.
void check_dim() const
check dimensions
Subarray & operator()(const Tsubscript &last)
set last index of this dimension