10 #ifndef CbcEventHandler_H
11 #define CbcEventHandler_H
218 (*eaMap_)[
event] = action;
std::map< CbcEvent, CbcAction > eaMapPair
Data type for event/action pairs.
virtual CbcAction event(CbcEvent whichEvent)
Return the action to be taken for an event.
void setAction(CbcEvent event, CbcAction action)
Set the action code associated with an event.
CbcAction dfltAction_
Default action.
Base class for Cbc event handling.
CbcAction
Action codes returned by the event handler.
virtual CbcEventHandler * clone() const
Clone (virtual) constructor.
eaMapPair * eaMap_
Pointer to a map that holds non-default event/action pairs.
CbcEventHandler & operator=(const CbcEventHandler &rhs)
Assignment.
const CbcModel * getModel() const
Get model.
CbcEventHandler(CbcModel *model=0)
Default constructor.
CbcModel * model_
Pointer to associated CbcModel.
virtual ~CbcEventHandler()
Destructor.
void setModel(CbcModel *model)
Set model.
void setDfltAction(CbcAction action)
Set the default action.
CbcEvent
Events known to cbc.
Simple Branch and bound class.