List of all members
MyEventHandler Class Reference

This is so user can trap events and do useful stuff. More...

#include <MyEventHandler.hpp>

Inheritance diagram for MyEventHandler:
Inheritance graph
[legend]
Collaboration diagram for MyEventHandler:
Collaboration graph
[legend]

Public Member Functions

Overrides
virtual int event (Event whichEvent)
 This can do whatever it likes.
Constructors, destructor etc
 MyEventHandler ()
 Default constructor.
 MyEventHandler (ClpSimplex *model)
 Constructor with pointer to model (redundant as setEventHandler does)
virtual ~MyEventHandler ()
 Destructor.
 MyEventHandler (const MyEventHandler &rhs)
 The copy constructor.
MyEventHandleroperator= (const MyEventHandler &rhs)
 Assignment.
virtual ClpEventHandlerclone () const
 Clone.
- Public Member Functions inherited from ClpEventHandler
 ClpEventHandler (ClpSimplex *model=NULL)
 Default constructor.
virtual ~ClpEventHandler ()
 Destructor.
 ClpEventHandler (const ClpEventHandler &)
 Default constructor.
ClpEventHandleroperator= (const ClpEventHandler &)
 Default constructor.
void setSimplex (ClpSimplex *model)
 set model.
ClpSimplexsimplex () const
 Get model.

Additional Inherited Members

- Public Types inherited from ClpEventHandler
enum  Event {
  endOfIteration = 100, endOfFactorization, endOfValuesPass, node,
  treeStatus, solution, theta, pivotRow
}
 enums for what sort of event. More...
- Protected Attributes inherited from ClpEventHandler
ClpSimplexmodel_
 Pointer to simplex.

Detailed Description

This is so user can trap events and do useful stuff.

This is used in Clp/Test/unitTest.cpp

ClpSimplex model_ is available as well as anything else you care to pass in

Definition at line 16 of file MyEventHandler.hpp.

Constructor & Destructor Documentation

MyEventHandler::MyEventHandler ( )

Default constructor.

MyEventHandler::MyEventHandler ( ClpSimplex model)

Constructor with pointer to model (redundant as setEventHandler does)

virtual MyEventHandler::~MyEventHandler ( )
virtual

Destructor.

MyEventHandler::MyEventHandler ( const MyEventHandler rhs)

The copy constructor.

Member Function Documentation

virtual int MyEventHandler::event ( Event  whichEvent)
virtual

This can do whatever it likes.

If return code -1 then carries on if 0 sets ClpModel::status() to 5 (stopped by event) and will return to user. At present if <-1 carries on and if >0 acts as if 0 - this may change

Reimplemented from ClpEventHandler.

MyEventHandler& MyEventHandler::operator= ( const MyEventHandler rhs)

Assignment.

virtual ClpEventHandler* MyEventHandler::clone ( ) const
virtual

Clone.

Reimplemented from ClpEventHandler.


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