VectorSpace Class Reference

#include <IpVector.hpp>

Inheritance diagram for VectorSpace:

ReferencedObject CompoundVectorSpace DenseVectorSpace IteratesVectorSpace

List of all members.


Detailed Description

VectorSpace base class, corresponding to the Vector base class.

For each Vector implementation, a corresponding VectorSpace has to be implemented. A VectorSpace is able to create new Vectors of a specific type. The VectorSpace should also store information that is common to all Vectors of that type. For example, the dimension of a Vector is stored in the VectorSpace base class.

Public Member Functions

virtual VectorMakeNew () const =0
 Pure virtual method for creating a new Vector of the corresponding type.
Index Dim () const
 Accessor function for the dimension of the vectors of this type.
Constructors/Destructors
 VectorSpace (Index dim)
 Constructor, given the dimension of all vectors generated by this VectorSpace.
virtual ~VectorSpace ()
 Destructor.


Constructor & Destructor Documentation

VectorSpace ( Index  dim  )  [inline]

Constructor, given the dimension of all vectors generated by this VectorSpace.

virtual ~VectorSpace (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual Vector* MakeNew (  )  const [pure virtual]

Index Dim (  )  const [inline]

Accessor function for the dimension of the vectors of this type.

Referenced by DenseVectorSpace::AllocateInternalStorage().


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

Generated on Fri Sep 26 07:44:27 2008 for SimTKcore by  doxygen 1.5.6