Loading...
Searching...
No Matches
gpr::linalg::ScopedLp64IndexLimit Class Reference

Lowers the routing limit for the lifetime of the object (tests only). More...

#include <gpr/linalg/Lp64Limits.h>

Public Member Functions

 ScopedLp64IndexLimit (std::int64_t limit) noexcept
 ~ScopedLp64IndexLimit ()
 ScopedLp64IndexLimit (const ScopedLp64IndexLimit &)=delete
ScopedLp64IndexLimit & operator= (const ScopedLp64IndexLimit &)=delete

Detailed Description

Lowers the routing limit for the lifetime of the object (tests only).

Definition at line 126 of file Lp64Limits.h.

Constructor & Destructor Documentation

◆ ScopedLp64IndexLimit() [1/2]

gpr::linalg::ScopedLp64IndexLimit::ScopedLp64IndexLimit ( std::int64_t limit)
inlineexplicitnoexcept

Definition at line 128 of file Lp64Limits.h.

129 : previous_(lp64IndexLimitStore().exchange(limit))
130 {
131 }
std::atomic< std::int64_t > & lp64IndexLimitStore() noexcept
Definition Lp64Limits.h:114

◆ ~ScopedLp64IndexLimit()

gpr::linalg::ScopedLp64IndexLimit::~ScopedLp64IndexLimit ( )
inline

Definition at line 132 of file Lp64Limits.h.

133 {
134 lp64IndexLimitStore().store(previous_);
135 }

◆ ScopedLp64IndexLimit() [2/2]

gpr::linalg::ScopedLp64IndexLimit::ScopedLp64IndexLimit ( const ScopedLp64IndexLimit & )
delete

Member Function Documentation

◆ operator=()

ScopedLp64IndexLimit & gpr::linalg::ScopedLp64IndexLimit::operator= ( const ScopedLp64IndexLimit & )
delete

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