Ipopt
3.12.12
|
This vectors space is the vector space for CompoundVector. More...
#include <IpCompoundVector.hpp>
Public Member Functions | |
virtual void | SetCompSpace (Index icomp, const VectorSpace &vec_space) |
Method for setting the individual component VectorSpaces. More... | |
SmartPtr< const VectorSpace > | GetCompSpace (Index icomp) const |
Method for obtaining an individual component VectorSpace. More... | |
Index | NCompSpaces () const |
Accessor method to obtain the number of components. More... | |
virtual CompoundVector * | MakeNewCompoundVector (bool create_new=true) const |
Method for creating a new vector of this specific type. More... | |
virtual Vector * | MakeNew () const |
Overloaded MakeNew method for the VectorSpace base class. More... | |
Constructors/Destructors. | |
CompoundVectorSpace (Index ncomp_spaces, Index total_dim) | |
Constructor, has to be given the number of components and the total dimension of all components combined. More... | |
~CompoundVectorSpace () | |
Destructor. More... | |
![]() | |
Index | Dim () const |
Accessor function for the dimension of the vectors of this type. More... | |
VectorSpace (Index dim) | |
Constructor, given the dimension of all vectors generated by this VectorSpace. More... | |
virtual | ~VectorSpace () |
Destructor. More... | |
![]() | |
ReferencedObject () | |
virtual | ~ReferencedObject () |
Index | ReferenceCount () const |
void | AddRef (const Referencer *referencer) const |
void | ReleaseRef (const Referencer *referencer) const |
Private Member Functions | |
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. | |
CompoundVectorSpace () | |
Default constructor. More... | |
CompoundVectorSpace (const CompoundVectorSpace &) | |
Copy Constructor. More... | |
CompoundVectorSpace & | operator= (const CompoundVectorSpace &) |
Overloaded Equals Operator. More... | |
Private Attributes | |
const Index | ncomp_spaces_ |
Number of components. More... | |
std::vector< SmartPtr< const VectorSpace > > | comp_spaces_ |
std::vector of vector spaces for the components More... | |
This vectors space is the vector space for CompoundVector.
Before a CompoundVector can be created, all components of this CompoundVectorSpace have to be set. When calling the constructor, the number of component has to be specified. The individual VectorSpaces can be set with the SetComp method.
Definition at line 239 of file IpCompoundVector.hpp.
Constructor, has to be given the number of components and the total dimension of all components combined.
|
inline |
Destructor.
Definition at line 249 of file IpCompoundVector.hpp.
|
private |
Default constructor.
|
private |
Copy Constructor.
|
virtual |
Method for setting the individual component VectorSpaces.
icomp | Number of the component to be set |
vec_space | VectorSpace for component icomp |
Reimplemented in Ipopt::IteratesVectorSpace.
SmartPtr<const VectorSpace> Ipopt::CompoundVectorSpace::GetCompSpace | ( | Index | icomp | ) | const |
Method for obtaining an individual component VectorSpace.
|
inline |
Accessor method to obtain the number of components.
Definition at line 262 of file IpCompoundVector.hpp.
|
inlinevirtual |
Method for creating a new vector of this specific type.
Reimplemented in Ipopt::IteratesVectorSpace.
Definition at line 268 of file IpCompoundVector.hpp.
|
inlinevirtual |
Overloaded MakeNew method for the VectorSpace base class.
Implements Ipopt::VectorSpace.
Reimplemented in Ipopt::IteratesVectorSpace.
Definition at line 275 of file IpCompoundVector.hpp.
|
private |
Overloaded Equals Operator.
|
private |
Number of components.
Definition at line 300 of file IpCompoundVector.hpp.
|
private |
std::vector of vector spaces for the components
Definition at line 303 of file IpCompoundVector.hpp.