QP/C  8.0.2
Real-Time Embedded Framework
Loading...
Searching...
No Matches
QPSet Class Reference

Set of Active Objects of up to QF_MAX_ACTIVE elements. More...

#include "qp.h"

Static Public Member Functions

static void QPSet_setEmpty (QPSet *const me)
 
static bool QPSet_isEmpty (QPSet const *const me)
 
static bool QPSet_notEmpty (QPSet const *const me)
 
static bool QPSet_hasElement (QPSet const *const me, uint_fast8_t const n)
 
static void QPSet_insert (QPSet *const me, uint_fast8_t const n)
 
static void QPSet_remove (QPSet *const me, uint_fast8_t const n)
 
static uint_fast8_t QPSet_findMax (QPSet const *const me)
 

Private Attributes

QPSetBits bits [((QF_MAX_ACTIVE+(8U *sizeof(QPSetBits))) - 1U)/(8U *sizeof(QPSetBits))]
 Bitmask with a bit for each element.
 

Detailed Description

Set of Active Objects of up to QF_MAX_ACTIVE elements.

Details

QPSet represents the set of Active Objects in the priority order. The set is capable of storing up to QF_MAX_ACTIVE elements.

Backward Traceability

Definition at line 409 of file qp.h.

Member Function Documentation

◆ QPSet_setEmpty()

static void QPSet_setEmpty ( QPSet *const me)
inlinestatic

Definition at line 416 of file qp.h.

◆ QPSet_isEmpty()

static bool QPSet_isEmpty ( QPSet const *const me)
inlinestatic

Definition at line 424 of file qp.h.

◆ QPSet_notEmpty()

static bool QPSet_notEmpty ( QPSet const *const me)
inlinestatic

Definition at line 433 of file qp.h.

◆ QPSet_hasElement()

static bool QPSet_hasElement ( QPSet const *const me,
uint_fast8_t const n )
inlinestatic

Definition at line 442 of file qp.h.

◆ QPSet_insert()

static void QPSet_insert ( QPSet *const me,
uint_fast8_t const n )
inlinestatic

Definition at line 455 of file qp.h.

◆ QPSet_remove()

static void QPSet_remove ( QPSet *const me,
uint_fast8_t const n )
inlinestatic

Definition at line 471 of file qp.h.

◆ QPSet_findMax()

static uint_fast8_t QPSet_findMax ( QPSet const *const me)
inlinestatic

Definition at line 487 of file qp.h.

Member Data Documentation

◆ bits

QPSetBits bits[((QF_MAX_ACTIVE+(8U *sizeof(QPSetBits))) - 1U)/(8U *sizeof(QPSetBits))]
private

Bitmask with a bit for each element.

Definition at line 411 of file qp.h.


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