Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::SharedTimeLimit Class Reference

Detailed Description

Definition at line 327 of file time_limit.h.

#include <time_limit.h>

Inheritance diagram for operations_research::SharedTimeLimit:
operations_research::sat::ModelSharedTimeLimit

Public Member Functions

 SharedTimeLimit (TimeLimit *time_limit)
 ~SharedTimeLimit ()
bool LimitReached () const
void Stop ()
void UpdateLocalLimit (TimeLimit *local_limit)
void AdvanceDeterministicTime (double deterministic_duration)
double GetTimeLeft () const
double GetElapsedDeterministicTime () const
std::atomic< bool > * ExternalBooleanAsLimit () const

Constructor & Destructor Documentation

◆ SharedTimeLimit()

operations_research::SharedTimeLimit::SharedTimeLimit ( TimeLimit * time_limit)
inlineexplicit

Definition at line 329 of file time_limit.h.

◆ ~SharedTimeLimit()

operations_research::SharedTimeLimit::~SharedTimeLimit ( )
inline

Definition at line 339 of file time_limit.h.

Member Function Documentation

◆ AdvanceDeterministicTime()

void operations_research::SharedTimeLimit::AdvanceDeterministicTime ( double deterministic_duration)
inline

Definition at line 362 of file time_limit.h.

◆ ExternalBooleanAsLimit()

std::atomic< bool > * operations_research::SharedTimeLimit::ExternalBooleanAsLimit ( ) const
inline

Definition at line 377 of file time_limit.h.

◆ GetElapsedDeterministicTime()

double operations_research::SharedTimeLimit::GetElapsedDeterministicTime ( ) const
inline

Definition at line 372 of file time_limit.h.

◆ GetTimeLeft()

double operations_research::SharedTimeLimit::GetTimeLeft ( ) const
inline

Definition at line 367 of file time_limit.h.

◆ LimitReached()

bool operations_research::SharedTimeLimit::LimitReached ( ) const
inline

Definition at line 345 of file time_limit.h.

◆ Stop()

void operations_research::SharedTimeLimit::Stop ( )
inline

Definition at line 352 of file time_limit.h.

◆ UpdateLocalLimit()

void operations_research::SharedTimeLimit::UpdateLocalLimit ( TimeLimit * local_limit)
inline

Definition at line 357 of file time_limit.h.


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