![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
Object to be instantiated on stack that, when destroyed, will disable the custom handler so that it does not call the GScipMessageHandler.
It is used so that the GScipMessageHandler is not called after GScip::Solve() have returned, even if the handler has not been uninstalled and freed properly (when an error occurs).
Definition at line 71 of file gscip_message_handler.h.
#include <gscip_message_handler.h>
Public Member Functions | |
ScopedSCIPMessageHandlerDisabler (const MessageHandlerPtr &handler) | |
~ScopedSCIPMessageHandlerDisabler () |
|
explicit |
The input handler must be the result of MakeSCIPMessageHandler(). If nullptr (initially or after being reset to null), nothing will happen.
A reference is kept to the input so the caller must make sure this input MessageHandlerPtr will outlive this object.
Definition at line 146 of file gscip_message_handler.cc.
operations_research::internal::ScopedSCIPMessageHandlerDisabler::~ScopedSCIPMessageHandlerDisabler | ( | ) |
Definition at line 150 of file gscip_message_handler.cc.