57 explicit Timeouter(
bool t) : m_timeLimit(t ? 0 : -1) { }
75 m_timeLimit = t ? 0 : -1;
85 return m_timeLimit >= 0;
Timeouter & operator=(const Timeouter &t)
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
void timeLimit(bool t)
shorthand to turn timelimit off or on (with 0 seconds)
double timeLimit() const
returns the current time limit for the call
Timeouter(const Timeouter &t)
class for timeout funtionality.
Timeouter()
timeout is turned of by default
void timeLimit(double t)
sets the time limit for the call (in seconds); <0 means no limit.
Timeouter(bool t)
timeout is turned off (false) or on (true) (with 0 second)
Timeouter(double t)
timeout is set to the given value (seconds)
Basic declarations, included by all source files.
double m_timeLimit
Time limit for module calls (< 0 means no limit).
The namespace for all OGDF objects.
bool isTimeLimit() const
returns whether any time limit is set or not