Provides indexed access to components (factors) of a Vector in ProductSpace. More...
#include <productspace.hh>
Public Member Functions | |
Components (const Vector< Scalar > &v) | |
~Components () | |
Destructor. | |
size_t | getSize () const |
return number of components | |
Vector< Scalar > & | operator[] (size_t i) |
return ith component; throw exception if index is out of bounds. | |
Vector< Scalar > const & | operator[] (size_t i) const |
ostream & | write (ostream &str) const |
Provides indexed access to components (factors) of a Vector in ProductSpace.
Set up to work properly for non-product vectors also - these have one component!
Definition at line 522 of file productspace.hh.
RVL::Components< Scalar >::Components | ( | const Vector< Scalar > & | v | ) |
Definition at line 541 of file productspace.hh.
RVL::Components< Scalar >::~Components | ( | ) |
size_t RVL::Components< Scalar >::getSize | ( | ) | const [virtual] |
return number of components
Implements RVL::Product< Vector< Scalar > >.
Definition at line 574 of file productspace.hh.
Vector<Scalar>& RVL::Components< Scalar >::operator[] | ( | size_t | i | ) | [virtual] |
return ith component; throw exception if index is out of bounds.
Implements RVL::Product< Vector< Scalar > >.
Definition at line 576 of file productspace.hh.
Vector<Scalar> const& RVL::Components< Scalar >::operator[] | ( | size_t | i | ) | const [virtual] |
Implements RVL::Product< Vector< Scalar > >.
Definition at line 584 of file productspace.hh.
ostream& RVL::Components< Scalar >::write | ( | ostream & | str | ) | const |
Definition at line 593 of file productspace.hh.