Clp 1.17.10
Loading...
Searching...
No Matches
MyEventHandler.hpp
Go to the documentation of this file.
1/* $Id$ */
2// Copyright (C) 2004, International Business Machines
3// Corporation and others. All Rights Reserved.
4// This code is licensed under the terms of the Eclipse Public License (EPL).
5
6#ifndef MyEventHandler_H
7#define MyEventHandler_H
8
9#include "ClpEventHandler.hpp"
10
17
19
20public:
23 virtual int event(Event whichEvent);
25
28
33 virtual ~MyEventHandler();
39 virtual ClpEventHandler *clone() const;
41
42protected:
43 // data goes here
44};
45
46#endif
47
48/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
49*/
ClpEventHandler(ClpSimplex *model=NULL)
Default constructor.
Event
enums for what sort of event.
This solves LPs using the simplex method.
virtual ~MyEventHandler()
Destructor.
MyEventHandler(const MyEventHandler &rhs)
The copy constructor.
MyEventHandler & operator=(const MyEventHandler &rhs)
Assignment.
virtual int event(Event whichEvent)
This can do whatever it likes.
virtual ClpEventHandler * clone() const
Clone.
MyEventHandler(ClpSimplex *model)
Constructor with pointer to model (redundant as setEventHandler does)
MyEventHandler()
Default constructor.