[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
![]() |
TinyVectorView< T, SIZE > | ![]() |
Wrapper for fixed size vectors. More...
#include <vigra/tinyvector.hxx>
Public Types | |
typedef BaseType::const_iterator | const_iterator |
typedef BaseType::const_pointer | const_pointer |
typedef BaseType::const_reference | const_reference |
typedef BaseType::difference_type | difference_type |
typedef BaseType::iterator | iterator |
typedef BaseType::NormType | NormType |
typedef BaseType::pointer | pointer |
typedef BaseType::reference | reference |
typedef BaseType::scalar_multiplier | scalar_multiplier |
typedef BaseType::size_type | size_type |
typedef BaseType::SquaredNormType | SquaredNormType |
typedef BaseType::value_type | value_type |
Public Member Functions | |
template<class U , class DATA , class DERIVED > | |
TinyVectorView & | operator= (TinyVectorBase< U, SIZE, DATA, DERIVED > const &r) |
TinyVectorView & | operator= (TinyVectorView const &r) |
template<class DATA , class DERIVED > | |
TinyVectorView (TinyVectorBase< T, SIZE, DATA, DERIVED > const &other) | |
TinyVectorView (TinyVectorView const &other) | |
TinyVectorView (const_pointer data) | |
TinyVectorView () |
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
typedef BaseType::value_type value_type |
STL-compatible definition of valuetype
Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >.
typedef BaseType::reference reference |
reference (return of operator[]).
Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >.
const reference (return of operator[] const).
Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >.
typedef BaseType::pointer pointer |
pointer (return of operator->).
Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >.
typedef BaseType::const_pointer const_pointer |
const pointer (return of operator-> const).
Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >.
typedef BaseType::iterator iterator |
STL-compatible definition of iterator
Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >.
STL-compatible definition of const iterator
Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >.
typedef BaseType::size_type size_type |
STL-compatible definition of size_type
Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >.
STL-compatible definition of difference_type
Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >.
the scalar type for the outer product
Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >.
the vector's squared norm type
Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >.
typedef BaseType::NormType NormType |
the vector's norm type
Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >.
TinyVectorView | ( | ) |
Default constructor (pointer to wrapped data is NULL).
TinyVectorView | ( | const_pointer | data | ) |
Construct view for given data array
TinyVectorView | ( | TinyVectorView< T, SIZE > const & | other | ) |
Copy constructor (shallow copy).
TinyVectorView | ( | TinyVectorBase< T, SIZE, DATA, DERIVED > const & | other | ) |
Construct view from other TinyVector.
TinyVectorView& operator= | ( | TinyVectorView< T, SIZE > const & | r | ) |
Copy the data (not the pointer) of the rhs.
TinyVectorView& operator= | ( | TinyVectorBase< U, SIZE, DATA, DERIVED > const & | r | ) |
Copy the data of the rhs with cast.
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|