Interior-point-optimisation  1.0-1
Interior-pointoptimisationlibrary
ipo::detail::Var Class Referenceabstract

Abstract base class for Variable and Array;. More...

#include <Var.hpp>

Inheritance diagram for ipo::detail::Var:
Inheritance graph
Collaboration diagram for ipo::detail::Var:
Collaboration graph

Public Member Functions

 Var (ModelBase &model)
 Constructor needs a model so that variable can only be attached to one model. More...
 
virtual ~Var ()=0
 Virtual destructor to make class abstract. More...
 
 Var (Var &var)
 Copy constructor. More...
 
Varoperator= (Var &var)
 Copy assignment operator. More...
 
 Var (Var &&var)
 Move constructor. More...
 
Varoperator= (Var &&var)
 Move assignment operator. More...
 
ModelBase const *const getModel () const
 Get pointer to model. More...
 
virtual void summary (std::ostream &ostream=std::cout, std::string const &prefix="") const =0
 Create a summary of this object. More...
 

Protected Attributes

ModelBasemodel
 A Model to attach this to. More...
 

Detailed Description

Abstract base class for Variable and Array;.

Definition at line 49 of file Var.hpp.

Constructor & Destructor Documentation

Var::Var ( ModelBase model)

Constructor needs a model so that variable can only be attached to one model.

Parameters
modelThe Model

Definition at line 28 of file Var.cc.

Var::~Var ( )
pure virtual

Virtual destructor to make class abstract.

Definition at line 30 of file Var.cc.

ipo::detail::Var::Var ( Var var)
inline

Copy constructor.

Parameters
varThe Var to be copied

Definition at line 65 of file Var.hpp.

ipo::detail::Var::Var ( Var &&  var)
inline

Move constructor.

Parameters
varThe Var to be moved

Definition at line 77 of file Var.hpp.

Member Function Documentation

Var & Var::operator= ( Var var)

Copy assignment operator.

Parameters
varThe var to be copied
Returns
*this
Exceptions
IPOExceptionif models differ

Definition at line 40 of file Var.cc.

References IPOE, and model.

Var & Var::operator= ( Var &&  var)

Move assignment operator.

Parameters
varThe var to be moved
Returns
*this
Exceptions
IPOExceptionif models differ

Definition at line 33 of file Var.cc.

References IPOE, and model.

virtual void ipo::detail::Var::summary ( std::ostream &  ostream = std::cout,
std::string const &  prefix = "" 
) const
pure virtual

Create a summary of this object.

Parameters
ostreamThe stream to print to.
prefixThis is put in front of every row of output, for example for indentation

Implemented in ipo::Array, ipo::Objective, ipo::Constraint, and ipo::Variable.

Member Data Documentation


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