44 #define QF_MAX_ACTIVE 32U
49 #if (QF_MAX_ACTIVE < 1U) || (64U < QF_MAX_ACTIVE)
50 #error "QF_MAX_ACTIVE out of range. Valid range is 1U..64U"
51 #elif (QF_MAX_ACTIVE <= 8U)
53 #elif (QF_MAX_ACTIVE <= 16U)
67 #if (QF_MAX_ACTIVE <= 32)
97 return (
m_bits & (1U << (n - 1U))) != 0U;
102 m_bits |= (1U << (n - 1U));
142 bool isEmpty(
void)
const noexcept {
148 bool notEmpty(
void)
const noexcept {
unsigned int uint16_t
exact-width 16-bit unsigned int
unsigned long int uint32_t
exact-width 32-bit unsigned int
unsigned char uint8_t
exact-width 8-bit unsigned int
unsigned int uint_fast8_t
fast at-least 8-bit unsigned int
namespace associated with the QP/C++ framework
std::uint_fast8_t QF_LOG2(QPSetBits x) noexcept
Priority Set of up to 32 elements */.
bool isEmpty(void) const noexcept
Evaluates to true if the priority set is empty.
bool hasElement(std::uint_fast8_t const n) const noexcept
the function evaluates to TRUE if the priority set has the element n.
void insert(std::uint_fast8_t const n) noexcept
insert element n into the set, n = 1..QF_MAX_ACTIVE
void rmove(std::uint_fast8_t const n) noexcept
remove element n from the set, n = 1..QF_MAX_ACTIVE
QPSetBits volatile m_bits
bitmask with a bit for each element
bool notEmpty(void) const noexcept
Evaluates to true if the priority set is not empty.
void setEmpty(void) noexcept
Makes the priority set me_ empty.
std::uint_fast8_t findMax(void) const noexcept