Class to manage QosPolicyCount.
More...
#include <QosPolicyCount.hpp>
|
| void | add (const QosPolicyId &policy_id) noexcept |
| | Increases the counter of a QosPolicyId. More...
|
| |
| uint32_t | get (const QosPolicyId &policy_id) const noexcept |
| | Retrieves the counter of a QosPolicyId. More...
|
| |
| void | reset () noexcept |
| | Resets all the stored counters. More...
|
| |
| bool | empty () const noexcept |
| | Checks if all the QosPolicyId counters are 0. More...
|
| |
Class to manage QosPolicyCount.
This class will hold a counter for each QosPolicyId using its enum value as the counter index.
◆ add()
| void eprosima::safedds::dds::QosPolicyCount::add |
( |
const QosPolicyId & |
policy_id | ) |
|
|
noexcept |
Increases the counter of a QosPolicyId.
- Parameters
-
| policy_id | QosPolicyId to increase. |
◆ empty()
| bool eprosima::safedds::dds::QosPolicyCount::empty |
( |
| ) |
const |
|
noexcept |
Checks if all the QosPolicyId counters are 0.
- Returns
- true if empty, false otherwise.
◆ get()
| uint32_t eprosima::safedds::dds::QosPolicyCount::get |
( |
const QosPolicyId & |
policy_id | ) |
const |
|
noexcept |
Retrieves the counter of a QosPolicyId.
- Parameters
-
| policy_id | QosPolicyId to retrieve. |
- Returns
- counter value.
◆ reset()
| void eprosima::safedds::dds::QosPolicyCount::reset |
( |
| ) |
|
|
noexcept |
Resets all the stored counters.
The documentation for this struct was generated from the following file:
- build/docs/user_manual/v2.0.0/tmp/include/safedds/dds/qos/QosPolicyCount.hpp