| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
IChangePool.hpp
1// Copyright 2020 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_RTPS_HISTORY__ICHANGEPOOL_HPP
20#define FASTDDS_RTPS_HISTORY__ICHANGEPOOL_HPP
21
22 namespace eprosima {
23 namespace fastdds {
24 namespace rtps {
25
26 struct CacheChange_t;
27
31 class IChangePool
32{
33 public:
34
35 virtual ~IChangePool() = default;
36
50 virtual bool reserve_cache(
51 CacheChange_t*& cache_change) = 0;
52
64 virtual bool release_cache(
65 CacheChange_t* cache_change) = 0;
66};
67
68} // namespace rtps
69} // namespace fastdds
70} // namespace eprosima
71
72
73#endif // FASTDDS_RTPS_HISTORY__ICHANGEPOOL_HPP
eprosima::fastdds::rtps::IChangePool
An interface for classes responsible of cache changes allocation management.
Definition IChangePool.hpp:32
eprosima::fastdds::rtps::IChangePool::reserve_cache
virtual bool reserve_cache(CacheChange_t *&cache_change)=0
Get a new cache change from the pool.
eprosima::fastdds::rtps::IChangePool::release_cache
virtual bool release_cache(CacheChange_t *cache_change)=0
Return a cache change to the pool.
eprosima::fastdds::rtps::IChangePool::~IChangePool
virtual ~IChangePool()=default
eprosima::fastdds::rtps
Contains the RTPS protocol implementation.
eprosima::fastdds
eprosima
eProsima namespace.
eprosima::fastdds::rtps::CacheChange_t
Structure CacheChange_t, contains information on a specific CacheChange.
Definition CacheChange.hpp:78