[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
![]() |
TinyVector | ![]() |
Class for fixed size vectors. More...
#include <vigra/tinyvector.hxx>
This class contains an array of size SIZE of the specified VALUETYPE. The interface conforms to STL vector, except that there are no functions that change the size of a TinyVector.
Arithmetic operations on TinyVectors are defined as component-wise applications of these operations. Addition and subtraction of two TinyVectors (+=, -=, +, -, unary -), multiplication and division of an TinyVector with a double, and NumericTraits/PromoteTraits are defined, so that TinyVector fulfills the requirements of Linear Algebra.
VIGRA algorithms typically use vigra::VectorAccessor to access TinyVectors as a whole, or specific components of them.
See also:
#include <vigra/tinyvector.hxx>
Namespace: vigra
STL-compatible definition of const iterator
Reimplemented from TinyVectorBase.
Reimplemented in RGBValue.
typedef BaseType::const_pointer const_pointer |
const pointer (return of operator-> const).
Reimplemented from TinyVectorBase.
const reference (return of operator[] const).
Reimplemented from TinyVectorBase.
STL-compatible definition of difference_type
Reimplemented from TinyVectorBase.
typedef BaseType::iterator iterator |
typedef BaseType::NormType NormType |
typedef BaseType::pointer pointer |
pointer (return of operator->).
Reimplemented from TinyVectorBase.
typedef BaseType::reference reference |
reference (return of operator[]).
Reimplemented from TinyVectorBase.
the scalar type for the outer product
Reimplemented from TinyVectorBase.
typedef BaseType::size_type size_type |
STL-compatible definition of size_type
Reimplemented from TinyVectorBase.
typedef BaseType::value_type value_type |
STL-compatible definition of valuetype
Reimplemented from TinyVectorBase.
Reimplemented in RGBValue.
TinyVector | ( | value_type const & | initial | ) | [explicit] |
Construction with constant value
TinyVector | ( | value_type const & | i1, | |
value_type const & | i2 | |||
) |
Construction with explicit values. Call only if SIZE == 2
TinyVector | ( | value_type const & | i1, | |
value_type const & | i2, | |||
value_type const & | i3 | |||
) |
Construction with explicit values. Call only if SIZE == 3
TinyVector | ( | value_type const & | i1, | |
value_type const & | i2, | |||
value_type const & | i3, | |||
value_type const & | i4 | |||
) |
Construction with explicit values. Call only if SIZE == 4
TinyVector | ( | ) |
Default constructor (initializes all components with zero)
TinyVector | ( | TinyVector< T, SIZE > const & | r | ) |
Copy constructor.
TinyVector | ( | const_pointer | data | ) | [explicit] |
Constructor from C array.
template<class U, class DATA, class DERIVED> | |||||
TinyVector | ( | TinyVectorBase< U, SIZE, DATA, DERIVED > const & | r | ) |
Copy with type conversion.
TinyVector& operator= | ( | TinyVectorBase< U, SIZE, DATA, DERIVED > const & | r | ) |
Copy assignment with type conversion.
TinyVector& operator= | ( | TinyVector< T, SIZE > const & | r | ) |
Copy assignment.
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|