LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::util::TimeoutScope Class Reference

The RAII frame timeout_arm returns. More...

#include <line/util/line_timeout.h>

Public Member Functions

 TimeoutScope ()
 TimeoutScope (std::size_t depth)
 TimeoutScope (TimeoutScope &&o) noexcept
TimeoutScope & operator= (TimeoutScope &&o) noexcept
 TimeoutScope (const TimeoutScope &)=delete
TimeoutScope & operator= (const TimeoutScope &)=delete
 ~TimeoutScope ()
bool active () const
 Whether this scope pushed a frame.
void pop ()
 Pop the frame now (idempotent).

Detailed Description

The RAII frame timeout_arm returns.

Movable, not copyable; an inert scope (nothing was pushed) pops nothing.

Definition at line 170 of file line_timeout.h.

Constructor & Destructor Documentation

◆ TimeoutScope() [1/4]

line::util::TimeoutScope::TimeoutScope ( )
inline

◆ TimeoutScope() [2/4]

line::util::TimeoutScope::TimeoutScope ( std::size_t depth)
inlineexplicit

Definition at line 173 of file line_timeout.h.

◆ TimeoutScope() [3/4]

line::util::TimeoutScope::TimeoutScope ( TimeoutScope && o)
inlinenoexcept

Definition at line 174 of file line_timeout.h.

References TimeoutScope().

◆ TimeoutScope() [4/4]

line::util::TimeoutScope::TimeoutScope ( const TimeoutScope & )
delete

References TimeoutScope().

◆ ~TimeoutScope()

line::util::TimeoutScope::~TimeoutScope ( )
inline

Definition at line 185 of file line_timeout.h.

References pop().

Member Function Documentation

◆ active()

bool line::util::TimeoutScope::active ( ) const
inline

Whether this scope pushed a frame.

Definition at line 188 of file line_timeout.h.

Referenced by line::NetworkSolver::avg_table().

◆ operator=() [1/2]

TimeoutScope & line::util::TimeoutScope::operator= ( const TimeoutScope & )
delete

References TimeoutScope().

◆ operator=() [2/2]

TimeoutScope & line::util::TimeoutScope::operator= ( TimeoutScope && o)
inlinenoexcept

Definition at line 175 of file line_timeout.h.

References pop(), and TimeoutScope().

◆ pop()

void line::util::TimeoutScope::pop ( )
inline

Pop the frame now (idempotent).

A tripped frame, or any tripped frame above it that an outer pop is unwinding, trips the parent.

Definition at line 194 of file line_timeout.h.

References line::util::timeout_detail::stack().

Referenced by operator=(), and ~TimeoutScope().


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