VectorSpace base class, corresponding to the Vector base class. More...
#include <IpVector.hpp>
Public Member Functions | |
Constructors/Destructors | |
VectorSpace (Index dim) | |
Constructor, given the dimension of all vectors generated by this VectorSpace. More... | |
virtual | ~VectorSpace () |
Destructor. More... | |
virtual Vector * | MakeNew () const =0 |
Pure virtual method for creating a new Vector of the corresponding type. More... | |
Index | Dim () const |
Accessor function for the dimension of the vectors of this type. More... | |
![]() | |
ReferencedObject () | |
virtual | ~ReferencedObject () |
Index | ReferenceCount () const |
void | AddRef (const Referencer *referencer) const |
void | ReleaseRef (const Referencer *referencer) const |
Default Compiler Generated Methods | |
(Hidden to avoid implicit creation/calling). These methods are not implemented and we do not want the compiler to implement them for us, so we declare them private and do not define them. This ensures that they will not be implicitly created/called. | |
const Index | dim_ |
Dimension of the vectors in this vector space. More... | |
VectorSpace () | |
Default constructor. More... | |
VectorSpace (const VectorSpace &) | |
Copy constructor. More... | |
VectorSpace & | operator= (const VectorSpace &) |
Default Assignment Operator. More... | |
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 458 of file IpVector.hpp.
|
inline |
Constructor, given the dimension of all vectors generated by this VectorSpace.
Definition at line 846 of file IpVector.hpp.
|
inlinevirtual |
Destructor.
Definition at line 471 of file IpVector.hpp.
|
private |
Default constructor.
|
private |
Copy constructor.
|
pure virtual |
Pure virtual method for creating a new Vector of the corresponding type.
Implemented in Ipopt::IteratesVectorSpace, Ipopt::DenseVectorSpace, and Ipopt::CompoundVectorSpace.
|
inline |
Accessor function for the dimension of the vectors of this type.
Definition at line 481 of file IpVector.hpp.
|
private |
Default Assignment Operator.
|
private |
Dimension of the vectors in this vector space.
Definition at line 511 of file IpVector.hpp.