QP/C++  8.0.0
Real-Time Embedded Framework
Loading...
Searching...
No Matches
Code Metrics
QP/C++ Code Metrics
================================================
NLOC CCN token PARAM length location
------------------------------------------------
13 1 87 0 15 QP::QEQueue::QEQueue@93-107@..\..\qpcpp\include\qequeue.hpp
3 1 10 0 3 QP::QEQueue::getNFree@119-121@..\..\qpcpp\include\qequeue.hpp
4 1 13 0 7 QP::QEQueue::getNMin@122-128@..\..\qpcpp\include\qequeue.hpp
3 1 12 0 3 QP::QEQueue::isEmpty@129-131@..\..\qpcpp\include\qequeue.hpp
11 1 64 0 13 QP::QMPool::QMPool@116-128@..\..\qpcpp\include\qmpool.hpp
4 1 13 0 7 QP::QMPool::getNMin@140-146@..\..\qpcpp\include\qmpool.hpp
3 1 10 0 3 QP::QMPool::getNFree@147-149@..\..\qpcpp\include\qmpool.hpp
5 1 24 1 5 QP::QEvt::QEvt@141-145@..\..\qpcpp\include\qp.hpp
2 1 6 0 3 QP::QEvt::init@147-149@..\..\qpcpp\include\qp.hpp
3 1 17 1 4 QP::QEvt::init@150-153@..\..\qpcpp\include\qp.hpp
5 2 37 0 5 QP::QEvt::verify_@154-158@..\..\qpcpp\include\qp.hpp
3 1 21 0 3 QP::QEvt::getPoolNum_@159-161@..\..\qpcpp\include\qp.hpp
1 1 10 0 1 QP::QAsmAttr::QAsmAttr@205-205@..\..\qpcpp\include\qp.hpp
4 1 14 0 4 QP::QAsm::QAsm@255-258@..\..\qpcpp\include\qp.hpp
2 1 6 0 3 QP::QAsm::~QAsm@263-265@..\..\qpcpp\include\qp.hpp
3 1 19 1 3 QP::QAsm::init@270-272@..\..\qpcpp\include\qp.hpp
4 1 20 1 4 QP::QAsm::isIn@276-279@..\..\qpcpp\include\qp.hpp
3 1 12 0 3 QP::QAsm::state@280-282@..\..\qpcpp\include\qp.hpp
3 1 12 0 3 QP::QAsm::stateObj@283-285@..\..\qpcpp\include\qp.hpp
3 1 11 0 3 QP::QAsm::getStateHandler@288-290@..\..\qpcpp\include\qp.hpp
8 1 35 2 8 QP::QAsm::top@292-299@..\..\qpcpp\include\qp.hpp
4 1 18 1 4 QP::QAsm::tran@302-305@..\..\qpcpp\include\qp.hpp
4 1 18 1 4 QP::QAsm::tran_hist@306-309@..\..\qpcpp\include\qp.hpp
4 1 18 1 4 QP::QAsm::super@310-313@..\..\qpcpp\include\qp.hpp
4 1 30 1 4 QP::QAsm::qm_tran@314-317@..\..\qpcpp\include\qp.hpp
4 1 30 1 4 QP::QAsm::qm_tran_init@318-321@..\..\qpcpp\include\qp.hpp
8 1 42 2 8 QP::QAsm::qm_tran_hist@322-329@..\..\qpcpp\include\qp.hpp
4 1 20 1 4 QP::QAsm::qm_entry@332-335@..\..\qpcpp\include\qp.hpp
4 1 22 1 4 QP::QAsm::qm_entry@339-342@..\..\qpcpp\include\qp.hpp
4 1 20 1 4 QP::QAsm::qm_exit@346-349@..\..\qpcpp\include\qp.hpp
4 1 22 1 4 QP::QAsm::qm_exit@353-356@..\..\qpcpp\include\qp.hpp
3 1 19 1 3 QP::QHsm::init@369-371@..\..\qpcpp\include\qp.hpp
3 1 12 0 3 QP::QHsm::getStateHandler@379-381@..\..\qpcpp\include\qp.hpp
3 1 19 1 3 QP::QMsm::init@399-401@..\..\qpcpp\include\qp.hpp
3 1 13 0 3 QP::QMsm::getStateHandler@407-409@..\..\qpcpp\include\qp.hpp
4 2 20 0 6 QP::QPSet::setEmpty@577-582@..\..\qpcpp\include\qp.hpp
4 3 38 0 7 QP::QPSet::isEmpty@583-589@..\..\qpcpp\include\qp.hpp
4 3 38 0 7 QP::QPSet::notEmpty@590-596@..\..\qpcpp\include\qp.hpp
6 3 102 1 9 QP::QPSet::hasElement@597-605@..\..\qpcpp\include\qp.hpp
9 3 109 1 12 QP::QPSet::insert@606-617@..\..\qpcpp\include\qp.hpp
9 3 113 1 12 QP::QPSet::remove@618-629@..\..\qpcpp\include\qp.hpp
6 3 48 0 9 QP::QPSet::findMax@630-638@..\..\qpcpp\include\qp.hpp
4 2 35 1 6 QP::QPSet::update_@641-646@..\..\qpcpp\include\qp.hpp
5 3 72 1 8 QP::QPSet::verify_@650-657@..\..\qpcpp\include\qp.hpp
10 1 63 1 13 QP::QActive::QActive@741-753@..\..\qpcpp\include\qp.hpp
6 1 35 2 6 QP::QActive::init@756-761@..\..\qpcpp\include\qp.hpp
3 1 20 1 3 QP::QActive::init@762-764@..\..\qpcpp\include\qp.hpp
6 1 35 2 6 QP::QActive::dispatch@765-770@..\..\qpcpp\include\qp.hpp
3 1 27 1 3 QP::QActive::isIn@771-773@..\..\qpcpp\include\qp.hpp
3 1 26 1 3 QP::QActive::childState@774-776@..\..\qpcpp\include\qp.hpp
9 1 47 5 9 QP::QActive::start@787-795@..\..\qpcpp\include\qp.hpp
3 1 18 0 3 QP::QActive::getPrio@826-828@..\..\qpcpp\include\qp.hpp
4 1 38 1 4 QP::QActive::setPrio@829-832@..\..\qpcpp\include\qp.hpp
3 1 18 0 3 QP::QActive::getPThre@833-835@..\..\qpcpp\include\qp.hpp
3 1 10 0 3 QP::QActive::getEQueue@838-840@..\..\qpcpp\include\qp.hpp
3 1 10 0 3 QP::QActive::getOsObject@844-846@..\..\qpcpp\include\qp.hpp
3 1 10 0 3 QP::QActive::getThread@850-852@..\..\qpcpp\include\qp.hpp
3 1 13 1 3 QP::QActive::setThread@856-858@..\..\qpcpp\include\qp.hpp
6 1 35 2 6 QP::QMActive::init@890-895@..\..\qpcpp\include\qp.hpp
3 1 20 1 3 QP::QMActive::init@896-898@..\..\qpcpp\include\qp.hpp
6 1 35 2 6 QP::QMActive::dispatch@899-904@..\..\qpcpp\include\qp.hpp
3 1 27 1 3 QP::QMActive::isIn@905-907@..\..\qpcpp\include\qp.hpp
3 1 23 0 3 QP::QMActive::getStateHandler@910-912@..\..\qpcpp\include\qp.hpp
4 1 30 1 4 QP::QMActive::childStateObj@914-917@..\..\qpcpp\include\qp.hpp
3 1 10 0 3 QP::QTimeEvt::getAct@965-967@..\..\qpcpp\include\qp.hpp
3 1 10 0 3 QP::QTimeEvt::getCtr@968-970@..\..\qpcpp\include\qp.hpp
3 1 10 0 3 QP::QTimeEvt::getInterval@971-973@..\..\qpcpp\include\qp.hpp
3 1 10 0 3 QP::QTimeEvt::getTickRate@974-976@..\..\qpcpp\include\qp.hpp
3 1 16 0 3 QP::QTimeEvt::toActive@994-996@..\..\qpcpp\include\qp.hpp
3 1 16 0 3 QP::QTimeEvt::toTimeEvt@997-999@..\..\qpcpp\include\qp.hpp
3 1 19 1 3 QP::QTicker::init@1020-1022@..\..\qpcpp\include\qp.hpp
6 1 23 2 6 QP::QF::psInit@1053-1058@..\..\qpcpp\include\qp.hpp
7 1 34 3 7 QP::QF::publish_@1062-1068@..\..\qpcpp\include\qp.hpp
6 1 26 2 6 QP::QF::tick@1072-1077@..\..\qpcpp\include\qp.hpp
3 1 19 1 3 QP::QF::getQueueMin@1081-1083@..\..\qpcpp\include\qp.hpp
4 1 36 1 4 QP::QF::q_new@1128-1131@..\..\qpcpp\include\qp.hpp
9 1 54 2 9 QP::QF::q_new@1137-1145@..\..\qpcpp\include\qp.hpp
6 1 38 2 6 QP::QF::q_new_x@1151-1156@..\..\qpcpp\include\qp.hpp
11 2 64 3 11 QP::QF::q_new_x@1162-1172@..\..\qpcpp\include\qp.hpp
6 1 39 2 6 QP::QF::q_new_ref@1177-1182@..\..\qpcpp\include\qp.hpp
4 1 23 1 4 QP::QF::q_delete_ref@1186-1189@..\..\qpcpp\include\qp.hpp
5 1 64 1 7 QP::QEvt_refCtr_inc_@81-87@..\..\qpcpp\include\qp_pkg.hpp
5 1 64 1 7 QP::QEvt_refCtr_dec_@89-95@..\..\qpcpp\include\qp_pkg.hpp
3 1 18 0 3 QP::QSpyId::getPrio@232-234@..\..\qpcpp\include\qs.hpp
7 1 28 1 7 QP::QS::force_cast@698-704@..\..\qpcpp\include\qs.hpp
14 3 70 1 17 QP::QS::rxPut@995-1011@..\..\qpcpp\include\qs.hpp
3 1 19 1 3 QP::QXThread::init@93-95@..\..\qpcpp\include\qxk.hpp
3 1 10 0 3 QP::QXThread::getTimeEvt@99-101@..\..\qpcpp\include\qxk.hpp
13 file analyzed.
==============================================================
NLOC Avg.NLOC AvgCCN Avg.token function_cnt file
--------------------------------------------------------------
63 5.8 1.0 30.5 4 ..\..\qpcpp\include\qequeue.hpp
29 0.0 0.0 0.0 0 ..\..\qpcpp\include\qk.hpp
70 6.0 1.0 29.0 3 ..\..\qpcpp\include\qmpool.hpp
661 4.4 1.2 28.5 74 ..\..\qpcpp\include\qp.hpp
5 0.0 0.0 0.0 0 ..\..\qpcpp\include\qpcpp.hpp
28 5.0 1.0 64.0 2 ..\..\qpcpp\include\qp_pkg.hpp
428 8.0 1.7 38.7 3 ..\..\qpcpp\include\qs.hpp
6 0.0 0.0 0.0 0 ..\..\qpcpp\include\qsafe.h
4 0.0 0.0 0.0 0 ..\..\qpcpp\include\qstamp.hpp
34 0.0 0.0 0.0 0 ..\..\qpcpp\include\qs_dummy.hpp
37 0.0 0.0 0.0 0 ..\..\qpcpp\include\qs_pkg.hpp
15 0.0 0.0 0.0 0 ..\..\qpcpp\include\qv.hpp
112 3.0 1.0 14.5 2 ..\..\qpcpp\include\qxk.hpp
=============================================================================================================
No thresholds exceeded (cyclomatic_complexity > 20 or length > 500 or nloc > 1000000 or parameter_count > 10)
==========================================================================================
Total nloc Avg.NLOC AvgCCN Avg.token Fun Cnt Warning cnt Fun Rt nloc Rt
------------------------------------------------------------------------------------------
1492 4.6 1.2 29.4 88 0 0.00 0.00
QACTIVE_OS_OBJ_TYPE const & getOsObject() const noexcept
Definition qp.hpp:844
void start(QPrioSpec const prioSpec, QEvtPtr *const qSto, std::uint_fast16_t const qLen, void *const stkSto, std::uint_fast16_t const stkSize, void const *const par)
Definition qv.cpp:284
void init(void const *const e, std::uint_fast8_t const qsId) override
Virtual function to take the top-most initial transition in the state machine.
Definition qp.hpp:756
void setThread(QACTIVE_THREAD_TYPE const &thr)
Definition qp.hpp:856
std::uint_fast8_t getPThre() const noexcept
Definition qp.hpp:833
QACTIVE_THREAD_TYPE const & getThread() const noexcept
Definition qp.hpp:850
void dispatch(QEvt const *const e, std::uint_fast8_t const qsId) override
Virtual function to dispatch an event to the state machine.
Definition qp.hpp:765
bool isIn(QStateHandler const state) noexcept override
Virtual function to check whether the state machine is in a given state.
Definition qp.hpp:771
void setPrio(QPrioSpec const prio) noexcept
Definition qp.hpp:829
QActive(QStateHandler const initial) noexcept
Definition qp.hpp:741
QStateHandler childState(QStateHandler const parent) noexcept
Definition qp.hpp:774
std::uint_fast8_t getPrio() const noexcept
Definition qp.hpp:826
QACTIVE_EQUEUE_TYPE const & getEQueue() const noexcept
Definition qp.hpp:838
QState qm_entry(QMState const *const s) noexcept
Internal helper function to execute state entry actions in QP::QMsm.
Definition qp.hpp:332
QAsm() noexcept
Constructor of the QP::QAsm base class.
Definition qp.hpp:255
QState qm_tran_hist(QMState const *const hist, void const *const tatbl) noexcept
Internal helper function to take a state transition to history in QP::QMsm.
Definition qp.hpp:322
QStateHandler state() const noexcept
Definition qp.hpp:280
virtual bool isIn(QStateHandler const state) noexcept
Virtual function to check whether the state machine is in a given state.
Definition qp.hpp:276
QState qm_tran(void const *const tatbl) noexcept
Internal helper function to take a state transition in QP::QMsm.
Definition qp.hpp:314
QState qm_exit(QMState const *const s) noexcept
Internal helper function to execute state exit actions in QP::QMsm.
Definition qp.hpp:346
QState tran_hist(QStateHandler const hist) noexcept
Internal helper function to take a state transition to history in sublclasses of QP::QAsm.
Definition qp.hpp:306
QState super(QStateHandler const superstate) noexcept
Internal helper function to indicate superstate of a given state in sublclasses of QP::QAsm.
Definition qp.hpp:310
QState qm_tran_init(void const *const tatbl) noexcept
Definition qp.hpp:318
static QState top(void *const me, QEvt const *const e) noexcept
Top state handler that ignores all events.
Definition qp.hpp:292
virtual QStateHandler getStateHandler() noexcept
Virtual method for getting the state handler.
Definition qp.hpp:288
QMState const * stateObj() const noexcept
Definition qp.hpp:283
virtual void init(void const *const e, std::uint_fast8_t const qsId)=0
Virtual function to take the top-most initial transition in the state machine.
QState tran(QStateHandler const target) noexcept
Internal helper function to take a state transition in sublclasses of QP::QAsm.
Definition qp.hpp:302
virtual ~QAsm() noexcept
Virtual destructor of the QP::QAsm abstract base class.
Definition qp.hpp:263
QEQueue() noexcept
Definition qequeue.hpp:93
bool isEmpty() const noexcept
Definition qequeue.hpp:129
QEQueueCtr getNFree() const noexcept
Definition qequeue.hpp:119
QEQueueCtr getNMin() const noexcept
Definition qequeue.hpp:122
bool verify_() const noexcept
Internal function to verify the internal integrity of the event instance (QP FuSa Subsystem)
Definition qp.hpp:154
std::uint_fast8_t getPoolNum_() const noexcept
Internal function to get the event pool-number of the given event.
Definition qp.hpp:159
void init() noexcept
Definition qp.hpp:147
QEvt()=delete
QStateHandler getStateHandler() noexcept override
Definition qp.hpp:379
void init(void const *const e, std::uint_fast8_t const qsId) override
Virtual function to take the top-most initial transition in the state machine.
Definition qep_hsm.cpp:123
bool isIn(QStateHandler const state) noexcept override
Virtual function to check whether the state machine is in a given state.
Definition qp.hpp:905
QStateHandler getStateHandler() noexcept override
Virtual method for getting the state handler.
Definition qp.hpp:910
void dispatch(QEvt const *const e, std::uint_fast8_t const qsId) override
Virtual function to dispatch an event to the state machine.
Definition qp.hpp:899
void init(void const *const e, std::uint_fast8_t const qsId) override
Virtual function to take the top-most initial transition in the state machine.
Definition qp.hpp:890
QMState const * childStateObj(QMState const *const parent) const noexcept
Definition qp.hpp:914
QMPoolCtr getNFree() const noexcept
Definition qmpool.hpp:147
QMPoolCtr getNMin() const noexcept
Definition qmpool.hpp:140
void init(void const *const e, std::uint_fast8_t const qsId) override
Virtual function to take the top-most initial transition in the state machine.
Definition qep_msm.cpp:97
QStateHandler getStateHandler() noexcept override
Definition qp.hpp:407
std::uint_fast8_t findMax() const noexcept
Definition qp.hpp:630
void remove(std::uint_fast8_t const n) noexcept
Definition qp.hpp:618
bool verify_(QPSet const *const dis) const noexcept
Definition qp.hpp:650
bool notEmpty() const noexcept
Definition qp.hpp:590
bool hasElement(std::uint_fast8_t const n) const noexcept
Definition qp.hpp:597
void update_(QPSet *const dis) const noexcept
Definition qp.hpp:641
void setEmpty() noexcept
Definition qp.hpp:577
bool isEmpty() const noexcept
Definition qp.hpp:583
void insert(std::uint_fast8_t const n) noexcept
Definition qp.hpp:606
void init(void const *const e, std::uint_fast8_t const qsId) override
Virtual function to take the top-most initial transition in the state machine.
Definition qf_actq.cpp:460
QTimeEvt * toTimeEvt() noexcept
Definition qp.hpp:997
void const * getAct() const noexcept
Definition qp.hpp:965
QTimeEvtCtr getInterval() const noexcept
Definition qp.hpp:971
QActive * toActive() noexcept
Definition qp.hpp:994
QTimeEvtCtr getCtr() const noexcept
Definition qp.hpp:968
std::uint8_t getTickRate() const noexcept
Definition qp.hpp:974
void psInit(QSubscrList *const subscrSto, enum_t const maxSignal) noexcept
Definition qp.hpp:1053
evtT_ * q_new(enum_t const sig, Args... args)
Definition qp.hpp:1137
void tick(std::uint_fast8_t const tickRate, void const *const sender) noexcept
Definition qp.hpp:1072
evtT_ * q_new_x(std::uint_fast16_t const margin, enum_t const sig, Args... args)
Definition qp.hpp:1162
void q_new_ref(QP::QEvt const *const e, evtT_ const *&evtRef)
Definition qp.hpp:1177
std::uint_fast16_t getQueueMin(std::uint_fast8_t const prio) noexcept
Definition qp.hpp:1081
void q_delete_ref(evtT_ const *&evtRef)
Definition qp.hpp:1186
void publish_(QEvt const *const e, void const *const sender, std::uint_fast8_t const qsId) noexcept
Definition qp.hpp:1062
bool rxPut(std::uint8_t const b) noexcept
QP/C++ framework.
Definition qequeue.hpp:42
void QEvt_refCtr_inc_(QEvt const *const e) noexcept
Definition qp_pkg.hpp:81
void QEvt_refCtr_dec_(QEvt const *const e) noexcept
Decrement the refCtr of a const event (requires casting const away)
Definition qp_pkg.hpp:89
constexpr QAsmAttr()
Definition qp.hpp:205