VectorSpace base class, corresponding to the Vector base class. More...
#include <IpVector.hpp>


Public Member Functions | |
| virtual Vector * | MakeNew () 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. | |
Private Member Functions | |
Default Compiler Generated Methods | |
| VectorSpace () | |
| default constructor | |
| VectorSpace (const VectorSpace &) | |
| Copy constructor. | |
| VectorSpace & | operator= (const VectorSpace &) |
| Overloaded Equals Operator. | |
Private Attributes | |
| const Index | dim_ |
| Dimension of the vectors in this vector space. | |
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.
Definition at line 355 of file IpVector.hpp.
| Ipopt::VectorSpace::VectorSpace | ( | Index | dim | ) | [inline] |
Constructor, given the dimension of all vectors generated by this VectorSpace.
Definition at line 716 of file IpVector.hpp.
| virtual Ipopt::VectorSpace::~VectorSpace | ( | ) | [inline, virtual] |
Destructor.
Definition at line 366 of file IpVector.hpp.
| Ipopt::VectorSpace::VectorSpace | ( | ) | [private] |
default constructor
| Ipopt::VectorSpace::VectorSpace | ( | const VectorSpace & | ) | [private] |
Copy constructor.
| virtual Vector* Ipopt::VectorSpace::MakeNew | ( | ) | const [pure virtual] |
Pure virtual method for creating a new Vector of the corresponding type.
Implemented in Ipopt::IteratesVectorSpace, Ipopt::CompoundVectorSpace, and Ipopt::DenseVectorSpace.
| Index Ipopt::VectorSpace::Dim | ( | ) | const [inline] |
Accessor function for the dimension of the vectors of this type.
Definition at line 376 of file IpVector.hpp.
| VectorSpace& Ipopt::VectorSpace::operator= | ( | const VectorSpace & | ) | [private] |
Overloaded Equals Operator.
Reimplemented in Ipopt::IteratesVectorSpace, and Ipopt::CompoundVectorSpace.
const Index Ipopt::VectorSpace::dim_ [private] |
Dimension of the vectors in this vector space.
Definition at line 401 of file IpVector.hpp.
1.6.1