Fast RTPS  Version 2.14.1
Fast RTPS
Loading...
Searching...
No Matches
DynamicDataPtr.h
1// Copyright 2018 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
15#ifndef TYPES_DYNAMIC_DATA_PTR_H
16#define TYPES_DYNAMIC_DATA_PTR_H
17
18#include <fastrtps/types/TypesBase.h>
19
20namespace eprosima {
21namespace fastrtps {
22namespace types {
23
24class DynamicData;
25
26class DynamicData_ptr : public std::shared_ptr<DynamicData>
27{
28public:
29
30 typedef std::shared_ptr<DynamicData> Base;
31
32 using Base::operator->;
33 using Base::operator*;
34 using Base::operator bool;
35
36 RTPS_DllAPI DynamicData_ptr()
37 {
38 }
39
40 RTPS_DllAPI explicit DynamicData_ptr(
41 DynamicData* pData);
42
43 RTPS_DllAPI DynamicData_ptr(
44 const DynamicData_ptr& other) = default;
45
46 RTPS_DllAPI DynamicData_ptr(
47 DynamicData_ptr&& other) = default;
48
50 const DynamicData_ptr&) = default;
51
53 DynamicData_ptr&&) = default;
54
57};
58
59} // namespace types
60} // namespace fastrtps
61} // namespace eprosima
62
63#endif // TYPES_DYNAMIC_DATA_PTR_H
Definition DynamicDataPtr.h:27
RTPS_DllAPI DynamicData_ptr & operator=(const DynamicData_ptr &)=default
RTPS_DllAPI DynamicData_ptr(DynamicData *pData)
std::shared_ptr< DynamicData > Base
Definition DynamicDataPtr.h:30
RTPS_DllAPI DynamicData_ptr(DynamicData_ptr &&other)=default
RTPS_DllAPI DynamicData_ptr()
Definition DynamicDataPtr.h:36
RTPS_DllAPI DynamicData_ptr(const DynamicData_ptr &other)=default
Definition DynamicData.h:44
eProsima namespace.
Definition LibrarySettingsAttributes.h:23