Fast DDS  Version 3.1.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
19#ifndef FASTDDS_RTPS_HISTORY__ICHANGEPOOL_HPP
20#define FASTDDS_RTPS_HISTORY__ICHANGEPOOL_HPP
21
22namespace eprosima {
23namespace fastdds {
24namespace rtps {
25
26struct CacheChange_t;
27
32{
33public:
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
An interface for classes responsible of cache changes allocation management.
Definition IChangePool.hpp:32
virtual bool reserve_cache(CacheChange_t *&cache_change)=0
Get a new cache change from the pool.
virtual bool release_cache(CacheChange_t *cache_change)=0
Return a cache change to the pool.
eProsima namespace.
Structure CacheChange_t, contains information on a specific CacheChange.
Definition CacheChange.hpp:78