QP/C++ 6.9.3
QEvt Struct Reference

QEvt base class. More...

#include <qep.hpp>

Inheritance diagram for QEvt:
Inheritance graph
Collaboration diagram for QEvt:
Collaboration graph

Data Fields

QSignal sig
 signal of the event instance More...
 
std::uint8_t poolId_
 pool ID (0 for static event) More...
 
std::uint8_t volatile refCtr_
 reference counter More...
 

Detailed Description

QEvt base class.

Description
QEvt represents events without parameters and serves as the base class for derivation of events with parameters.
Usage
The following example illustrates how to add an event parameter by inheriting from the QEvt class.
struct QCalcEvt : public QEvt { // derived from QEvt
uint8_t keyId; // ID of the key depressed
};
unsigned char uint8_t
exact-width 8-bit unsigned int
Definition: 16bit/stdint.h:29

Definition at line 209 of file qep.hpp.

Field Documentation

◆ sig

QSignal sig

signal of the event instance

Definition at line 210 of file qep.hpp.

◆ poolId_

std::uint8_t poolId_

pool ID (0 for static event)

Definition at line 211 of file qep.hpp.

◆ refCtr_

std::uint8_t volatile refCtr_

reference counter

Definition at line 212 of file qep.hpp.


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