Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::DelayedCallMethod1< T, P > Class Template Reference

Low-priority demon proxy to a method on the constraint with one argument. More...

#include <constraint_solveri.h>

Inheritance diagram for operations_research::DelayedCallMethod1< T, P >:
operations_research::Demon operations_research::BaseObject

Public Member Functions

 DelayedCallMethod1 (T *const ct, void(T::*method)(P), const std::string &name, P param1)
 
 ~DelayedCallMethod1 () override
 
void Run (Solver *const s) override
 This is the main callback of the demon.
 
Solver::DemonPriority priority () const override
 ---------------— Demon class -------------—
 
std::string DebugString () const override
 
- Public Member Functions inherited from operations_research::Demon
 Demon ()
 
 Demon (const Demon &)=delete
 This type is neither copyable nor movable.
 
Demonoperator= (const Demon &)=delete
 
 ~Demon () override
 
std::string DebugString () const override
 
void inhibit (Solver *s)
 
void desinhibit (Solver *s)
 This method un-inhibits the demon that was previously inhibited.
 
- Public Member Functions inherited from operations_research::BaseObject
 BaseObject ()
 
 BaseObject (const BaseObject &)=delete
 This type is neither copyable nor movable.
 
BaseObjectoperator= (const BaseObject &)=delete
 
virtual ~BaseObject ()
 

Detailed Description

template<class T, class P>
class operations_research::DelayedCallMethod1< T, P >

Low-priority demon proxy to a method on the constraint with one argument.

Definition at line 701 of file constraint_solveri.h.

Constructor & Destructor Documentation

◆ DelayedCallMethod1()

template<class T , class P >
operations_research::DelayedCallMethod1< T, P >::DelayedCallMethod1 ( T *const ct,
void(T::*)(P) method,
const std::string & name,
P param1 )
inline

Definition at line 703 of file constraint_solveri.h.

◆ ~DelayedCallMethod1()

template<class T , class P >
operations_research::DelayedCallMethod1< T, P >::~DelayedCallMethod1 ( )
inlineoverride

Definition at line 707 of file constraint_solveri.h.

Member Function Documentation

◆ DebugString()

template<class T , class P >
std::string operations_research::DelayedCallMethod1< T, P >::DebugString ( ) const
inlineoverridevirtual

Reimplemented from operations_research::BaseObject.

Definition at line 715 of file constraint_solveri.h.

◆ priority()

template<class T , class P >
Solver::DemonPriority operations_research::DelayedCallMethod1< T, P >::priority ( ) const
inlineoverridevirtual

---------------— Demon class -------------—

This method returns the priority of the demon. Usually a demon is fast, slow or normal. Immediate demons are reserved for internal use to maintain variables.

Reimplemented from operations_research::Demon.

Definition at line 711 of file constraint_solveri.h.

◆ Run()

template<class T , class P >
void operations_research::DelayedCallMethod1< T, P >::Run ( Solver *const s)
inlineoverridevirtual

This is the main callback of the demon.

Implements operations_research::Demon.

Definition at line 709 of file constraint_solveri.h.


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