All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Member Functions | List of all members
paal::local_search::stop_condition_time_limit< duration, clock > Class Template Reference

This is custom StopCondition, it returns true after given time limit. More...

#include <custom_components.hpp>

Public Member Functions

 stop_condition_time_limit (duration d)
 Constructor. More...
 
template<typename... Args>
bool operator() (Args &&...)
 Checks if the time is up. More...
 
void restart ()
 resets the start point
 

Detailed Description

template<typename duration = std::chrono::seconds, typename clock = std::chrono::system_clock>
class paal::local_search::stop_condition_time_limit< duration, clock >

This is custom StopCondition, it returns true after given time limit.

Definition at line 179 of file custom_components.hpp.

Constructor & Destructor Documentation

template<typename duration = std::chrono::seconds, typename clock = std::chrono::system_clock>
paal::local_search::stop_condition_time_limit< duration, clock >::stop_condition_time_limit ( duration  d)
inline

Constructor.

Parameters
d- time to wait

Definition at line 186 of file custom_components.hpp.

Member Function Documentation

template<typename duration = std::chrono::seconds, typename clock = std::chrono::system_clock>
template<typename... Args>
bool paal::local_search::stop_condition_time_limit< duration, clock >::operator() ( Args &&  ...)
inline

Checks if the time is up.

Template Parameters
Args
Parameters
...
Returns
true if the time is up

Definition at line 197 of file custom_components.hpp.


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