| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
ReaderResourceLimitsQos.hpp
1// Copyright 2025 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
18
19#ifndef FASTDDS_DDS_CORE_POLICY__READERRESOURCELIMITSQOS_HPP
20#define FASTDDS_DDS_CORE_POLICY__READERRESOURCELIMITSQOS_HPP
21
22
23#include <fastdds/dds/core/policy/QosPolicies.hpp>
24
25 namespace eprosima {
26 namespace fastdds {
27 namespace dds {
28
30 class ReaderResourceLimitsQos
31{
32 public:
33
37 FASTDDS_EXPORTED_API ReaderResourceLimitsQos() = default;
38
42 virtual FASTDDS_EXPORTED_API ~ReaderResourceLimitsQos() = default;
43
44 bool operator ==(
45 const ReaderResourceLimitsQos& b) const
46 {
47 return
48 (matched_publisher_allocation == b.matched_publisher_allocation) &&
49 (sample_infos_allocation == b.sample_infos_allocation) &&
50 (outstanding_reads_allocation == b.outstanding_reads_allocation) &&
51 (max_samples_per_read == b.max_samples_per_read);
52 }
53
54 inline void clear()
55 {
56 ReaderResourceLimitsQos reset = ReaderResourceLimitsQos();
57 std::swap(*this, reset);
58 }
59
61 fastdds::ResourceLimitedContainerConfig matched_publisher_allocation;
63 fastdds::ResourceLimitedContainerConfig sample_infos_allocation{ 32u };
65 fastdds::ResourceLimitedContainerConfig outstanding_reads_allocation{ 2u };
66
77 int32_t max_samples_per_read = 32;
78};
79
80} //namespace dds
81} //namespace fastdds
82} //namespace eprosima
83
84#endif // FASTDDS_DDS_CORE_POLICY__READERRESOURCELIMITSQOS_HPP
eprosima::fastdds::dds::ReaderResourceLimitsQos::outstanding_reads_allocation
fastdds::ResourceLimitedContainerConfig outstanding_reads_allocation
Loaned collections allocation limits.
Definition ReaderResourceLimitsQos.hpp:65
eprosima::fastdds::dds::ReaderResourceLimitsQos::~ReaderResourceLimitsQos
virtual FASTDDS_EXPORTED_API ~ReaderResourceLimitsQos()=default
Destructor.
eprosima::fastdds::dds::ReaderResourceLimitsQos::sample_infos_allocation
fastdds::ResourceLimitedContainerConfig sample_infos_allocation
SampleInfo allocation limits.
Definition ReaderResourceLimitsQos.hpp:63
eprosima::fastdds::dds::ReaderResourceLimitsQos::matched_publisher_allocation
fastdds::ResourceLimitedContainerConfig matched_publisher_allocation
Matched publishers allocation limits.
Definition ReaderResourceLimitsQos.hpp:61
eprosima::fastdds::dds::ReaderResourceLimitsQos::max_samples_per_read
int32_t max_samples_per_read
Maximum number of samples to return on a single call to read / take.
Definition ReaderResourceLimitsQos.hpp:77
eprosima::fastdds::dds::ReaderResourceLimitsQos::clear
void clear()
Definition ReaderResourceLimitsQos.hpp:54
eprosima::fastdds::dds::ReaderResourceLimitsQos::operator==
bool operator==(const ReaderResourceLimitsQos &b) const
Definition ReaderResourceLimitsQos.hpp:44
eprosima::fastdds::dds::ReaderResourceLimitsQos::ReaderResourceLimitsQos
FASTDDS_EXPORTED_API ReaderResourceLimitsQos()=default
Constructor.
eprosima::fastdds::dds
Definition BuiltinTopicKey.hpp:26
eprosima::fastdds
eprosima
eProsima namespace.
eprosima::fastdds::ResourceLimitedContainerConfig
Specifies the configuration of a resource limited collection.
Definition ResourceLimitedContainerConfig.hpp:36