Ignition Msgs

API Reference

5.6.0
distortion.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/distortion.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fdistortion_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fdistortion_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>
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 Distortion;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE Distortion : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Distortion) */ {
58  public:
59  Distortion();
60  virtual ~Distortion();
61 
62  Distortion(const Distortion& from);
63 
64  inline Distortion& operator=(const Distortion& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const Distortion& default_instance();
71 
72  void Swap(Distortion* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline Distortion* New() const { return New(NULL); }
77 
78  Distortion* 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 Distortion& from);
82  void MergeFrom(const Distortion& 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(Distortion* 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.Header header = 1;
118  bool has_header() const;
119  void clear_header();
120  static const int kHeaderFieldNumber = 1;
121  const ::ignition::msgs::Header& header() const;
122  ::ignition::msgs::Header* mutable_header();
123  ::ignition::msgs::Header* release_header();
124  void set_allocated_header(::ignition::msgs::Header* header);
125 
126  // optional .ignition.msgs.Vector2d center = 2;
127  bool has_center() const;
128  void clear_center();
129  static const int kCenterFieldNumber = 2;
130  const ::ignition::msgs::Vector2d& center() const;
131  ::ignition::msgs::Vector2d* mutable_center();
132  ::ignition::msgs::Vector2d* release_center();
133  void set_allocated_center(::ignition::msgs::Vector2d* center);
134 
135  // optional double k1 = 3;
136  void clear_k1();
137  static const int kK1FieldNumber = 3;
138  double k1() const;
139  void set_k1(double value);
140 
141  // optional double k2 = 4;
142  void clear_k2();
143  static const int kK2FieldNumber = 4;
144  double k2() const;
145  void set_k2(double value);
146 
147  // optional double k3 = 5;
148  void clear_k3();
149  static const int kK3FieldNumber = 5;
150  double k3() const;
151  void set_k3(double value);
152 
153  // optional double p1 = 6;
154  void clear_p1();
155  static const int kP1FieldNumber = 6;
156  double p1() const;
157  void set_p1(double value);
158 
159  // optional double p2 = 7;
160  void clear_p2();
161  static const int kP2FieldNumber = 7;
162  double p2() const;
163  void set_p2(double value);
164 
165  // @@protoc_insertion_point(class_scope:ignition.msgs.Distortion)
166  private:
167 
168  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
169  bool _is_default_instance_;
170  ::ignition::msgs::Header* header_;
172  double k1_;
173  double k2_;
174  double k3_;
175  double p1_;
176  double p2_;
177  mutable int _cached_size_;
178  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fdistortion_2eproto();
181 
182  void InitAsDefaultInstance();
183  static Distortion* default_instance_;
184 };
185 // ===================================================================
186 
187 
188 // ===================================================================
189 
190 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
191 // Distortion
192 
193 // optional .ignition.msgs.Header header = 1;
194 inline bool Distortion::has_header() const {
195  return !_is_default_instance_ && header_ != NULL;
196 }
198  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
199  header_ = NULL;
200 }
201 inline const ::ignition::msgs::Header& Distortion::header() const {
202  // @@protoc_insertion_point(field_get:ignition.msgs.Distortion.header)
203  return header_ != NULL ? *header_ : *default_instance_->header_;
204 }
205 inline ::ignition::msgs::Header* Distortion::mutable_header() {
206 
207  if (header_ == NULL) {
208  header_ = new ::ignition::msgs::Header;
209  }
210  // @@protoc_insertion_point(field_mutable:ignition.msgs.Distortion.header)
211  return header_;
212 }
213 inline ::ignition::msgs::Header* Distortion::release_header() {
214  // @@protoc_insertion_point(field_release:ignition.msgs.Distortion.header)
215 
216  ::ignition::msgs::Header* temp = header_;
217  header_ = NULL;
218  return temp;
219 }
221  delete header_;
222  header_ = header;
223  if (header) {
224 
225  } else {
226 
227  }
228  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Distortion.header)
229 }
230 
231 // optional .ignition.msgs.Vector2d center = 2;
232 inline bool Distortion::has_center() const {
233  return !_is_default_instance_ && center_ != NULL;
234 }
236  if (GetArenaNoVirtual() == NULL && center_ != NULL) delete center_;
237  center_ = NULL;
238 }
239 inline const ::ignition::msgs::Vector2d& Distortion::center() const {
240  // @@protoc_insertion_point(field_get:ignition.msgs.Distortion.center)
241  return center_ != NULL ? *center_ : *default_instance_->center_;
242 }
243 inline ::ignition::msgs::Vector2d* Distortion::mutable_center() {
244 
245  if (center_ == NULL) {
246  center_ = new ::ignition::msgs::Vector2d;
247  }
248  // @@protoc_insertion_point(field_mutable:ignition.msgs.Distortion.center)
249  return center_;
250 }
251 inline ::ignition::msgs::Vector2d* Distortion::release_center() {
252  // @@protoc_insertion_point(field_release:ignition.msgs.Distortion.center)
253 
254  ::ignition::msgs::Vector2d* temp = center_;
255  center_ = NULL;
256  return temp;
257 }
259  delete center_;
260  center_ = center;
261  if (center) {
262 
263  } else {
264 
265  }
266  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Distortion.center)
267 }
268 
269 // optional double k1 = 3;
270 inline void Distortion::clear_k1() {
271  k1_ = 0;
272 }
273 inline double Distortion::k1() const {
274  // @@protoc_insertion_point(field_get:ignition.msgs.Distortion.k1)
275  return k1_;
276 }
277 inline void Distortion::set_k1(double value) {
278 
279  k1_ = value;
280  // @@protoc_insertion_point(field_set:ignition.msgs.Distortion.k1)
281 }
282 
283 // optional double k2 = 4;
284 inline void Distortion::clear_k2() {
285  k2_ = 0;
286 }
287 inline double Distortion::k2() const {
288  // @@protoc_insertion_point(field_get:ignition.msgs.Distortion.k2)
289  return k2_;
290 }
291 inline void Distortion::set_k2(double value) {
292 
293  k2_ = value;
294  // @@protoc_insertion_point(field_set:ignition.msgs.Distortion.k2)
295 }
296 
297 // optional double k3 = 5;
298 inline void Distortion::clear_k3() {
299  k3_ = 0;
300 }
301 inline double Distortion::k3() const {
302  // @@protoc_insertion_point(field_get:ignition.msgs.Distortion.k3)
303  return k3_;
304 }
305 inline void Distortion::set_k3(double value) {
306 
307  k3_ = value;
308  // @@protoc_insertion_point(field_set:ignition.msgs.Distortion.k3)
309 }
310 
311 // optional double p1 = 6;
312 inline void Distortion::clear_p1() {
313  p1_ = 0;
314 }
315 inline double Distortion::p1() const {
316  // @@protoc_insertion_point(field_get:ignition.msgs.Distortion.p1)
317  return p1_;
318 }
319 inline void Distortion::set_p1(double value) {
320 
321  p1_ = value;
322  // @@protoc_insertion_point(field_set:ignition.msgs.Distortion.p1)
323 }
324 
325 // optional double p2 = 7;
326 inline void Distortion::clear_p2() {
327  p2_ = 0;
328 }
329 inline double Distortion::p2() const {
330  // @@protoc_insertion_point(field_get:ignition.msgs.Distortion.p2)
331  return p2_;
332 }
333 inline void Distortion::set_p2(double value) {
334 
335  p2_ = value;
336  // @@protoc_insertion_point(field_set:ignition.msgs.Distortion.p2)
337 }
338 
339 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
340 
345 // @@protoc_insertion_point(namespace_scope)
346 
347 } // namespace msgs
348 } // namespace ignition
349 
350 #ifdef _MSC_VER
351 #pragma warning(pop)
352 #endif
353 // @@protoc_insertion_point(global_scope)
354 
355 #endif // PROTOBUF_ignition_2fmsgs_2fdistortion_2eproto__INCLUDED
::ignition::msgs::Vector2d * mutable_center()
Definition: distortion.pb.h:243
void set_p1(double value)
Definition: distortion.pb.h:319
void set_k3(double value)
Definition: distortion.pb.h:305
const ::ignition::msgs::Header & header() const
Definition: distortion.pb.h:201
void set_allocated_header(::ignition::msgs::Header *header)
Definition: distortion.pb.h:220
void clear_header()
Definition: distortion.pb.h:197
::ignition::msgs::Vector2d * release_center()
Definition: distortion.pb.h:251
int GetCachedSize() const
Definition: distortion.pb.h:96
double k3() const
Definition: distortion.pb.h:301
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: distortion.pb.h:93
Definition: vector2d.pb.h:56
void protobuf_AssignDesc_ignition_2fmsgs_2fdistortion_2eproto()
const ::ignition::msgs::Vector2d & center() const
Definition: distortion.pb.h:239
double k2() const
Definition: distortion.pb.h:287
void set_p2(double value)
Definition: distortion.pb.h:333
void clear_p1()
Definition: distortion.pb.h:312
Distortion * New() const
Definition: distortion.pb.h:76
::ignition::msgs::Header * release_header()
Definition: distortion.pb.h:213
Definition: header.pb.h:161
void protobuf_ShutdownFile_ignition_2fmsgs_2fdistortion_2eproto()
std::shared_ptr< const Distortion > ConstDistortionSharedPtr
Definition: distortion.pb.h:344
::ignition::msgs::Header * mutable_header()
Definition: distortion.pb.h:205
void set_allocated_center(::ignition::msgs::Vector2d *center)
Definition: distortion.pb.h:258
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fdistortion_2eproto()
void clear_p2()
Definition: distortion.pb.h:326
std::unique_ptr< const Distortion > ConstDistortionUniquePtr
Definition: distortion.pb.h:342
Distortion & operator=(const Distortion &from)
Definition: distortion.pb.h:64
double k1() const
Definition: distortion.pb.h:273
double p1() const
Definition: distortion.pb.h:315
void clear_k1()
Definition: distortion.pb.h:270
std::shared_ptr< Distortion > DistortionSharedPtr
Definition: distortion.pb.h:343
STL class.
Definition: distortion.pb.h:57
void clear_k3()
Definition: distortion.pb.h:298
void clear_center()
Definition: distortion.pb.h:235
void set_k2(double value)
Definition: distortion.pb.h:291
std::unique_ptr< Distortion > DistortionUniquePtr
Definition: distortion.pb.h:341
void set_k1(double value)
Definition: distortion.pb.h:277
bool has_center() const
Definition: distortion.pb.h:232
bool has_header() const
Definition: distortion.pb.h:194
double p2() const
Definition: distortion.pb.h:329
void clear_k2()
Definition: distortion.pb.h:284