AFF --- A container for numbers (array) by Friederich and Forbriger.
aff::util::Slice< C > Class Template Reference

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...
 
Sliceoperator() ()
 skip this dimension More...
 
Sliceoperator() (const Tsubscript &index)
 slice next dimension More...
 
Sliceoperator() (const Tdim &dim, const Tsubscript &index)
 slice dimention dim More...
 
Sliceoperator= (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...
 

Detailed Description

template<class C>
class aff::util::Slice< C >

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

Examples:
tests/helpertest.cc.

Definition at line 67 of file slice.h.


The documentation for this class was generated from the following file: