Ignition Msgs

API Reference

8.2.0
pose_with_covariance.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/pose_with_covariance.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fpose_5fwith_5fcovariance_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fpose_5fwith_5fcovariance_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
31 #include "ignition/msgs/pose.pb.h"
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
52 
53 class PoseWithCovariance;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE PoseWithCovariance : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.PoseWithCovariance) */ {
58  public:
60  virtual ~PoseWithCovariance();
61 
63 
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const PoseWithCovariance& default_instance();
71 
72  void Swap(PoseWithCovariance* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline PoseWithCovariance* New() const { return New(NULL); }
77 
78  PoseWithCovariance* New(::google::protobuf::Arena* arena) const;
79  void CopyFrom(const ::google::protobuf::Message& from);
80  void MergeFrom(const ::google::protobuf::Message& from);
81  void CopyFrom(const PoseWithCovariance& from);
82  void MergeFrom(const PoseWithCovariance& from);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() const;
87  bool MergePartialFromCodedStream(
88  ::google::protobuf::io::CodedInputStream* input);
89  void SerializeWithCachedSizes(
90  ::google::protobuf::io::CodedOutputStream* output) const;
91  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92  bool deterministic, ::google::protobuf::uint8* output) const;
93  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
94  return InternalSerializeWithCachedSizesToArray(false, output);
95  }
96  int GetCachedSize() const { return _cached_size_; }
97  private:
98  void SharedCtor();
99  void SharedDtor();
100  void SetCachedSize(int size) const;
101  void InternalSwap(PoseWithCovariance* other);
102  private:
103  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
104  return _internal_metadata_.arena();
105  }
106  inline void* MaybeArenaPtr() const {
107  return _internal_metadata_.raw_arena_ptr();
108  }
109  public:
110 
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
115  // accessors -------------------------------------------------------
116 
117  // optional .ignition.msgs.Pose pose = 1;
118  bool has_pose() const;
119  void clear_pose();
120  static const int kPoseFieldNumber = 1;
121  const ::ignition::msgs::Pose& pose() const;
122  ::ignition::msgs::Pose* mutable_pose();
123  ::ignition::msgs::Pose* release_pose();
124  void set_allocated_pose(::ignition::msgs::Pose* pose);
125 
126  // optional .ignition.msgs.Float_V covariance = 2;
127  bool has_covariance() const;
128  void clear_covariance();
129  static const int kCovarianceFieldNumber = 2;
130  const ::ignition::msgs::Float_V& covariance() const;
131  ::ignition::msgs::Float_V* mutable_covariance();
132  ::ignition::msgs::Float_V* release_covariance();
133  void set_allocated_covariance(::ignition::msgs::Float_V* covariance);
134 
135  // @@protoc_insertion_point(class_scope:ignition.msgs.PoseWithCovariance)
136  private:
137 
138  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
139  bool _is_default_instance_;
140  ::ignition::msgs::Pose* pose_;
141  ::ignition::msgs::Float_V* covariance_;
142  mutable int _cached_size_;
146 
147  void InitAsDefaultInstance();
148  static PoseWithCovariance* default_instance_;
149 };
150 // ===================================================================
151 
152 
153 // ===================================================================
154 
155 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
156 // PoseWithCovariance
157 
158 // optional .ignition.msgs.Pose pose = 1;
159 inline bool PoseWithCovariance::has_pose() const {
160  return !_is_default_instance_ && pose_ != NULL;
161 }
163  if (GetArenaNoVirtual() == NULL && pose_ != NULL) delete pose_;
164  pose_ = NULL;
165 }
166 inline const ::ignition::msgs::Pose& PoseWithCovariance::pose() const {
167  // @@protoc_insertion_point(field_get:ignition.msgs.PoseWithCovariance.pose)
168  return pose_ != NULL ? *pose_ : *default_instance_->pose_;
169 }
170 inline ::ignition::msgs::Pose* PoseWithCovariance::mutable_pose() {
171 
172  if (pose_ == NULL) {
173  pose_ = new ::ignition::msgs::Pose;
174  }
175  // @@protoc_insertion_point(field_mutable:ignition.msgs.PoseWithCovariance.pose)
176  return pose_;
177 }
178 inline ::ignition::msgs::Pose* PoseWithCovariance::release_pose() {
179  // @@protoc_insertion_point(field_release:ignition.msgs.PoseWithCovariance.pose)
180 
181  ::ignition::msgs::Pose* temp = pose_;
182  pose_ = NULL;
183  return temp;
184 }
186  delete pose_;
187  pose_ = pose;
188  if (pose) {
189 
190  } else {
191 
192  }
193  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.PoseWithCovariance.pose)
194 }
195 
196 // optional .ignition.msgs.Float_V covariance = 2;
198  return !_is_default_instance_ && covariance_ != NULL;
199 }
201  if (GetArenaNoVirtual() == NULL && covariance_ != NULL) delete covariance_;
202  covariance_ = NULL;
203 }
204 inline const ::ignition::msgs::Float_V& PoseWithCovariance::covariance() const {
205  // @@protoc_insertion_point(field_get:ignition.msgs.PoseWithCovariance.covariance)
206  return covariance_ != NULL ? *covariance_ : *default_instance_->covariance_;
207 }
208 inline ::ignition::msgs::Float_V* PoseWithCovariance::mutable_covariance() {
209 
210  if (covariance_ == NULL) {
211  covariance_ = new ::ignition::msgs::Float_V;
212  }
213  // @@protoc_insertion_point(field_mutable:ignition.msgs.PoseWithCovariance.covariance)
214  return covariance_;
215 }
216 inline ::ignition::msgs::Float_V* PoseWithCovariance::release_covariance() {
217  // @@protoc_insertion_point(field_release:ignition.msgs.PoseWithCovariance.covariance)
218 
219  ::ignition::msgs::Float_V* temp = covariance_;
220  covariance_ = NULL;
221  return temp;
222 }
224  delete covariance_;
225  covariance_ = covariance;
226  if (covariance) {
227 
228  } else {
229 
230  }
231  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.PoseWithCovariance.covariance)
232 }
233 
234 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
235 
240 // @@protoc_insertion_point(namespace_scope)
241 
242 } // namespace msgs
243 } // namespace ignition
244 
245 #ifdef _MSC_VER
246 #pragma warning(pop)
247 #endif
248 // @@protoc_insertion_point(global_scope)
249 
250 #endif // PROTOBUF_ignition_2fmsgs_2fpose_5fwith_5fcovariance_2eproto__INCLUDED
std::unique_ptr< const PoseWithCovariance > ConstPoseWithCovarianceUniquePtr
Definition: pose_with_covariance.pb.h:237
Definition: pose.pb.h:58
void clear_pose()
Definition: pose_with_covariance.pb.h:162
const ::ignition::msgs::Pose & pose() const
Definition: pose_with_covariance.pb.h:166
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fpose_5fwith_5fcovariance_2eproto()
void protobuf_AssignDesc_ignition_2fmsgs_2fpose_5fwith_5fcovariance_2eproto()
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: pose_with_covariance.pb.h:93
PoseWithCovariance & operator=(const PoseWithCovariance &from)
Definition: pose_with_covariance.pb.h:64
std::shared_ptr< PoseWithCovariance > PoseWithCovarianceSharedPtr
Definition: pose_with_covariance.pb.h:238
::ignition::msgs::Pose * mutable_pose()
Definition: pose_with_covariance.pb.h:170
void set_allocated_covariance(::ignition::msgs::Float_V *covariance)
Definition: pose_with_covariance.pb.h:223
PoseWithCovariance * New() const
Definition: pose_with_covariance.pb.h:76
STL class.
void protobuf_ShutdownFile_ignition_2fmsgs_2fpose_5fwith_5fcovariance_2eproto()
Definition: float_v.pb.h:56
::ignition::msgs::Float_V * mutable_covariance()
Definition: pose_with_covariance.pb.h:208
Definition: pose_with_covariance.pb.h:57
std::shared_ptr< const PoseWithCovariance > ConstPoseWithCovarianceSharedPtr
Definition: pose_with_covariance.pb.h:239
bool has_pose() const
Definition: pose_with_covariance.pb.h:159
int GetCachedSize() const
Definition: pose_with_covariance.pb.h:96
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: pose_with_covariance.pb.h:185
void clear_covariance()
Definition: pose_with_covariance.pb.h:200
bool has_covariance() const
Definition: pose_with_covariance.pb.h:197
std::unique_ptr< PoseWithCovariance > PoseWithCovarianceUniquePtr
Definition: pose_with_covariance.pb.h:236
::ignition::msgs::Pose * release_pose()
Definition: pose_with_covariance.pb.h:178
::ignition::msgs::Float_V * release_covariance()
Definition: pose_with_covariance.pb.h:216
const ::ignition::msgs::Float_V & covariance() const
Definition: pose_with_covariance.pb.h:204