alpaqa
1.0.0a14
Nonconvex constrained optimization
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
i
j
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
i
j
l
m
n
o
p
r
s
t
u
w
Variables
Typedefs
a
c
d
f
i
l
m
p
r
s
t
u
v
Enumerations
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
û
ŷ
α
γ
δ
ε
λ
ρ
σ
τ
φ
ψ
ϵ
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
û
α
ρ
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
ŷ
α
γ
δ
ε
λ
ρ
σ
τ
φ
ψ
ϵ
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
v
w
Enumerations
Enumerator
a
f
i
s
u
Related Symbols
Files
File List
File Members
All
a
c
d
e
f
g
l
m
p
r
s
t
u
w
Functions
a
c
d
e
f
g
l
m
p
r
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Macros
a
c
e
p
u
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
src
alpaqa
include
alpaqa
util
atomic-stop-signal.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <atomic>
4
5
namespace
alpaqa
{
6
7
class
AtomicStopSignal
{
8
public
:
9
AtomicStopSignal
() =
default
;
10
AtomicStopSignal
(
const
AtomicStopSignal
&) :
AtomicStopSignal
() {}
11
AtomicStopSignal
&
operator=
(
const
AtomicStopSignal
&) =
delete
;
12
AtomicStopSignal
(
AtomicStopSignal
&&)
noexcept
:
AtomicStopSignal
() {}
13
AtomicStopSignal
&
operator=
(
AtomicStopSignal
&&)
noexcept
{
return
*
this
; }
14
15
void
stop
() {
stop_flag
.store(
true
, std::memory_order_seq_cst); }
16
[[
nodiscard
]]
bool
stop_requested
()
const
{
17
return
stop_flag
.load(std::memory_order_relaxed);
18
}
16
[[
nodiscard
]]
bool
stop_requested
()
const
{
…
}
19
20
private
:
21
std::atomic<bool>
stop_flag
{
false
};
22
};
7
class
AtomicStopSignal
{
…
};
23
24
}
// namespace alpaqa
alpaqa::AtomicStopSignal
Definition
atomic-stop-signal.hpp:7
alpaqa::AtomicStopSignal::operator=
AtomicStopSignal & operator=(AtomicStopSignal &&) noexcept
Definition
atomic-stop-signal.hpp:13
alpaqa::AtomicStopSignal::AtomicStopSignal
AtomicStopSignal(const AtomicStopSignal &)
Definition
atomic-stop-signal.hpp:10
alpaqa::AtomicStopSignal::AtomicStopSignal
AtomicStopSignal(AtomicStopSignal &&) noexcept
Definition
atomic-stop-signal.hpp:12
alpaqa::AtomicStopSignal::stop
void stop()
Definition
atomic-stop-signal.hpp:15
alpaqa::AtomicStopSignal::operator=
AtomicStopSignal & operator=(const AtomicStopSignal &)=delete
alpaqa::AtomicStopSignal::stop_requested
bool stop_requested() const
Definition
atomic-stop-signal.hpp:16
alpaqa::AtomicStopSignal::AtomicStopSignal
AtomicStopSignal()=default
alpaqa::AtomicStopSignal::stop_flag
std::atomic< bool > stop_flag
Definition
atomic-stop-signal.hpp:21
alpaqa
Definition
anderson.hpp:10
alpaqa::inf
constexpr const auto inf
Definition
config.hpp:85
Generated on Wed Nov 15 2023 for alpaqa by
1.9.8