QP/C 6.9.1
QMActive Struct Reference

QMActive active object base class (based on QMsm implementation) More...

#include <qf.h>

Inheritance diagram for QMActive:
Inheritance graph
Collaboration diagram for QMActive:
Collaboration graph

Data Fields

QActive super
 inherits QActive More...
 

Protected Member Functions

void QMActive_ctor (QMActive *const me, QStateHandler initial)
 protected "constructor" of an QMActive active object. More...
 

Detailed Description

QMActive active object base class (based on QMsm implementation)

Description
QMActive represents an active object that uses the QMsm style state machine implementation strategy. This strategy requires the use of the QM modeling tool to generate state machine code automatically, but the code is faster than in the QHsm style implementation strategy and needs less run-time support (smaller event-processor).
Note
QMActive is not intended to be instantiated directly, but rather serves as the base class for derivation of active objects in the application.
See also
QActive
Usage
The following example illustrates how to derive an active object from QMActive. Please note that the QActive member super is defined as the first member of the derived struct (see Object Orientation).
typedef struct {
QMActive super; /* inherits QMActive */
QTimeEvt timeEvt; /* to timeout thining or eating */
uint8_t num; /* this philosopher's number */
} Philo;

Definition at line 400 of file qf.h.

Member Function Documentation

◆ QMActive_ctor()

void QMActive_ctor ( QMActive *const  me,
QStateHandler  initial 
)
protected

protected "constructor" of an QMActive active object.

Definition at line 67 of file qf_qmact.c.

Field Documentation

◆ super

QActive super

inherits QActive

Definition at line 401 of file qf.h.


The documentation for this struct was generated from the following file:
uint8_t
unsigned char uint8_t
exact-width 8-bit unsigned int
Definition: 16bit/stdint.h:29
QTimeEvt
Time Event class.
Definition: qf.h:480
QMActive::super
QActive super
inherits QActive
Definition: qf.h:401
QMActive
QMActive active object base class (based on QMsm implementation)
Definition: qf.h:400