[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]
![]() |
TinyVectorView Class Template Reference | ![]() |
---|
Wrapper for fixed size vectors. More...
#include "vigra/tinyvector.hxx"
Inheritance diagram for TinyVectorView:
Public Types | |
typedef BaseType::value_type | value_type |
typedef BaseType::reference | reference |
typedef BaseType::const_reference | const_reference |
typedef BaseType::pointer | pointer |
typedef BaseType::const_pointer | const_pointer |
typedef BaseType::iterator | iterator |
typedef BaseType::const_iterator | const_iterator |
typedef BaseType::size_type | size_type |
typedef BaseType::difference_type | difference_type |
typedef BaseType::scalar_multiplier | scalar_multiplier |
Public Methods | |
TinyVectorView () | |
TinyVectorView (const_pointer data) | |
TinyVectorView (TinyVectorView const &other) | |
template<class DATA, class DERIVED> | TinyVectorView (TinyVectorBase< T, SIZE, DATA, DERIVED > const &other) |
TinyVectorView & | operator= (TinyVectorView const &r) |
template<class U, class DATA, class DERIVED> TinyVectorView & | operator= (TinyVectorBase< U, SIZE, DATA, DERIVED > const &r) |
Detailed Description |
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 LinearAlgebra.
VIGRA algorithms typically use vigra::VectorAccessor to access TinyVectorViews as a whole, or specific components of them.
#include "vigra/tinyvector.hxx"
Namespace: vigra
|
STL-compatible definition of const iterator Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >. |
|
const pointer (return of operator-> const). Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >. |
|
const reference (return of operator[] const). Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >. |
|
STL-compatible definition of difference_type Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >. |
|
STL-compatible definition of iterator Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >. |
|
pointer (return of operator->). Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >. |
|
reference (return of operator[]). 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 > >. |
|
STL-compatible definition of size_type Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >. |
|
STL-compatible definition of valuetype Reimplemented from TinyVectorBase< T, SIZE, T *, TinyVectorView< T, SIZE > >. |
|
Default constructor (pointer to wrapped data is NULL). |
|
Construct view for given data array |
|
Copy constructor (shallow copy). |
|
Construct view from other TinyVector. |
|
Copy the data of the rhs with cast. |
|
Copy the data (not the pointer) of the rhs. |
© Ullrich Köthe (koethe@informatik.uni-hamburg.de) |
html generated using doxygen and Python
|