iceoryx_doc
1.0.1
|
index structure that can contain logical values 0, ..., CycleLength-1 but also stores an internal cycle counter to be used in compare_exchange More...
#include <cyclic_index.hpp>
Public Types | |
using | value_t = ValueType |
Public Member Functions | |
CyclicIndex (ValueType value=0U) noexcept | |
CyclicIndex (ValueType index, ValueType cycle) noexcept | |
CyclicIndex (const CyclicIndex &)=default | |
CyclicIndex (CyclicIndex &&)=default | |
CyclicIndex & | operator= (const CyclicIndex &)=default |
CyclicIndex & | operator= (CyclicIndex &&)=default |
ValueType | getIndex () const noexcept |
ValueType | getCycle () const noexcept |
ValueType | getValue () const noexcept |
CyclicIndex | operator+ (const ValueType value) const noexcept |
CyclicIndex | next () const noexcept |
bool | isOneCycleBehind (const CyclicIndex &other) const noexcept |
int64_t | operator- (const CyclicIndex< CycleLength, ValueType > &rhs) const |
index structure that can contain logical values 0, ..., CycleLength-1 but also stores an internal cycle counter to be used in compare_exchange
int64_t iox::concurrent::CyclicIndex< CycleLength, ValueType >::operator- | ( | const CyclicIndex< CycleLength, ValueType > & | rhs | ) | const |