|
Bifrost SDK
Bifrost SDK documentation
|
A source that can be used to request a stop. More...
#include <StopToken.h>
Public Member Functions | |
| AMINO_CORE_SHARED_DECL | StopSource () |
| Default constructor (constructs a valid StopSource). More... | |
| AMINO_CORE_SHARED_DECL | StopSource (NoStopState_t) noexcept |
| Construct a non-stoppable StopSource. More... | |
| AMINO_CORE_SHARED_DECL | StopSource (StopSource &&o) noexcept |
| Move constructor. More... | |
| AMINO_CORE_SHARED_DECL | StopSource (StopSource const &o) |
| Copy constructor. More... | |
| AMINO_CORE_SHARED_DECL | ~StopSource () |
| Destructor. More... | |
| AMINO_CORE_SHARED_DECL StopSource & | operator= (StopSource &&o) noexcept |
| Move assignment operator. More... | |
| AMINO_CORE_SHARED_DECL StopSource & | operator= (StopSource const &o) |
| Copy assignment operator. More... | |
| AMINO_CORE_SHARED_DECL StopToken | getToken () const noexcept |
| Get a StopToken that can be used to check if a stop has been requested from this StopSource. More... | |
| AMINO_CORE_SHARED_DECL void | requestStop () noexcept |
| Request a stop. More... | |
| AMINO_CORE_SHARED_DECL bool | stopRequested () const |
| Check if a stop has been requested for this StopSource. More... | |
| AMINO_CORE_SHARED_DECL bool | stopPossible () const |
| Check if a stop can be requested for this StopSource. More... | |
Friends | |
| bool | operator== (StopSource const &lhs, StopSource const &rhs) |
| Equality operators. More... | |
| bool | operator!= (StopSource const &lhs, StopSource const &rhs) |
| Equality operators. More... | |
A source that can be used to request a stop.
std::stop_source. Definition at line 107 of file StopToken.h.
| AMINO_CORE_SHARED_DECL Amino::StopSource::StopSource | ( | ) |
Default constructor (constructs a valid StopSource).
|
explicitnoexcept |
Construct a non-stoppable StopSource.
false.
|
noexcept |
Move constructor.
| AMINO_CORE_SHARED_DECL Amino::StopSource::StopSource | ( | StopSource const & | o | ) |
Copy constructor.
| AMINO_CORE_SHARED_DECL Amino::StopSource::~StopSource | ( | ) |
Destructor.
|
noexcept |
Get a StopToken that can be used to check if a stop has been requested from this StopSource.
|
noexcept |
Move assignment operator.
| AMINO_CORE_SHARED_DECL StopSource & Amino::StopSource::operator= | ( | StopSource const & | o | ) |
Copy assignment operator.
|
noexcept |
Request a stop.
| AMINO_CORE_SHARED_DECL bool Amino::StopSource::stopPossible | ( | ) | const |
Check if a stop can be requested for this StopSource.
Returns false if the StopSource was constructed with a NoStopState_t, true otherwise.
| AMINO_CORE_SHARED_DECL bool Amino::StopSource::stopRequested | ( | ) | const |
Check if a stop has been requested for this StopSource.
|
friend |
Equality operators.
Definition at line 137 of file StopToken.h.
|
friend |
Equality operators.
Definition at line 134 of file StopToken.h.