QP/C++  8.0.0
Real-Time Embedded Framework
Loading...
Searching...
No Matches
qp_pkg.hpp File Reference

Internal (package scope) QP/C++ interface. More...

Go to the source code of this file.

Classes

class  QP::QF::Attr
 Private attributes of the QF framework. More...
 

Namespaces

namespace  QP
 QP/C++ framework.
 
namespace  QP::QF
 QF Active Object Framework.
 

Macros

#define QF_CONST_CAST_(type_, ptr_)   const_cast<type_>(ptr_)
 
#define Q_PTR2UINT_CAST_(ptr_)   (reinterpret_cast<std::uintptr_t>(ptr_))
 Internal helper macro to cast pointers to integers.
 
#define QF_PTR_RANGE_(x_, min_, max_)   (((min_) <= (x_)) && ((x_) <= (max_)))
 

Functions

void QP::QF::bzero_ (void *const start, std::uint_fast16_t const len) noexcept
 
void QP::QEvt_refCtr_inc_ (QEvt const *const e) noexcept
 
void QP::QEvt_refCtr_dec_ (QEvt const *const e) noexcept
 Decrement the refCtr of a const event (requires casting const away)
 

Variables

QF::Attr QP::QF::priv_
 
constexpr std::uint8_t QP::QTE_FLAG_IS_LINKED {1U << 7U}
 
constexpr std::uint8_t QP::QTE_FLAG_WAS_DISARMED {1U << 6U}
 

Detailed Description

Internal (package scope) QP/C++ interface.

Backward Traceability

Definition in file qp_pkg.hpp.

Macro Definition Documentation

◆ QF_CONST_CAST_

#define QF_CONST_CAST_ ( type_,
ptr_ )   const_cast<type_>(ptr_)

Definition at line 71 of file qp_pkg.hpp.

◆ Q_PTR2UINT_CAST_

#define Q_PTR2UINT_CAST_ ( ptr_)    (reinterpret_cast<std::uintptr_t>(ptr_))

Internal helper macro to cast pointers to integers.

Parameters
[in]ptr_object pointer
Returns
The integer representation of the pointer

Backward Traceability

Definition at line 72 of file qp_pkg.hpp.

◆ QF_PTR_RANGE_

#define QF_PTR_RANGE_ ( x_,
min_,
max_ )   (((min_) <= (x_)) && ((x_) <= (max_)))

Definition at line 73 of file qp_pkg.hpp.