QP/C++
Public Member Functions | Friends
QPSet8 Class Reference

Priority Set of up to 8 elements for building various schedulers, but also useful as a general set of up to 8 elements of any kind. More...

#include <qpset.h>

List of all members.

Public Member Functions

bool isEmpty (void) const
 the function evaluates to TRUE if the set is empty, which means that no active objects are ready to run.
bool notEmpty (void) const
 the function evaluates to TRUE if the set has elements, which means that some active objects are ready to run.
bool hasElement (uint8_t const n) const
 the function evaluates to TRUE if the priority set has the element n.
void insert (uint8_t const n)
 insert element n into the set, n = 1..8
void remove (uint8_t const n)
 remove element n from the set, n = 1..8
uint8_t findMax (void) const
 find the maximum element in the set,

Friends

class QPSet64

Detailed Description

Priority Set of up to 8 elements for building various schedulers, but also useful as a general set of up to 8 elements of any kind.

The priority set represents the set of active objects that are ready to run and need to be considered by scheduling processing. The set is capable of storing up to 8 priority levels.

Definition at line 101 of file qpset.h.


Member Function Documentation

uint8_t QPSet8::findMax ( void  ) const [inline]

find the maximum element in the set,

Note:
returns zero if the set is empty

Definition at line 140 of file qpset.h.


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