SeekDAS S100M4X C++ SDK 0.2.0
seekdas.hpp: C++17 interface over the Rust SDK
Loading...
Searching...
No Matches
seekdas::ChannelMask Class Reference

A set of inputs (bit i = input i). More...

#include <seekdas.hpp>

Public Member Functions

constexpr ChannelMask () noexcept=default
 ChannelMask (Channel c) noexcept
 ChannelMask (std::initializer_list< Channel > cs) noexcept
std::uint32_t bits () const noexcept
bool contains (Channel c) const noexcept
bool empty () const noexcept
int size () const noexcept
std::vector< Channel > channels () const
ChannelMask & operator|= (ChannelMask o) noexcept

Static Public Member Functions

static ChannelMask from_bits (std::uint32_t bits)
static ChannelMask all () noexcept
static ChannelMask slot (int s)

Friends

ChannelMask operator| (ChannelMask a, ChannelMask b) noexcept
bool operator== (ChannelMask a, ChannelMask b) noexcept
bool operator!= (ChannelMask a, ChannelMask b) noexcept

Detailed Description

A set of inputs (bit i = input i).

Definition at line 137 of file seekdas.hpp.

Constructor & Destructor Documentation

◆ ChannelMask() [1/3]

seekdas::ChannelMask::ChannelMask ( )
constexprdefaultnoexcept

◆ ChannelMask() [2/3]

seekdas::ChannelMask::ChannelMask ( Channel c)
inlinenoexcept

Definition at line 140 of file seekdas.hpp.

◆ ChannelMask() [3/3]

seekdas::ChannelMask::ChannelMask ( std::initializer_list< Channel > cs)
inlinenoexcept

Definition at line 141 of file seekdas.hpp.

Member Function Documentation

◆ from_bits()

ChannelMask seekdas::ChannelMask::from_bits ( std::uint32_t bits)
inlinestatic

Definition at line 142 of file seekdas.hpp.

◆ all()

ChannelMask seekdas::ChannelMask::all ( )
inlinestaticnoexcept

Definition at line 148 of file seekdas.hpp.

◆ slot()

ChannelMask seekdas::ChannelMask::slot ( int s)
inlinestatic

Definition at line 149 of file seekdas.hpp.

◆ bits()

std::uint32_t seekdas::ChannelMask::bits ( ) const
inlinenoexcept

Definition at line 155 of file seekdas.hpp.

◆ contains()

bool seekdas::ChannelMask::contains ( Channel c) const
inlinenoexcept

Definition at line 156 of file seekdas.hpp.

◆ empty()

bool seekdas::ChannelMask::empty ( ) const
inlinenoexcept

Definition at line 157 of file seekdas.hpp.

◆ size()

int seekdas::ChannelMask::size ( ) const
inlinenoexcept

Definition at line 158 of file seekdas.hpp.

◆ channels()

std::vector< Channel > seekdas::ChannelMask::channels ( ) const
inline

Definition at line 159 of file seekdas.hpp.

◆ operator|=()

ChannelMask & seekdas::ChannelMask::operator|= ( ChannelMask o)
inlinenoexcept

Definition at line 164 of file seekdas.hpp.

◆ operator|

ChannelMask operator| ( ChannelMask a,
ChannelMask b )
friend

Definition at line 165 of file seekdas.hpp.

◆ operator==

bool operator== ( ChannelMask a,
ChannelMask b )
friend

Definition at line 166 of file seekdas.hpp.

◆ operator!=

bool operator!= ( ChannelMask a,
ChannelMask b )
friend

Definition at line 167 of file seekdas.hpp.


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