class for timeout funtionality. More...
#include <ogdf/basic/Timeouter.h>
Public Member Functions | |
Timeouter () | |
timeout is turned of by default | |
Timeouter (bool t) | |
timeout is turned off (false) or on (true) (with 0 second) | |
Timeouter (const Timeouter &t) | |
Timeouter (double t) | |
timeout is set to the given value (seconds) | |
~Timeouter () | |
bool | isTimeLimit () const |
returns whether any time limit is set or not | |
Timeouter & | operator= (const Timeouter &t) |
double | timeLimit () const |
returns the current time limit for the call | |
void | timeLimit (bool t) |
shorthand to turn timelimit off or on (with 0 seconds) | |
void | timeLimit (double t) |
sets the time limit for the call (in seconds); <0 means no limit. | |
Protected Attributes | |
double | m_timeLimit |
Time limit for module calls (< 0 means no limit). | |
class for timeout funtionality.
Holds a double value of the timeout time (in seconds). Set the value to some negative value (e.g. -1) to turn the timeout off. Note that 0 seconds is a perfectly feasible timeout value!
Definition at line 46 of file Timeouter.h.
|
inline |
timeout is turned of by default
Definition at line 49 of file Timeouter.h.
|
inlineexplicit |
timeout is set to the given value (seconds)
Definition at line 52 of file Timeouter.h.
|
inlineexplicit |
timeout is turned off (false) or on (true) (with 0 second)
Definition at line 55 of file Timeouter.h.
Definition at line 57 of file Timeouter.h.
|
inline |
Definition at line 59 of file Timeouter.h.
|
inline |
returns whether any time limit is set or not
Definition at line 76 of file Timeouter.h.
Definition at line 61 of file Timeouter.h.
|
inline |
returns the current time limit for the call
Definition at line 73 of file Timeouter.h.
shorthand to turn timelimit off or on (with 0 seconds)
Definition at line 70 of file Timeouter.h.
sets the time limit for the call (in seconds); <0 means no limit.
Definition at line 67 of file Timeouter.h.
|
protected |
Time limit for module calls (< 0 means no limit).
Definition at line 79 of file Timeouter.h.