Hugin trunk 0.1
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
vigra::AlgTinyVector< T, SIZE > Class Template Reference

Fixed size vector with scalar multiplication and element-wise substraction and addition. More...

#include <algtinyvector.h>

Public Member Functions

 AlgTinyVector (const AlgTinyVector< T, SIZE > &t)
 
 AlgTinyVector (T t=NumericTraits< T >::zero())
 
constoperator[] (int i) const
 
T & operator[] (int i)
 
constoperator* (const AlgTinyVector< T, SIZE > &t) const
 
const AlgTinyVector operator* (const int t) const
 
const AlgTinyVector operator/ (const int t) const
 
const AlgTinyVector operator- (const AlgTinyVector< T, SIZE > &t) const
 
const AlgTinyVector operator+ (const AlgTinyVector< T, SIZE > &t) const
 
AlgTinyVectoroperator= (const AlgTinyVector< T, SIZE > &t)
 
AlgTinyVectoroperator= (const TinyVector< T, SIZE > &t)
 

Private Attributes

content [SIZE]
 

Detailed Description

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

Fixed size vector with scalar multiplication and element-wise substraction and addition.

Definition at line 29 of file algtinyvector.h.

Constructor & Destructor Documentation

◆ AlgTinyVector() [1/2]

template<class T , int SIZE>
vigra::AlgTinyVector< T, SIZE >::AlgTinyVector ( const AlgTinyVector< T, SIZE > &  t)
inline

Definition at line 32 of file algtinyvector.h.

References vigra::AlgTinyVector< T, SIZE >::content, and threshold().

◆ AlgTinyVector() [2/2]

template<class T , int SIZE>
vigra::AlgTinyVector< T, SIZE >::AlgTinyVector ( t = NumericTraits<T>::zero())
inlineexplicit

Definition at line 38 of file algtinyvector.h.

References vigra::AlgTinyVector< T, SIZE >::content, and threshold().

Member Function Documentation

◆ operator*() [1/2]

template<class T , int SIZE>
const T vigra::AlgTinyVector< T, SIZE >::operator* ( const AlgTinyVector< T, SIZE > &  t) const
inline

Definition at line 52 of file algtinyvector.h.

References vigra::AlgTinyVector< T, SIZE >::content, and threshold().

◆ operator*() [2/2]

template<class T , int SIZE>
const AlgTinyVector vigra::AlgTinyVector< T, SIZE >::operator* ( const int  t) const
inline

Definition at line 60 of file algtinyvector.h.

References vigra::AlgTinyVector< T, SIZE >::content, and threshold().

◆ operator+()

template<class T , int SIZE>
const AlgTinyVector vigra::AlgTinyVector< T, SIZE >::operator+ ( const AlgTinyVector< T, SIZE > &  t) const
inline

Definition at line 84 of file algtinyvector.h.

References vigra::AlgTinyVector< T, SIZE >::content, and threshold().

◆ operator-()

template<class T , int SIZE>
const AlgTinyVector vigra::AlgTinyVector< T, SIZE >::operator- ( const AlgTinyVector< T, SIZE > &  t) const
inline

Definition at line 76 of file algtinyvector.h.

References vigra::AlgTinyVector< T, SIZE >::content, and threshold().

◆ operator/()

template<class T , int SIZE>
const AlgTinyVector vigra::AlgTinyVector< T, SIZE >::operator/ ( const int  t) const
inline

Definition at line 68 of file algtinyvector.h.

References vigra::AlgTinyVector< T, SIZE >::content, and threshold().

◆ operator=() [1/2]

template<class T , int SIZE>
AlgTinyVector & vigra::AlgTinyVector< T, SIZE >::operator= ( const AlgTinyVector< T, SIZE > &  t)
inline

Definition at line 92 of file algtinyvector.h.

References vigra::AlgTinyVector< T, SIZE >::content, and threshold().

◆ operator=() [2/2]

template<class T , int SIZE>
AlgTinyVector & vigra::AlgTinyVector< T, SIZE >::operator= ( const TinyVector< T, SIZE > &  t)
inline

Definition at line 101 of file algtinyvector.h.

References vigra::AlgTinyVector< T, SIZE >::content, and threshold().

◆ operator[]() [1/2]

template<class T , int SIZE>
T & vigra::AlgTinyVector< T, SIZE >::operator[] ( int  i)
inline

Definition at line 48 of file algtinyvector.h.

References vigra::AlgTinyVector< T, SIZE >::content, and threshold().

◆ operator[]() [2/2]

template<class T , int SIZE>
const T vigra::AlgTinyVector< T, SIZE >::operator[] ( int  i) const
inline

Definition at line 44 of file algtinyvector.h.

References vigra::AlgTinyVector< T, SIZE >::content, and threshold().

Member Data Documentation

◆ content

template<class T , int SIZE>
T vigra::AlgTinyVector< T, SIZE >::content[SIZE]
private

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