ROS 2 rclcpp + rcl - kilted
kilted
ROS 2 C++ Client Library with ROS Client Library
rclcpp
include
rclcpp
experimental
buffers
buffer_implementation_base.hpp
1
// Copyright 2019 Open Source Robotics Foundation, Inc.
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
15
#ifndef RCLCPP__EXPERIMENTAL__BUFFERS__BUFFER_IMPLEMENTATION_BASE_HPP_
16
#define RCLCPP__EXPERIMENTAL__BUFFERS__BUFFER_IMPLEMENTATION_BASE_HPP_
17
18
#include <vector>
19
20
namespace
rclcpp
21
{
22
namespace
experimental
23
{
24
namespace
buffers
25
{
26
27
template
<
typename
BufferT>
28
class
BufferImplementationBase
29
{
30
public
:
31
virtual
~
BufferImplementationBase
() {}
32
33
virtual
BufferT dequeue() = 0;
34
virtual
void
enqueue(BufferT request) = 0;
35
36
virtual
std::vector<BufferT> get_all_data() = 0;
37
38
virtual
void
clear() = 0;
39
virtual
bool
has_data()
const
= 0;
40
virtual
size_t
available_capacity()
const
= 0;
41
};
42
43
}
// namespace buffers
44
}
// namespace experimental
45
}
// namespace rclcpp
46
47
#endif
// RCLCPP__EXPERIMENTAL__BUFFERS__BUFFER_IMPLEMENTATION_BASE_HPP_
rclcpp::experimental::buffers::BufferImplementationBase
Definition:
buffer_implementation_base.hpp:29
rclcpp
Versions of rosidl_typesupport_cpp::get_message_type_support_handle that handle adapted types.
Definition:
allocator_common.hpp:26
Generated by
1.9.1