Loading...
Searching...
No Matches
MyEventHandler.hpp
Go to the documentation of this file.
/* $Id$ */
// Copyright (C) 2004, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#ifndef MyEventHandler_H
#define MyEventHandler_H
#include "ClpEventHandler.hpp"
class MyEventHandler : public ClpEventHandler {
public:
virtual int event(Event whichEvent);
MyEventHandler();
MyEventHandler(ClpSimplex *model);
virtual ~MyEventHandler();
MyEventHandler(const MyEventHandler &rhs);
MyEventHandler &operator=(const MyEventHandler &rhs);
virtual ClpEventHandler *clone() const;
protected:
// data goes here
};
#endif
/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
*/
ClpEventHandler.hpp
ClpEventHandler::ClpEventHandler
ClpEventHandler(ClpSimplex *model=NULL)
Default constructor.
ClpEventHandler::Event
Event
enums for what sort of event.
Definition ClpEventHandler.hpp:34
ClpSimplex
This solves LPs using the simplex method.
Definition ClpSimplex.hpp:106
MyEventHandler::~MyEventHandler
virtual ~MyEventHandler()
Destructor.
MyEventHandler::MyEventHandler
MyEventHandler(const MyEventHandler &rhs)
The copy constructor.
MyEventHandler::operator=
MyEventHandler & operator=(const MyEventHandler &rhs)
Assignment.
MyEventHandler::event
virtual int event(Event whichEvent)
This can do whatever it likes.
MyEventHandler::clone
virtual ClpEventHandler * clone() const
Clone.
MyEventHandler::MyEventHandler
MyEventHandler(ClpSimplex *model)
Constructor with pointer to model (redundant as setEventHandler does).
MyEventHandler::MyEventHandler
MyEventHandler()
Default constructor.