QP/C++ 6.9.3
qf_qmact.cpp File Reference

QMActive::QMActive() and virtual functions. More...

#include "qf_port.hpp"
#include "qassert.h"
Include dependency graph for qf_qmact.cpp:

Go to the source code of this file.

Namespaces

 QP
 namespace associated with the QP/C++ framework
 

Macros

#define QF_QMACTIVE_TO_QMSM_CAST_(qact_)    reinterpret_cast<QMsm *>((qact_))
 Internal macro to cast a QP::QMActive pointer qact_ to QP::QMsm*. More...
 
#define QF_QMACTIVE_TO_QMSM_CONST_CAST_(qact_)    reinterpret_cast<QMsm const *>((qact_))
 Internal macro to cast a QP::QMActive pointer qact_ to QP::QMsm const *. More...
 

Detailed Description

QMActive::QMActive() and virtual functions.

Definition in file qf_qmact.cpp.

Macro Definition Documentation

◆ QF_QMACTIVE_TO_QMSM_CAST_

#define QF_QMACTIVE_TO_QMSM_CAST_ (   qact_)     reinterpret_cast<QMsm *>((qact_))

Internal macro to cast a QP::QMActive pointer qact_ to QP::QMsm*.

Note
Casting pointer to pointer pointer violates the MISRA-C++ 2008 Rule 5-2-7, cast from pointer to pointer. Additionally this cast violates the MISRA- C++ 2008 Rule 5-2-8 Unusual pointer cast (incompatible indirect types). Encapsulating these violations in a macro allows to selectively suppress this specific deviation.

Definition at line 49 of file qf_qmact.cpp.

◆ QF_QMACTIVE_TO_QMSM_CONST_CAST_

#define QF_QMACTIVE_TO_QMSM_CONST_CAST_ (   qact_)     reinterpret_cast<QMsm const *>((qact_))

Internal macro to cast a QP::QMActive pointer qact_ to QP::QMsm const *.

Definition at line 53 of file qf_qmact.cpp.