Safe DDS
eprosima::safedds::dds::QosPolicyCount Struct Reference

Class to manage QosPolicyCount. More...

#include <QosPolicyCount.hpp>

Public Member Functions

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...
 

Detailed Description

Class to manage QosPolicyCount.

This class will hold a counter for each QosPolicyId using its enum value as the counter index.

Member Function Documentation

◆ add()

void eprosima::safedds::dds::QosPolicyCount::add ( const QosPolicyId policy_id)
noexcept

Increases the counter of a QosPolicyId.

Parameters
policy_idQosPolicyId 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_idQosPolicyId 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: