Fast RTPS  Version 2.1.0
Fast RTPS
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 
20 namespace eprosima {
21 namespace fastrtps {
22 namespace types {
23 
24 class DynamicData;
25 
26 class DynamicData_ptr : public std::shared_ptr<DynamicData>
27 {
28 public:
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 
56  DynamicData*);
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(DynamicData *pData)
std::shared_ptr< DynamicData > Base
Definition: DynamicDataPtr.h:30
RTPS_DllAPI DynamicData_ptr(DynamicData_ptr &&other)=default
RTPS_DllAPI DynamicData_ptr & operator=(const DynamicData_ptr &)=default
RTPS_DllAPI DynamicData_ptr()
Definition: DynamicDataPtr.h:36
RTPS_DllAPI DynamicData_ptr(const DynamicData_ptr &other)=default
Definition: DynamicData.h:32
eProsima namespace.
Definition: LibrarySettingsAttributes.h:23