AFF --- A container for numbers (array) by Friederich and Forbriger.
|
Create slices. More...
#include <slice.h>
Public Types | |
typedef C | Tarray |
Type of array to be handled. More... | |
typedef C | Tcontainer |
Type of array to be handled. More... | |
typedef Tarray::Tconst_value | Tconst_value |
Type of const element. More... | |
typedef Tarray::Tconst_reference | Tconst_reference |
Type of reference to const element. More... | |
typedef Tarray::Tconst_pointer | Tconst_pointer |
Type of pointer to const element. More... | |
typedef Tarray::Tshape | Tshape |
Type of shape to be used. More... | |
typedef Tarray::Trepresentation | Trepresentation |
Type of reference to be used. More... | |
Public Member Functions | |
Slice (const Tarray &array) | |
Constructor takes a reference to an array. More... | |
Slice & | operator() () |
skip this dimension More... | |
Slice & | operator() (const Tsubscript &index) |
slice next dimension More... | |
Slice & | operator() (const Tdim &dim, const Tsubscript &index) |
slice dimention dim More... | |
Slice & | operator= (Tconst_reference value) |
provide value assignment to a slice More... | |
Tarray | array () const |
return an array More... | |
operator Tarray () const | |
convert to array More... | |
Private Member Functions | |
void | check_dim () const |
check dimension More... | |
Private Attributes | |
Tshape | Mshape |
Shape to process. More... | |
Trepresentation | Mrepresentation |
Representation to use. More... | |
Tdim | Mdim |
Next dimension to collapse. More... | |
Create slices.
This class helps you to create a slice from an existing array. Use this through the function aff::slice.
Examples can be found in tests/helpertest.cc