rad  3.0.0
Public Member Functions | List of all members
rad::StopSource Class Reference

#include <stopToken.hpp>

Public Member Functions

 StopSource () noexcept
 
 StopSource (StopSource const &) noexcept
 
StopSourceoperator= (StopSource const &)
 
 StopSource (StopSource &&) noexcept=default
 
 ~StopSource ()
 
bool operator== (StopSource const &rhs) const noexcept
 
bool operator!= (StopSource const &rhs) const noexcept
 
bool StopRequested () const noexcept
 
bool StopPossible () const noexcept
 
StopToken GetToken () const noexcept
 
void Swap (StopSource &other) noexcept
 
bool RequestStop () noexcept
 
 StopSource () noexcept
 
 StopSource (StopSource const &) noexcept
 
StopSourceoperator= (StopSource const &)
 
 StopSource (StopSource &&) noexcept=default
 
 ~StopSource ()
 
bool operator== (StopSource const &rhs) const noexcept
 
bool operator!= (StopSource const &rhs) const noexcept
 
bool StopRequested () const noexcept
 
bool StopPossible () const noexcept
 
StopToken GetToken () const noexcept
 
void Swap (StopSource &other) noexcept
 
bool RequestStop () noexcept
 
 StopSource () noexcept
 
 StopSource (StopSource const &) noexcept
 
StopSourceoperator= (StopSource const &)
 
 StopSource (StopSource &&) noexcept=default
 
 ~StopSource ()
 
bool operator== (StopSource const &rhs) const noexcept
 
bool operator!= (StopSource const &rhs) const noexcept
 
bool StopRequested () const noexcept
 
bool StopPossible () const noexcept
 
StopToken GetToken () const noexcept
 
void Swap (StopSource &other) noexcept
 
bool RequestStop () noexcept
 

Detailed Description

Class that can request associated StopTokens to stop.

Constructor & Destructor Documentation

◆ StopSource() [1/9]

rad::StopSource::StopSource ( )
noexcept

◆ StopSource() [2/9]

rad::StopSource::StopSource ( StopSource const &  rhs)
noexcept

◆ StopSource() [3/9]

rad::StopSource::StopSource ( StopSource &&  )
defaultnoexcept

◆ ~StopSource() [1/3]

rad::StopSource::~StopSource ( )

◆ StopSource() [4/9]

rad::StopSource::StopSource ( )
noexcept

◆ StopSource() [5/9]

rad::StopSource::StopSource ( StopSource const &  )
noexcept

◆ StopSource() [6/9]

rad::StopSource::StopSource ( StopSource &&  )
defaultnoexcept

◆ ~StopSource() [2/3]

rad::StopSource::~StopSource ( )

◆ StopSource() [7/9]

rad::StopSource::StopSource ( )
noexcept

◆ StopSource() [8/9]

rad::StopSource::StopSource ( StopSource const &  )
noexcept

◆ StopSource() [9/9]

rad::StopSource::StopSource ( StopSource &&  )
defaultnoexcept

◆ ~StopSource() [3/3]

rad::StopSource::~StopSource ( )

Member Function Documentation

◆ GetToken() [1/3]

StopToken rad::StopSource::GetToken ( ) const
noexcept

Get a stop token that can be stopped from this source.

◆ GetToken() [2/3]

StopToken rad::StopSource::GetToken ( ) const
noexcept

Get a stop token that can be stopped from this source.

◆ GetToken() [3/3]

StopToken rad::StopSource::GetToken ( ) const
noexcept

Get a stop token that can be stopped from this source.

◆ operator!=() [1/3]

bool rad::StopSource::operator!= ( StopSource const &  rhs) const
noexcept

◆ operator!=() [2/3]

bool rad::StopSource::operator!= ( StopSource const &  rhs) const
noexcept

◆ operator!=() [3/3]

bool rad::StopSource::operator!= ( StopSource const &  rhs) const
noexcept

◆ operator=() [1/3]

StopSource & rad::StopSource::operator= ( StopSource const &  rhs)

◆ operator=() [2/3]

StopSource& rad::StopSource::operator= ( StopSource const &  )

◆ operator=() [3/3]

StopSource& rad::StopSource::operator= ( StopSource const &  )

◆ operator==() [1/3]

bool rad::StopSource::operator== ( StopSource const &  rhs) const
noexcept
Returns
true if rhs and *this references the same shared state.
false otherwise.

◆ operator==() [2/3]

bool rad::StopSource::operator== ( StopSource const &  rhs) const
noexcept
Returns
true if rhs and *this references the same shared state.
false otherwise.

◆ operator==() [3/3]

bool rad::StopSource::operator== ( StopSource const &  rhs) const
noexcept
Returns
true if rhs and *this references the same shared state.
false otherwise.

◆ RequestStop() [1/3]

bool rad::StopSource::RequestStop ( )
noexcept

Issue a request to stop to StopTokens.

Returns
true if the StopSource made a stop request.
false if no StopTokens are active.

◆ RequestStop() [2/3]

bool rad::StopSource::RequestStop ( )
noexcept

Issue a request to stop to StopTokens.

Returns
true if the StopSource made a stop request.
false if no StopTokens are active.

◆ RequestStop() [3/3]

bool rad::StopSource::RequestStop ( )
noexcept

Issue a request to stop to StopTokens.

Returns
true if the StopSource made a stop request.
false if no StopTokens are active.

◆ StopPossible() [1/3]

bool rad::StopSource::StopPossible ( ) const
noexcept
Returns
true if there's at least 1 associated StopToken for this StopSource.
false otherwise.

◆ StopPossible() [2/3]

bool rad::StopSource::StopPossible ( ) const
noexcept
Returns
true if there's at least 1 associated StopToken for this StopSource.
false otherwise.

◆ StopPossible() [3/3]

bool rad::StopSource::StopPossible ( ) const
noexcept
Returns
true if there's at least 1 associated StopToken for this StopSource.
false otherwise.

◆ StopRequested() [1/3]

bool rad::StopSource::StopRequested ( ) const
noexcept
Returns
true if stop has been requested.

◆ StopRequested() [2/3]

bool rad::StopSource::StopRequested ( ) const
noexcept
Returns
true if stop has been requested.

◆ StopRequested() [3/3]

bool rad::StopSource::StopRequested ( ) const
noexcept
Returns
true if stop has been requested.

◆ Swap() [1/3]

void rad::StopSource::Swap ( StopSource other)
noexcept

Swap two StopSources.

◆ Swap() [2/3]

void rad::StopSource::Swap ( StopSource other)
noexcept

Swap two StopSources.

◆ Swap() [3/3]

void rad::StopSource::Swap ( StopSource other)
noexcept

Swap two StopSources.


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