[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]
![]() |
TinyVectorBase Class Template Reference | ![]() |
---|
Base class for fixed size vectors. More...
#include "vigra/tinyvector.hxx"
Public Types | |
typedef VALUETYPE | value_type |
typedef VALUETYPE & | reference |
typedef VALUETYPE const & | const_reference |
typedef VALUETYPE * | pointer |
typedef VALUETYPE const * | const_pointer |
typedef value_type * | iterator |
typedef value_type const * | const_iterator |
typedef unsigned int | size_type |
typedef int | difference_type |
typedef double | scalar_multiplier |
typedef NormTraits< VALUETYPE >::SquaredNormType | SquaredNormType |
typedef NumericTraits< SquaredNormType >::RealPromote | NormType |
enum | |
Public Methods | |
template<class Iterator> void | init (Iterator i, Iterator end) |
template<class T1, class D1, class D2> DERIVED & | operator+= (TinyVectorBase< T1, SIZE, D1, D2 > const &r) |
template<class T1, class D1, class D2> DERIVED & | operator-= (TinyVectorBase< T1, SIZE, D1, D2 > const &r) |
template<class T1, class D1, class D2> DERIVED & | operator *= (TinyVectorBase< T1, SIZE, D1, D2 > const &r) |
DERIVED & | operator *= (double r) |
DERIVED & | operator/= (double r) |
NormType | magnitude () const |
SquaredNormType | squaredMagnitude () const |
reference | operator[] (difference_type i) |
const_reference | operator[] (difference_type i) const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
size_type | size () const |
Detailed Description |
This class contains functionality shared by TinyVector and TinyVectorView, and enables these classes to be freely mixed within expressions. It is typically not used directly.
#include "vigra/tinyvector.hxx"
Namespace: vigra
|
STL-compatible definition of const iterator Reimplemented in RGBValue, TinyVector, TinyVectorView, and TinyVector< VALUETYPE, 3 >. |
|
const pointer (return of operator-> const). Reimplemented in TinyVector, TinyVectorView, and TinyVector< VALUETYPE, 3 >. |
|
const reference (return of operator[] const). Reimplemented in TinyVector, TinyVectorView, and TinyVector< VALUETYPE, 3 >. |
|
STL-compatible definition of difference_type Reimplemented in TinyVector, TinyVectorView, and TinyVector< VALUETYPE, 3 >. |
|
STL-compatible definition of iterator Reimplemented in RGBValue, TinyVector, TinyVectorView, and TinyVector< VALUETYPE, 3 >. |
|
the vector's norm type Reimplemented in RGBValue, TinyVector, TinyVectorView, and TinyVector< VALUETYPE, 3 >. |
|
pointer (return of operator->). Reimplemented in TinyVector, TinyVectorView, and TinyVector< VALUETYPE, 3 >. |
|
reference (return of operator[]). Reimplemented in TinyVector, TinyVectorView, and TinyVector< VALUETYPE, 3 >. |
|
the scalar type for the outer product Reimplemented in TinyVector, TinyVectorView, and TinyVector< VALUETYPE, 3 >. |
|
STL-compatible definition of size_type Reimplemented in TinyVector, TinyVectorView, and TinyVector< VALUETYPE, 3 >. |
|
the vector's squared norm type Reimplemented in RGBValue, TinyVector, TinyVectorView, and TinyVector< VALUETYPE, 3 >. |
|
STL-compatible definition of valuetype Reimplemented in RGBValue, TinyVector, TinyVectorView, and TinyVector< VALUETYPE, 3 >. |
|
the vector's size |
|
Get const random access iterator to begin of vector. |
|
Get random access iterator to begin of vector. |
|
Get const random access iterator past-the-end of vector. |
|
Get random access iterator past-the-end of vector. |
|
Initialize from another sequence (must have length SIZE!) |
|
Calculate magnitude. Reimplemented in RGBValue. |
|
Component-wise scalar multiply-assignment |
|
Component-wise multiply-assignment |
|
Component-wise add-assignment |
|
Component-wise subtract-assignment |
|
Component-wise scalar divide-assignment |
|
Get component by index. |
|
Access component by index. |
|
Size of TinyVector vector always equals the template parameter SIZE. |
|
Calculate squared magnitude. Reimplemented in RGBValue. |
© Ullrich Köthe (koethe@informatik.uni-hamburg.de) |
html generated using doxygen and Python
|