[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]

MultiArrayShape< N > Class Template Reference

#include <vigra/multi_shape.hxx>

Public Types

typedef TinyVector< MultiArrayIndex, N > type
 

Detailed Description

template<unsigned int N>
class vigra::MultiArrayShape< N >

Metafucntion to obtain the difference type of all MultiIterator, MultiArrayView, and MultiArray variants.

Usage:

This metafunction is mainly used in functions weren the array dimension N is provided as a templat parameter, and we need a shape object of the corresponding length. Then, a typedef like this is typically placed at the beginning of the function:

typedef typename MultiArrayShape<N>::type Shape;
Shape shape(1); // all ones of dimension N
Class for fixed size vectors.
Definition: tinyvector.hxx:1008

The following typedefs are provided for convenience:

Member Typedef Documentation

◆ type

The difference type of all MultiIterator, MultiArrayView, and MultiArray variants.


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

© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de)
Heidelberg Collaboratory for Image Processing, University of Heidelberg, Germany

html generated using doxygen and Python
vigra 1.11.1