Simbody  3.6
SimTK::RowVectorView_< ELT > Class Template Reference

(Advanced) This class is identical to RowVector_ except that it has shallow (reference) copy and assignment semantics. More...

Public Member Functions

 RowVectorView_ (MatrixHelperRep< S > *hrep)
 
 RowVectorView_ (const RowVectorView_ &r)
 
RowVectorView_operator= (const RowVectorView_ &r)
 
 RowVectorView_ (const MatrixHelper< S > &h)
 
 RowVectorView_ (MatrixHelper< S > &h)
 
RowVectorView_operator= (const Base &b)
 
RowVectorView_operator= (const ELT &v)
 
template<class EE >
RowVectorView_operator= (const RowVectorBase< EE > &m)
 
template<class EE >
RowVectorView_operator+= (const RowVectorBase< EE > &m)
 
template<class EE >
RowVectorView_operator-= (const RowVectorBase< EE > &m)
 
RowVectorView_operator*= (const StdNumber &t)
 
RowVectorView_operator/= (const StdNumber &t)
 
RowVectorView_operator+= (const ELT &b)
 
RowVectorView_operator-= (const ELT &b)
 

Related Functions

(Note that these are not member functions.)

Matrix_<T> serialization and I/O

These methods are at namespace scope but are logically part of the Vector classes.

These deal with reading and writing Vectors from and to streams, which places an additional requirement on the element type T: the element must support the same operation you are trying to do on the Vector as a whole.

template<class E >
void writeUnformatted (std::ostream &o, const RowVectorView_< E > &v)
 Raw serialization of RowVectorView_<E>; same as VectorView_<E>. More...
 
template<class E >
bool readUnformatted (std::istream &in, RowVectorView_< E > &v)
 Read fixed-size RowVectorView from input stream. More...
 

Detailed Description

template<class ELT>
class SimTK::RowVectorView_< ELT >

(Advanced) This class is identical to RowVector_ except that it has shallow (reference) copy and assignment semantics.

Despite the name, this may be an owner if a RowVector_ is recast to a RowVectorView_. However, there are no owner constructors for RowVectorView_.

See also
RowVector_, RowVectorBase, MatrixView_

Constructor & Destructor Documentation

◆ RowVectorView_() [1/4]

template<class ELT >
SimTK::RowVectorView_< ELT >::RowVectorView_ ( MatrixHelperRep< S > *  hrep)
inlineexplicit

◆ RowVectorView_() [2/4]

template<class ELT >
SimTK::RowVectorView_< ELT >::RowVectorView_ ( const RowVectorView_< ELT > &  r)
inline

◆ RowVectorView_() [3/4]

template<class ELT >
SimTK::RowVectorView_< ELT >::RowVectorView_ ( const MatrixHelper< S > &  h)
inlineexplicit

◆ RowVectorView_() [4/4]

template<class ELT >
SimTK::RowVectorView_< ELT >::RowVectorView_ ( MatrixHelper< S > &  h)
inlineexplicit

Member Function Documentation

◆ operator=() [1/4]

template<class ELT >
RowVectorView_& SimTK::RowVectorView_< ELT >::operator= ( const RowVectorView_< ELT > &  r)
inline

◆ operator=() [2/4]

template<class ELT >
RowVectorView_& SimTK::RowVectorView_< ELT >::operator= ( const Base b)
inline

◆ operator=() [3/4]

template<class ELT >
RowVectorView_& SimTK::RowVectorView_< ELT >::operator= ( const ELT &  v)
inline

◆ operator=() [4/4]

template<class ELT >
template<class EE >
RowVectorView_& SimTK::RowVectorView_< ELT >::operator= ( const RowVectorBase< EE > &  m)
inline

◆ operator+=() [1/2]

template<class ELT >
template<class EE >
RowVectorView_& SimTK::RowVectorView_< ELT >::operator+= ( const RowVectorBase< EE > &  m)
inline

◆ operator-=() [1/2]

template<class ELT >
template<class EE >
RowVectorView_& SimTK::RowVectorView_< ELT >::operator-= ( const RowVectorBase< EE > &  m)
inline

◆ operator*=()

template<class ELT >
RowVectorView_& SimTK::RowVectorView_< ELT >::operator*= ( const StdNumber &  t)
inline

◆ operator/=()

template<class ELT >
RowVectorView_& SimTK::RowVectorView_< ELT >::operator/= ( const StdNumber &  t)
inline

◆ operator+=() [2/2]

template<class ELT >
RowVectorView_& SimTK::RowVectorView_< ELT >::operator+= ( const ELT &  b)
inline

◆ operator-=() [2/2]

template<class ELT >
RowVectorView_& SimTK::RowVectorView_< ELT >::operator-= ( const ELT &  b)
inline

Friends And Related Function Documentation

◆ writeUnformatted()

template<class E >
void writeUnformatted ( std::ostream &  o,
const RowVectorView_< E > &  v 
)
related

Raw serialization of RowVectorView_<E>; same as VectorView_<E>.

◆ readUnformatted()

template<class E >
bool readUnformatted ( std::istream &  in,
RowVectorView_< E > &  v 
)
related

Read fixed-size RowVectorView from input stream.

It is an error if there aren't enough elements.


The documentation for this class was generated from the following files: