| pnd-cpp-sdk 1.0.0

Loading...
Searching...
No Matches
groupFeedback.hpp
1#pragma once
2
3#include <vector>
4
5#include "aios.h"
6
7 namespace Pnd {
8
13 class GroupFeedback final {
14 public:
18 GroupFeedback(size_t number_of_modules);
19
23 GroupFeedback(PndGroupFeedbackPtr group_feedback);
24
28 ~GroupFeedback() noexcept;
29
33 size_t size() const;
34
38 const PndFeedbackPtr &operator[](size_t index) const;
39
40 public:
45 PndGroupFeedbackPtr internal_;
46
47 private:
52 const bool manage_pointer_lifetime_;
53
57 const size_t number_of_modules_;
58
62 std::vector<PndFeedbackPtr> feedbacks_;
63};
64
65} // namespace Pnd
Pnd::GroupFeedback
A list of Feedback objects that can be received from a Group of modules; the size() must match the nu...
Definition groupFeedback.hpp:13
Pnd::GroupFeedback::~GroupFeedback
~GroupFeedback() noexcept
Destructor cleans up group feedback object as necessary.
Definition groupFeedback.cpp:23
Pnd::GroupFeedback::operator[]
const PndFeedbackPtr & operator[](size_t index) const
Access the feedback for an individual module.
Definition groupFeedback.cpp:30
Pnd::GroupFeedback::internal_
PndGroupFeedbackPtr internal_
Definition groupFeedback.hpp:45
Pnd::GroupFeedback::size
size_t size() const
Returns the number of module feedbacks in this group feedback.
Definition groupFeedback.cpp:28