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

details TinyVectorView< T, SIZE > Class Template Reference VIGRA

Wrapper for fixed size vectors. More...

#include <vigra/tinyvector.hxx>

Public Member Functions

template<class U , class DATA , class DERIVED >
TinyVectorViewoperator= (TinyVectorBase< U, SIZE, DATA, DERIVED > const &r)
 
TinyVectorViewoperator= (TinyVectorView const &r)
 
 TinyVectorView ()
 
 TinyVectorView (const_pointer data)
 
template<class DATA , class DERIVED >
 TinyVectorView (TinyVectorBase< T, SIZE, DATA, DERIVED > const &other)
 
 TinyVectorView (TinyVectorView const &other)
 

Detailed Description

template<class T, int SIZE>
class vigra::TinyVectorView< T, SIZE >

Wrapper for fixed size vectors.

This class wraps an array of size SIZE of the specified VALUETYPE. Thus, the array can be accessed with an interface similar to that of std::vector (except that there are no functions that change the size of a TinyVectorView). The TinyVectorView does not assume ownership of the given memory.

Arithmetic operations on TinyVectorViews are defined as component-wise applications of these operations. Addition and subtraction of two TinyVectorViews (+=, -=, +, -, unary -), multiplication and division of an TinyVectorViews with a double, and NumericTraits/PromoteTraits are defined, so that TinyVectorView fulfills the requirements of Linear Algebra.

VIGRA algorithms typically use vigra::VectorAccessor to access TinyVectorViews as a whole, or specific components of them.

See also:

#include <vigra/tinyvector.hxx>
Namespace: vigra

Constructor & Destructor Documentation

◆ TinyVectorView() [1/4]

Default constructor (pointer to wrapped data is NULL).

◆ TinyVectorView() [2/4]

TinyVectorView ( const_pointer  data)

Construct view for given data array

◆ TinyVectorView() [3/4]

TinyVectorView ( TinyVectorView< T, SIZE > const &  other)

Copy constructor (shallow copy).

◆ TinyVectorView() [4/4]

TinyVectorView ( TinyVectorBase< T, SIZE, DATA, DERIVED > const &  other)

Construct view from other TinyVector.

Member Function Documentation

◆ operator=() [1/2]

TinyVectorView& operator= ( TinyVectorView< T, SIZE > const &  r)

Copy the data (not the pointer) of the rhs.

◆ operator=() [2/2]

TinyVectorView& operator= ( TinyVectorBase< U, SIZE, DATA, DERIVED > const &  r)

Copy the data of the rhs with cast.


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

© 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