QP/C  7.3.3
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)
 

Static Private Member Functions

static void QPSet_update_ (QPSet const *const me, QPSet *const dis)
 
static bool QPSet_verify_ (QPSet const *const me, QPSet const *const dis)
 

Private Attributes

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

Detailed Description

Set of Active Objects of up to QF_MAX_ACTIVE elements.

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

Definition at line 658 of file qp.h.

Member Function Documentation

◆ QPSet_setEmpty()

QPSet::QPSet_setEmpty ( QPSet *const  me)
inlinestatic

Make the priority set empty

Definition at line 668 of file qp.h.

◆ QPSet_isEmpty()

QPSet::QPSet_isEmpty ( QPSet const *const  me)
inlinestatic

Find out whether the priority-set is empty.

Returns
'true' if the priority set is empty.

Definition at line 676 of file qp.h.

◆ QPSet_notEmpty()

QPSet::QPSet_notEmpty ( QPSet const *const  me)
inlinestatic

Find out whether the priority-set is NOT empty.

Returns
'true' if the priority set is NOT empty.

Definition at line 685 of file qp.h.

◆ QPSet_hasElement()

QPSet::QPSet_hasElement ( QPSet const *const  me,
uint_fast8_t const  n 
)
inlinestatic

Find out whether the priority-set has element n.

Returns
'true' if the priority set has the element n.

Definition at line 694 of file qp.h.

◆ QPSet_insert()

QPSet::QPSet_insert ( QPSet *const  me,
uint_fast8_t const  n 
)
inlinestatic

Insert element n into the priority-set (n = 1..QF_MAX_ACTIVE)

Definition at line 707 of file qp.h.

◆ QPSet_remove()

QPSet::QPSet_remove ( QPSet *const  me,
uint_fast8_t const  n 
)
inlinestatic

Remove element n from the priority-set (n = 1..QF_MAX_ACTIVE)

Definition at line 723 of file qp.h.

◆ QPSet_findMax()

QPSet::QPSet_findMax ( QPSet const *const  me)
inlinestatic

Find the maximum element in the set, returns zero if the set is empty.

Returns
The current maximum element n.

Definition at line 739 of file qp.h.

◆ QPSet_update_()

QPSet::QPSet_update_ ( QPSet const *const  me,
QPSet *const  dis 
)
inlinestaticprivate

Update the Duplicate Inverse Storage of QPSet (QP FuSa Subsystem)

Parameters
[in]mecurrent instance pointer (see Object Orientation)
[in,out]dispointer to the duplicate inverse storage

Definition at line 753 of file qp.h.

◆ QPSet_verify_()

QPSet::QPSet_verify_ ( QPSet const *const  me,
QPSet const *const  dis 
)
inlinestaticprivate

Verify the Duplicate Inverse Storage (QP FuSa Subsystem)

Parameters
[in]mecurrent instance pointer (see Object Orientation)
[in]dispointer to the duplicate inverse storage
Returns
'true' if this set matches the inverse copy and 'false' otherwise.

Definition at line 765 of file qp.h.

Member Data Documentation

◆ bits

QPSet::bits
private

Bitmask with a bit for each element

Definition at line 662 of file qp.h.


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