Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

base::vector< T > Class Template Reference

Collaboration diagram for base::vector< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T value_type
typedef T & reference
typedef const T & const_reference
typedef SInt difference_type
typedef Int size_type
typedef array< T >::iterator iterator
typedef array< T >::const_iterator const_iterator

Public Member Functions

 vector ()
 vector (size_type n)
 vector (const vector &v)
 vector (size_type n, const_reference p)
 ~vector ()
bool operator== (const vector &v) const
bool operator!= (const vector &v) const
bool equals (const vector &v, value_type eps=value_type(consts::epsilon)) const
reference operator[] (size_type i)
const_reference operator[] (size_type i) const
reference operator() (size_type i)
const_reference operator() (size_type i) const
size_type size () const
void clear ()
void resize (size_type n)
vectoroperator= (const vector &v)
void reset (const vector &v)
vectoroperator+= (const vector &v)
vectoroperator-= (const vector &v)
vectoroperator *= (const value_type &t)
vectoroperator/= (const value_type &t)
vectornegate ()
value_type norm () const
value_type magnitude () const
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const

Protected Attributes

array< T > a

Friends

class matrix

template<typename T>
class base::vector< T >


Member Typedef Documentation

template<typename T>
typedef array<T>::const_iterator base::vector< T >::const_iterator
 

Definition at line 416 of file Vector.

template<typename T>
typedef const T& base::vector< T >::const_reference
 

Definition at line 365 of file Vector.

template<typename T>
typedef SInt base::vector< T >::difference_type
 

Definition at line 366 of file Vector.

template<typename T>
typedef array<T>::iterator base::vector< T >::iterator
 

Definition at line 415 of file Vector.

template<typename T>
typedef T& base::vector< T >::reference
 

Definition at line 364 of file Vector.

template<typename T>
typedef Int base::vector< T >::size_type
 

Definition at line 367 of file Vector.

template<typename T>
typedef T base::vector< T >::value_type
 

Definition at line 363 of file Vector.


Constructor & Destructor Documentation

template<typename T>
base::vector< T >::vector  )  [inline]
 

Definition at line 369 of file Vector.

template<typename T>
base::vector< T >::vector size_type  n  )  [inline]
 

Definition at line 370 of file Vector.

template<typename T>
base::vector< T >::vector const vector< T > &  v  )  [inline]
 

Definition at line 371 of file Vector.

template<typename T>
base::vector< T >::vector size_type  n,
const_reference  p
[inline]
 

Definition at line 372 of file Vector.

template<typename T>
base::vector< T >::~vector  )  [inline]
 

Definition at line 373 of file Vector.


Member Function Documentation

template<typename T>
const_iterator base::vector< T >::begin  )  const [inline]
 

Definition at line 419 of file Vector.

References base::ConstVectorRange, and base::VectorRange.

template<typename T>
iterator base::vector< T >::begin  )  [inline]
 

Definition at line 418 of file Vector.

template<typename T>
void base::vector< T >::clear  )  [inline]
 

Definition at line 396 of file Vector.

template<typename T>
const_iterator base::vector< T >::end  )  const [inline]
 

Definition at line 422 of file Vector.

References base::ConstIVectorRange.

template<typename T>
iterator base::vector< T >::end  )  [inline]
 

Definition at line 421 of file Vector.

References base::IVectorRange.

template<typename T>
bool base::vector< T >::equals const vector< T > &  v,
value_type  eps = value_type(consts::epsilon)
const [inline]
 

Definition at line 379 of file Vector.

template<typename T>
value_type base::vector< T >::magnitude  )  const [inline]
 

Definition at line 412 of file Vector.

template<typename T>
vector& base::vector< T >::negate  )  [inline]
 

Definition at line 407 of file Vector.

References base::Int.

template<typename T>
value_type base::vector< T >::norm  )  const [inline]
 

Definition at line 409 of file Vector.

template<typename T>
vector& base::vector< T >::operator *= const value_type t  )  [inline]
 

Definition at line 405 of file Vector.

template<typename T>
bool base::vector< T >::operator!= const vector< T > &  v  )  const [inline]
 

Definition at line 377 of file Vector.

template<typename T>
const_reference base::vector< T >::operator() size_type  i  )  const [inline]
 

Definition at line 392 of file Vector.

References base::IVector, and base::Vector.

template<typename T>
reference base::vector< T >::operator() size_type  i  )  [inline]
 

Definition at line 391 of file Vector.

template<typename T>
vector& base::vector< T >::operator+= const vector< T > &  v  )  [inline]
 

Definition at line 403 of file Vector.

template<typename T>
vector& base::vector< T >::operator-= const vector< T > &  v  )  [inline]
 

Definition at line 404 of file Vector.

References base::Int.

template<typename T>
vector& base::vector< T >::operator/= const value_type t  )  [inline]
 

Definition at line 406 of file Vector.

template<typename T>
vector& base::vector< T >::operator= const vector< T > &  v  )  [inline]
 

Definition at line 400 of file Vector.

template<typename T>
bool base::vector< T >::operator== const vector< T > &  v  )  const [inline]
 

Definition at line 376 of file Vector.

template<typename T>
const_reference base::vector< T >::operator[] size_type  i  )  const [inline]
 

Definition at line 389 of file Vector.

template<typename T>
reference base::vector< T >::operator[] size_type  i  )  [inline]
 

Definition at line 388 of file Vector.

template<typename T>
void base::vector< T >::reset const vector< T > &  v  )  [inline]
 

Definition at line 401 of file Vector.

References base::Int.

Referenced by robot::control::kinematics::BetaFormConstraints::setAlphaConstraint(), and robot::control::kinematics::ReferenceOpVectorFormObjective::setdZr().

template<typename T>
void base::vector< T >::resize size_type  n  )  [inline]
 

Definition at line 398 of file Vector.

Referenced by robot::TestRobot::ToolControlInterface::getInputs(), robot::sim::SimulatedRobot::ToolControlInterface::getInputs(), and base::Orient::operator=().

template<typename T>
size_type base::vector< T >::size  )  const [inline]
 

Definition at line 394 of file Vector.

Referenced by robot::control::kinematics::BetaFormConstraints::addConstraint(), base::VariableExpression::cacheValue(), robot::control::kinematics::ReferenceOpVectorFormObjective::evaluate(), robot::control::kinematics::BetaFormConstraints::evaluate(), robot::TestRobot::ToolControlInterface::getInputs(), base::operator *(), base::operator<<(), robot::TestRobot::ManipulatorControlInterface::setOutputs(), robot::BasicControlInterface::setOutputs(), and base::matrixrange< T >::transpose().


Friends And Related Function Documentation

template<typename T>
friend class matrix [friend]
 

Definition at line 424 of file Vector.


Member Data Documentation

template<typename T>
array<T> base::vector< T >::a [protected]
 

Definition at line 427 of file Vector.


The documentation for this class was generated from the following file:
Generated on Thu Jul 29 16:39:32 2004 for OpenSim by doxygen 1.3.6