DCCL v4
arithmetic.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: dccl/arithmetic/protobuf/arithmetic.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3012000
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 3012004 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
34 #include <google/protobuf/unknown_field_set.h>
35 #include "dccl/option_extensions.pb.h"
36 #include <boost/units/quantity.hpp>
37 #include <boost/units/absolute.hpp>
38 #include <boost/units/dimensionless_type.hpp>
39 #include <boost/units/make_scaled_unit.hpp>
40 // @@protoc_insertion_point(includes)
41 #include <google/protobuf/port_def.inc>
42 #define PROTOBUF_INTERNAL_EXPORT_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto
43 PROTOBUF_NAMESPACE_OPEN
44 namespace internal {
45 class AnyMetadata;
46 } // namespace internal
47 PROTOBUF_NAMESPACE_CLOSE
48 
49 // Internal implementation detail -- do not use these members.
51  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
52  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
53  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
54  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
55  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
56  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
57  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
58  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
59  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
60 };
61 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto;
62 namespace dccl {
63 namespace arith {
64 namespace protobuf {
65 class ArithmeticModel;
66 class ArithmeticModelDefaultTypeInternal;
67 extern ArithmeticModelDefaultTypeInternal _ArithmeticModel_default_instance_;
68 } // namespace protobuf
69 } // namespace arith
70 } // namespace dccl
71 PROTOBUF_NAMESPACE_OPEN
72 template<> ::dccl::arith::protobuf::ArithmeticModel* Arena::CreateMaybeMessage<::dccl::arith::protobuf::ArithmeticModel>(Arena*);
73 PROTOBUF_NAMESPACE_CLOSE
74 namespace dccl {
75 namespace arith {
76 namespace protobuf {
77 
78 // ===================================================================
79 
80 class ArithmeticModel PROTOBUF_FINAL :
81  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:dccl.arith.protobuf.ArithmeticModel) */ {
82  public:
83  inline ArithmeticModel() : ArithmeticModel(nullptr) {};
84  virtual ~ArithmeticModel();
85 
86  ArithmeticModel(const ArithmeticModel& from);
87  ArithmeticModel(ArithmeticModel&& from) noexcept
88  : ArithmeticModel() {
89  *this = ::std::move(from);
90  }
91 
92  inline ArithmeticModel& operator=(const ArithmeticModel& from) {
93  CopyFrom(from);
94  return *this;
95  }
96  inline ArithmeticModel& operator=(ArithmeticModel&& from) noexcept {
97  if (GetArena() == from.GetArena()) {
98  if (this != &from) InternalSwap(&from);
99  } else {
100  CopyFrom(from);
101  }
102  return *this;
103  }
104 
105  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
106  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
107  }
108  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
109  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
110  }
111 
112  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
113  return GetDescriptor();
114  }
115  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
116  return GetMetadataStatic().descriptor;
117  }
118  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
119  return GetMetadataStatic().reflection;
120  }
121  static const ArithmeticModel& default_instance();
122 
123  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
124  static inline const ArithmeticModel* internal_default_instance() {
125  return reinterpret_cast<const ArithmeticModel*>(
126  &_ArithmeticModel_default_instance_);
127  }
128  static constexpr int kIndexInFileMessages =
129  0;
130 
131  friend void swap(ArithmeticModel& a, ArithmeticModel& b) {
132  a.Swap(&b);
133  }
134  inline void Swap(ArithmeticModel* other) {
135  if (other == this) return;
136  if (GetArena() == other->GetArena()) {
137  InternalSwap(other);
138  } else {
139  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
140  }
141  }
142  void UnsafeArenaSwap(ArithmeticModel* other) {
143  if (other == this) return;
144  GOOGLE_DCHECK(GetArena() == other->GetArena());
145  InternalSwap(other);
146  }
147 
148  // implements Message ----------------------------------------------
149 
150  inline ArithmeticModel* New() const final {
151  return CreateMaybeMessage<ArithmeticModel>(nullptr);
152  }
153 
154  ArithmeticModel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
155  return CreateMaybeMessage<ArithmeticModel>(arena);
156  }
157  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
158  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
159  void CopyFrom(const ArithmeticModel& from);
160  void MergeFrom(const ArithmeticModel& from);
161  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
162  bool IsInitialized() const final;
163 
164  size_t ByteSizeLong() const final;
165  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
166  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
167  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
168  int GetCachedSize() const final { return _cached_size_.Get(); }
169 
170  private:
171  inline void SharedCtor();
172  inline void SharedDtor();
173  void SetCachedSize(int size) const final;
174  void InternalSwap(ArithmeticModel* other);
175  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
176  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
177  return "dccl.arith.protobuf.ArithmeticModel";
178  }
179  protected:
180  explicit ArithmeticModel(::PROTOBUF_NAMESPACE_ID::Arena* arena);
181  private:
182  static void ArenaDtor(void* object);
183  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
184  public:
185 
186  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
187  private:
188  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
189  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto);
190  return ::descriptor_table_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto.file_level_metadata[kIndexInFileMessages];
191  }
192 
193  public:
194 
195  // nested types ----------------------------------------------------
196 
197  // accessors -------------------------------------------------------
198 
199  enum : int {
200  kFrequencyFieldNumber = 10,
201  kValueBoundFieldNumber = 20,
202  kNameFieldNumber = 1,
203  kOutOfRangeFrequencyFieldNumber = 12,
204  kIsAdaptiveFieldNumber = 30,
205  kEofFrequencyFieldNumber = 11,
206  };
207  // repeated uint32 frequency = 10;
208  int frequency_size() const;
209  private:
210  int _internal_frequency_size() const;
211  public:
212  void clear_frequency();
213  private:
214  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_frequency(int index) const;
215  const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >&
216  _internal_frequency() const;
217  void _internal_add_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value);
218  ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >*
219  _internal_mutable_frequency();
220  public:
221  ::PROTOBUF_NAMESPACE_ID::uint32 frequency(int index) const;
222  void set_frequency(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value);
223  void add_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value);
224  const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >&
225  frequency() const;
226  ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >*
227  mutable_frequency();
228 
229  // repeated double value_bound = 20;
230  int value_bound_size() const;
231  private:
232  int _internal_value_bound_size() const;
233  public:
234  void clear_value_bound();
235  private:
236  double _internal_value_bound(int index) const;
237  const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
238  _internal_value_bound() const;
239  void _internal_add_value_bound(double value);
240  ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
241  _internal_mutable_value_bound();
242  public:
243  double value_bound(int index) const;
244  void set_value_bound(int index, double value);
245  void add_value_bound(double value);
246  const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
247  value_bound() const;
248  ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
249  mutable_value_bound();
250 
251  // required string name = 1;
252  bool has_name() const;
253  private:
254  bool _internal_has_name() const;
255  public:
256  void clear_name();
257  const std::string& name() const;
258  void set_name(const std::string& value);
259  void set_name(std::string&& value);
260  void set_name(const char* value);
261  void set_name(const char* value, size_t size);
262  std::string* mutable_name();
263  std::string* release_name();
264  void set_allocated_name(std::string* name);
265  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
266  " string fields are deprecated and will be removed in a"
267  " future release.")
268  std::string* unsafe_arena_release_name();
269  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
270  " string fields are deprecated and will be removed in a"
271  " future release.")
272  void unsafe_arena_set_allocated_name(
273  std::string* name);
274  private:
275  const std::string& _internal_name() const;
276  void _internal_set_name(const std::string& value);
277  std::string* _internal_mutable_name();
278  public:
279 
280  // optional uint32 out_of_range_frequency = 12 [default = 0];
281  bool has_out_of_range_frequency() const;
282  private:
283  bool _internal_has_out_of_range_frequency() const;
284  public:
285  void clear_out_of_range_frequency();
286  ::PROTOBUF_NAMESPACE_ID::uint32 out_of_range_frequency() const;
287  void set_out_of_range_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value);
288  private:
289  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_out_of_range_frequency() const;
290  void _internal_set_out_of_range_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value);
291  public:
292 
293  // optional bool is_adaptive = 30 [default = false];
294  bool has_is_adaptive() const;
295  private:
296  bool _internal_has_is_adaptive() const;
297  public:
298  void clear_is_adaptive();
299  bool is_adaptive() const;
300  void set_is_adaptive(bool value);
301  private:
302  bool _internal_is_adaptive() const;
303  void _internal_set_is_adaptive(bool value);
304  public:
305 
306  // optional uint32 eof_frequency = 11 [default = 1];
307  bool has_eof_frequency() const;
308  private:
309  bool _internal_has_eof_frequency() const;
310  public:
311  void clear_eof_frequency();
312  ::PROTOBUF_NAMESPACE_ID::uint32 eof_frequency() const;
313  void set_eof_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value);
314  private:
315  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_eof_frequency() const;
316  void _internal_set_eof_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value);
317  public:
318 
319  // @@protoc_insertion_point(class_scope:dccl.arith.protobuf.ArithmeticModel)
320  private:
321  class _Internal;
322 
323  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
324  typedef void InternalArenaConstructable_;
325  typedef void DestructorSkippable_;
326  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
327  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
328  ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 > frequency_;
329  ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > value_bound_;
330  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
331  ::PROTOBUF_NAMESPACE_ID::uint32 out_of_range_frequency_;
332  bool is_adaptive_;
333  ::PROTOBUF_NAMESPACE_ID::uint32 eof_frequency_;
334  friend struct ::TableStruct_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto;
335 };
336 // ===================================================================
337 
338 
339 // ===================================================================
340 
341 #ifdef __GNUC__
342  #pragma GCC diagnostic push
343  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
344 #endif // __GNUC__
345 // ArithmeticModel
346 
347 // required string name = 1;
348 inline bool ArithmeticModel::_internal_has_name() const {
349  bool value = (_has_bits_[0] & 0x00000001u) != 0;
350  return value;
351 }
352 inline bool ArithmeticModel::has_name() const {
353  return _internal_has_name();
354 }
355 inline void ArithmeticModel::clear_name() {
356  name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
357  _has_bits_[0] &= ~0x00000001u;
358 }
359 inline const std::string& ArithmeticModel::name() const {
360  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.name)
361  return _internal_name();
362 }
363 inline void ArithmeticModel::set_name(const std::string& value) {
364  _internal_set_name(value);
365  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.name)
366 }
367 inline std::string* ArithmeticModel::mutable_name() {
368  // @@protoc_insertion_point(field_mutable:dccl.arith.protobuf.ArithmeticModel.name)
369  return _internal_mutable_name();
370 }
371 inline const std::string& ArithmeticModel::_internal_name() const {
372  return name_.Get();
373 }
374 inline void ArithmeticModel::_internal_set_name(const std::string& value) {
375  _has_bits_[0] |= 0x00000001u;
376  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
377 }
378 inline void ArithmeticModel::set_name(std::string&& value) {
379  _has_bits_[0] |= 0x00000001u;
380  name_.Set(
381  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
382  // @@protoc_insertion_point(field_set_rvalue:dccl.arith.protobuf.ArithmeticModel.name)
383 }
384 inline void ArithmeticModel::set_name(const char* value) {
385  GOOGLE_DCHECK(value != nullptr);
386  _has_bits_[0] |= 0x00000001u;
387  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
388  GetArena());
389  // @@protoc_insertion_point(field_set_char:dccl.arith.protobuf.ArithmeticModel.name)
390 }
391 inline void ArithmeticModel::set_name(const char* value,
392  size_t size) {
393  _has_bits_[0] |= 0x00000001u;
394  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
395  reinterpret_cast<const char*>(value), size), GetArena());
396  // @@protoc_insertion_point(field_set_pointer:dccl.arith.protobuf.ArithmeticModel.name)
397 }
398 inline std::string* ArithmeticModel::_internal_mutable_name() {
399  _has_bits_[0] |= 0x00000001u;
400  return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
401 }
402 inline std::string* ArithmeticModel::release_name() {
403  // @@protoc_insertion_point(field_release:dccl.arith.protobuf.ArithmeticModel.name)
404  if (!_internal_has_name()) {
405  return nullptr;
406  }
407  _has_bits_[0] &= ~0x00000001u;
408  return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
409 }
410 inline void ArithmeticModel::set_allocated_name(std::string* name) {
411  if (name != nullptr) {
412  _has_bits_[0] |= 0x00000001u;
413  } else {
414  _has_bits_[0] &= ~0x00000001u;
415  }
416  name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
417  GetArena());
418  // @@protoc_insertion_point(field_set_allocated:dccl.arith.protobuf.ArithmeticModel.name)
419 }
420 inline std::string* ArithmeticModel::unsafe_arena_release_name() {
421  // @@protoc_insertion_point(field_unsafe_arena_release:dccl.arith.protobuf.ArithmeticModel.name)
422  GOOGLE_DCHECK(GetArena() != nullptr);
423  _has_bits_[0] &= ~0x00000001u;
424  return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
425  GetArena());
426 }
427 inline void ArithmeticModel::unsafe_arena_set_allocated_name(
428  std::string* name) {
429  GOOGLE_DCHECK(GetArena() != nullptr);
430  if (name != nullptr) {
431  _has_bits_[0] |= 0x00000001u;
432  } else {
433  _has_bits_[0] &= ~0x00000001u;
434  }
435  name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
436  name, GetArena());
437  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:dccl.arith.protobuf.ArithmeticModel.name)
438 }
439 
440 // repeated uint32 frequency = 10;
441 inline int ArithmeticModel::_internal_frequency_size() const {
442  return frequency_.size();
443 }
444 inline int ArithmeticModel::frequency_size() const {
445  return _internal_frequency_size();
446 }
447 inline void ArithmeticModel::clear_frequency() {
448  frequency_.Clear();
449 }
450 inline ::PROTOBUF_NAMESPACE_ID::uint32 ArithmeticModel::_internal_frequency(int index) const {
451  return frequency_.Get(index);
452 }
453 inline ::PROTOBUF_NAMESPACE_ID::uint32 ArithmeticModel::frequency(int index) const {
454  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.frequency)
455  return _internal_frequency(index);
456 }
457 inline void ArithmeticModel::set_frequency(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value) {
458  frequency_.Set(index, value);
459  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.frequency)
460 }
461 inline void ArithmeticModel::_internal_add_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value) {
462  frequency_.Add(value);
463 }
464 inline void ArithmeticModel::add_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value) {
465  _internal_add_frequency(value);
466  // @@protoc_insertion_point(field_add:dccl.arith.protobuf.ArithmeticModel.frequency)
467 }
468 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >&
469 ArithmeticModel::_internal_frequency() const {
470  return frequency_;
471 }
472 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >&
473 ArithmeticModel::frequency() const {
474  // @@protoc_insertion_point(field_list:dccl.arith.protobuf.ArithmeticModel.frequency)
475  return _internal_frequency();
476 }
477 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >*
478 ArithmeticModel::_internal_mutable_frequency() {
479  return &frequency_;
480 }
481 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >*
482 ArithmeticModel::mutable_frequency() {
483  // @@protoc_insertion_point(field_mutable_list:dccl.arith.protobuf.ArithmeticModel.frequency)
484  return _internal_mutable_frequency();
485 }
486 
487 // optional uint32 eof_frequency = 11 [default = 1];
488 inline bool ArithmeticModel::_internal_has_eof_frequency() const {
489  bool value = (_has_bits_[0] & 0x00000008u) != 0;
490  return value;
491 }
492 inline bool ArithmeticModel::has_eof_frequency() const {
493  return _internal_has_eof_frequency();
494 }
495 inline void ArithmeticModel::clear_eof_frequency() {
496  eof_frequency_ = 1u;
497  _has_bits_[0] &= ~0x00000008u;
498 }
499 inline ::PROTOBUF_NAMESPACE_ID::uint32 ArithmeticModel::_internal_eof_frequency() const {
500  return eof_frequency_;
501 }
502 inline ::PROTOBUF_NAMESPACE_ID::uint32 ArithmeticModel::eof_frequency() const {
503  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.eof_frequency)
504  return _internal_eof_frequency();
505 }
506 inline void ArithmeticModel::_internal_set_eof_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value) {
507  _has_bits_[0] |= 0x00000008u;
508  eof_frequency_ = value;
509 }
510 inline void ArithmeticModel::set_eof_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value) {
511  _internal_set_eof_frequency(value);
512  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.eof_frequency)
513 }
514 
515 // optional uint32 out_of_range_frequency = 12 [default = 0];
516 inline bool ArithmeticModel::_internal_has_out_of_range_frequency() const {
517  bool value = (_has_bits_[0] & 0x00000002u) != 0;
518  return value;
519 }
520 inline bool ArithmeticModel::has_out_of_range_frequency() const {
521  return _internal_has_out_of_range_frequency();
522 }
523 inline void ArithmeticModel::clear_out_of_range_frequency() {
524  out_of_range_frequency_ = 0u;
525  _has_bits_[0] &= ~0x00000002u;
526 }
527 inline ::PROTOBUF_NAMESPACE_ID::uint32 ArithmeticModel::_internal_out_of_range_frequency() const {
528  return out_of_range_frequency_;
529 }
530 inline ::PROTOBUF_NAMESPACE_ID::uint32 ArithmeticModel::out_of_range_frequency() const {
531  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.out_of_range_frequency)
532  return _internal_out_of_range_frequency();
533 }
534 inline void ArithmeticModel::_internal_set_out_of_range_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value) {
535  _has_bits_[0] |= 0x00000002u;
536  out_of_range_frequency_ = value;
537 }
538 inline void ArithmeticModel::set_out_of_range_frequency(::PROTOBUF_NAMESPACE_ID::uint32 value) {
539  _internal_set_out_of_range_frequency(value);
540  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.out_of_range_frequency)
541 }
542 
543 // repeated double value_bound = 20;
544 inline int ArithmeticModel::_internal_value_bound_size() const {
545  return value_bound_.size();
546 }
547 inline int ArithmeticModel::value_bound_size() const {
548  return _internal_value_bound_size();
549 }
550 inline void ArithmeticModel::clear_value_bound() {
551  value_bound_.Clear();
552 }
553 inline double ArithmeticModel::_internal_value_bound(int index) const {
554  return value_bound_.Get(index);
555 }
556 inline double ArithmeticModel::value_bound(int index) const {
557  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.value_bound)
558  return _internal_value_bound(index);
559 }
560 inline void ArithmeticModel::set_value_bound(int index, double value) {
561  value_bound_.Set(index, value);
562  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.value_bound)
563 }
564 inline void ArithmeticModel::_internal_add_value_bound(double value) {
565  value_bound_.Add(value);
566 }
567 inline void ArithmeticModel::add_value_bound(double value) {
568  _internal_add_value_bound(value);
569  // @@protoc_insertion_point(field_add:dccl.arith.protobuf.ArithmeticModel.value_bound)
570 }
571 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
572 ArithmeticModel::_internal_value_bound() const {
573  return value_bound_;
574 }
575 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
576 ArithmeticModel::value_bound() const {
577  // @@protoc_insertion_point(field_list:dccl.arith.protobuf.ArithmeticModel.value_bound)
578  return _internal_value_bound();
579 }
580 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
581 ArithmeticModel::_internal_mutable_value_bound() {
582  return &value_bound_;
583 }
584 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
585 ArithmeticModel::mutable_value_bound() {
586  // @@protoc_insertion_point(field_mutable_list:dccl.arith.protobuf.ArithmeticModel.value_bound)
587  return _internal_mutable_value_bound();
588 }
589 
590 // optional bool is_adaptive = 30 [default = false];
591 inline bool ArithmeticModel::_internal_has_is_adaptive() const {
592  bool value = (_has_bits_[0] & 0x00000004u) != 0;
593  return value;
594 }
595 inline bool ArithmeticModel::has_is_adaptive() const {
596  return _internal_has_is_adaptive();
597 }
598 inline void ArithmeticModel::clear_is_adaptive() {
599  is_adaptive_ = false;
600  _has_bits_[0] &= ~0x00000004u;
601 }
602 inline bool ArithmeticModel::_internal_is_adaptive() const {
603  return is_adaptive_;
604 }
605 inline bool ArithmeticModel::is_adaptive() const {
606  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.is_adaptive)
607  return _internal_is_adaptive();
608 }
609 inline void ArithmeticModel::_internal_set_is_adaptive(bool value) {
610  _has_bits_[0] |= 0x00000004u;
611  is_adaptive_ = value;
612 }
613 inline void ArithmeticModel::set_is_adaptive(bool value) {
614  _internal_set_is_adaptive(value);
615  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.is_adaptive)
616 }
617 
618 #ifdef __GNUC__
619  #pragma GCC diagnostic pop
620 #endif // __GNUC__
621 
622 // @@protoc_insertion_point(namespace_scope)
623 
624 } // namespace protobuf
625 } // namespace arith
626 } // namespace dccl
627 
628 // @@protoc_insertion_point(global_scope)
629 
630 #include <google/protobuf/port_undef.inc>
631 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto
Dynamic Compact Control Language namespace.
Definition: any.h:50