| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // This file is part of INSTINCT, the INS Toolkit for Integrated | ||
| 2 | // Navigation Concepts and Training by the Institute of Navigation of | ||
| 3 | // the University of Stuttgart, Germany. | ||
| 4 | // | ||
| 5 | // This Source Code Form is subject to the terms of the Mozilla Public | ||
| 6 | // License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| 7 | // file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
| 8 | |||
| 9 | #include "Terminator.hpp" | ||
| 10 | |||
| 11 | #include "internal/NodeManager.hpp" | ||
| 12 | namespace nm = NAV::NodeManager; | ||
| 13 | #include "internal/FlowManager.hpp" | ||
| 14 | |||
| 15 | // ---------------------------------------------------------- Member functions ------------------------------------------------------------- | ||
| 16 | |||
| 17 |
2/4✓ Branch 1 taken 163 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 163 times.
✗ Branch 5 not taken.
|
163 | NAV::Terminator::Terminator() : Node(typeStatic()) |
| 18 | { | ||
| 19 | LOG_TRACE("{}: called", name); | ||
| 20 | 163 | _hasConfig = false; | |
| 21 | 163 | kind = Kind::Simple; | |
| 22 | |||
| 23 |
4/8✓ Branch 1 taken 163 times.
✗ Branch 2 not taken.
✓ Branch 5 taken 163 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 163 times.
✓ Branch 9 taken 163 times.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
|
489 | nm::CreateInputPin(this, "", Pin::Type::Flow, { NodeData::type() }, &Terminator::receiveObs); |
| 24 | 326 | } | |
| 25 | |||
| 26 | 420 | NAV::Terminator::~Terminator() | |
| 27 | { | ||
| 28 | LOG_TRACE("{}: called", nameId()); | ||
| 29 | 420 | } | |
| 30 | |||
| 31 | 277 | std::string NAV::Terminator::typeStatic() | |
| 32 | { | ||
| 33 |
1/2✓ Branch 1 taken 277 times.
✗ Branch 2 not taken.
|
554 | return "Terminator"; |
| 34 | } | ||
| 35 | |||
| 36 | ✗ | std::string NAV::Terminator::type() const | |
| 37 | { | ||
| 38 | ✗ | return typeStatic(); | |
| 39 | } | ||
| 40 | |||
| 41 | 114 | std::string NAV::Terminator::category() | |
| 42 | { | ||
| 43 |
1/2✓ Branch 1 taken 114 times.
✗ Branch 2 not taken.
|
228 | return "Utility"; |
| 44 | } | ||
| 45 | |||
| 46 | 6333 | void NAV::Terminator::receiveObs(NAV::InputPin::NodeDataQueue& queue, size_t /* pinIdx */) // NOLINT(readability-convert-member-functions-to-static) | |
| 47 | { | ||
| 48 | 6333 | queue.pop_front(); | |
| 49 | 6333 | } | |
| 50 |