ConicBundle
Public Member Functions | Protected Attributes | List of all members
ConicBundle::UQPModelPointer Class Reference

Interface in BundelSolver for generating the correct type of blocks for UQPSolver and for setting the final block in the solver. More...

#include <UQPModelBlock.hxx>

Inheritance diagram for ConicBundle::UQPModelPointer:
ConicBundle::QPModelDataPointer ConicBundle::CBout ConicBundle::UQPSolver

Public Member Functions

 UQPModelPointer (CBout *cb=0, int cbinc=-1)
 default constructor
 
virtual ~UQPModelPointer ()
 virtual destructor
 
void clear_model_data_ptr ()
 set the pointer to NULL
 
int set_model_data (QPModelDataObject *inbp)
 store the pointer to the object if it matches the required type for the QP solver, otherwise return a nonzero value as error; this is used in the models to return the local qp model data
 
QPSumModelDataObjectgenerate_summodel_data (BundleModel *bmp=0)
 returns a new QPSumModelDataObject, that has to be deleted by the caller. The argument is optional and allows to potentially generate different blocks for different derived BundleModel objects; this is used in SumModel to collect the models of the various oracles that are summed over
 
QPConeModelDataObjectgenerate_conemodel_data (BundleModel *bmp=0)
 returns a new QPConeModelDataObject suitable for the default conic BundleModel implementations; it has to be deleted by the caller. The argument is optional and allows to potentially generate specialized objects for special BundleModel objects
 
QPModelDataObjectget_model_data_ptr () const
 returns the pointer value
 
- Public Member Functions inherited from ConicBundle::QPModelDataPointer
 QPModelDataPointer (CBout *cb=0, int cbinc=-1)
 default constructor
 
virtual ~QPModelDataPointer ()
 virtual destructor
 
- Public Member Functions inherited from ConicBundle::CBout
virtual void set_out (std::ostream *out=0, int print_level=1)
 Specifies the output level (out==NULL: no output at all, out!=NULL and level=0: errors and warnings, level>0 increasingly detailed information) More...
 
virtual void set_cbout (const CBout *cb, int incr=-1)
 Specifies the output level relative to the given CBout class. More...
 
void clear_cbout ()
 reset to default settings (out=0,print_level=1)
 
 CBout (const CBout *cb=0, int incr=-1)
 calls set_cbout
 
 CBout (std::ostream *outp, int pl=1)
 initialize correspondingly
 
 CBout (const CBout &cb, int incr=0)
 copy constructor
 
virtual bool cb_out (int pl=-1) const
 Returns true if out!=0 and (pl<print_level), pl<0 should be used for WARNINGS and ERRORS only, pl==0 for usual output.
 
std::ostream & get_out () const
 If cb_out() returned true, this returns the output stream, but it will abort if called with out==0.
 
std::ostream * get_out_ptr () const
 returns the pointer to the output stream
 
int get_print_level () const
 returns the print_level
 
virtual int mfile_data (std::ostream &out) const
 writes problem data to the given outstream
 

Protected Attributes

UQPModelBlockmodel_block
 stores a pointer to the current starting block giving access to the cutting model(s) [it does not own or delete this object]
 

Detailed Description

Interface in BundelSolver for generating the correct type of blocks for UQPSolver and for setting the final block in the solver.

The objects generated here are the implementations QPSumModelBlock and QPConeModelBlock of the base class QPModelBlock. The ownership of the generated objects is passed over to the calling routine. Also the pointer to the initial block stored here only gives access to the block, but the object is not owned and may not be deleted here.


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