DCCL v3
arithmetic.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: dccl/arithmetic/protobuf/arithmetic.proto
3 
4 #ifndef PROTOBUF_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto__INCLUDED
5 #define PROTOBUF_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
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 2006001 < 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/generated_message_util.h>
23 #include <google/protobuf/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/unknown_field_set.h>
27 #include "dccl/option_extensions.pb.h"
28 #include <boost/units/quantity.hpp>
29 #include <boost/units/absolute.hpp>
30 #include <boost/units/dimensionless_type.hpp>
31 #include <boost/units/make_scaled_unit.hpp>
32 // @@protoc_insertion_point(includes)
33 
34 namespace dccl {
35 namespace arith {
36 namespace protobuf {
37 
38 // Internal implementation detail -- do not call these.
39 void protobuf_AddDesc_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto();
40 void protobuf_AssignDesc_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto();
41 void protobuf_ShutdownFile_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto();
42 
43 class ArithmeticModel;
44 
45 // ===================================================================
46 
47 class ArithmeticModel : public ::google::protobuf::Message {
48  public:
50  virtual ~ArithmeticModel();
51 
52  ArithmeticModel(const ArithmeticModel& from);
53 
54  inline ArithmeticModel& operator=(const ArithmeticModel& from) {
55  CopyFrom(from);
56  return *this;
57  }
58 
59  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
60  return _unknown_fields_;
61  }
62 
63  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
64  return &_unknown_fields_;
65  }
66 
67  static const ::google::protobuf::Descriptor* descriptor();
68  static const ArithmeticModel& default_instance();
69 
70  void Swap(ArithmeticModel* other);
71 
72  // implements Message ----------------------------------------------
73 
74  ArithmeticModel* New() const;
75  void CopyFrom(const ::google::protobuf::Message& from);
76  void MergeFrom(const ::google::protobuf::Message& from);
77  void CopyFrom(const ArithmeticModel& from);
78  void MergeFrom(const ArithmeticModel& from);
79  void Clear();
80  bool IsInitialized() const;
81 
82  int ByteSize() const;
83  bool MergePartialFromCodedStream(
84  ::google::protobuf::io::CodedInputStream* input);
85  void SerializeWithCachedSizes(
86  ::google::protobuf::io::CodedOutputStream* output) const;
87  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
88  int GetCachedSize() const { return _cached_size_; }
89  private:
90  void SharedCtor();
91  void SharedDtor();
92  void SetCachedSize(int size) const;
93  public:
94  ::google::protobuf::Metadata GetMetadata() const;
95 
96  // nested types ----------------------------------------------------
97 
98  // accessors -------------------------------------------------------
99 
100  // required string name = 1;
101  inline bool has_name() const;
102  inline void clear_name();
103  static const int kNameFieldNumber = 1;
104  inline const ::std::string& name() const;
105  inline void set_name(const ::std::string& value);
106  inline void set_name(const char* value);
107  inline void set_name(const char* value, size_t size);
108  inline ::std::string* mutable_name();
109  inline ::std::string* release_name();
110  inline void set_allocated_name(::std::string* name);
111 
112  // repeated uint32 frequency = 10;
113  inline int frequency_size() const;
114  inline void clear_frequency();
115  static const int kFrequencyFieldNumber = 10;
116  inline ::google::protobuf::uint32 frequency(int index) const;
117  inline void set_frequency(int index, ::google::protobuf::uint32 value);
118  inline void add_frequency(::google::protobuf::uint32 value);
119  inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
120  frequency() const;
121  inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
122  mutable_frequency();
123 
124  // optional uint32 eof_frequency = 11 [default = 1];
125  inline bool has_eof_frequency() const;
126  inline void clear_eof_frequency();
127  static const int kEofFrequencyFieldNumber = 11;
128  inline ::google::protobuf::uint32 eof_frequency() const;
129  inline void set_eof_frequency(::google::protobuf::uint32 value);
130 
131  // optional uint32 out_of_range_frequency = 12 [default = 0];
132  inline bool has_out_of_range_frequency() const;
133  inline void clear_out_of_range_frequency();
134  static const int kOutOfRangeFrequencyFieldNumber = 12;
135  inline ::google::protobuf::uint32 out_of_range_frequency() const;
136  inline void set_out_of_range_frequency(::google::protobuf::uint32 value);
137 
138  // repeated double value_bound = 20;
139  inline int value_bound_size() const;
140  inline void clear_value_bound();
141  static const int kValueBoundFieldNumber = 20;
142  inline double value_bound(int index) const;
143  inline void set_value_bound(int index, double value);
144  inline void add_value_bound(double value);
145  inline const ::google::protobuf::RepeatedField< double >&
146  value_bound() const;
147  inline ::google::protobuf::RepeatedField< double >*
148  mutable_value_bound();
149 
150  // optional bool is_adaptive = 30 [default = false];
151  inline bool has_is_adaptive() const;
152  inline void clear_is_adaptive();
153  static const int kIsAdaptiveFieldNumber = 30;
154  inline bool is_adaptive() const;
155  inline void set_is_adaptive(bool value);
156 
157  // @@protoc_insertion_point(class_scope:dccl.arith.protobuf.ArithmeticModel)
158  private:
159  inline void set_has_name();
160  inline void clear_has_name();
161  inline void set_has_eof_frequency();
162  inline void clear_has_eof_frequency();
163  inline void set_has_out_of_range_frequency();
164  inline void clear_has_out_of_range_frequency();
165  inline void set_has_is_adaptive();
166  inline void clear_has_is_adaptive();
167 
168  ::google::protobuf::UnknownFieldSet _unknown_fields_;
169 
170  ::google::protobuf::uint32 _has_bits_[1];
171  mutable int _cached_size_;
172  ::std::string* name_;
173  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > frequency_;
174  ::google::protobuf::uint32 eof_frequency_;
175  ::google::protobuf::uint32 out_of_range_frequency_;
176  ::google::protobuf::RepeatedField< double > value_bound_;
177  bool is_adaptive_;
178  friend void protobuf_AddDesc_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto();
179  friend void protobuf_AssignDesc_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto();
180  friend void protobuf_ShutdownFile_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto();
181 
182  void InitAsDefaultInstance();
183  static ArithmeticModel* default_instance_;
184 };
185 // ===================================================================
186 
187 
188 // ===================================================================
189 
190 // ArithmeticModel
191 
192 // required string name = 1;
193 inline bool ArithmeticModel::has_name() const {
194  return (_has_bits_[0] & 0x00000001u) != 0;
195 }
196 inline void ArithmeticModel::set_has_name() {
197  _has_bits_[0] |= 0x00000001u;
198 }
199 inline void ArithmeticModel::clear_has_name() {
200  _has_bits_[0] &= ~0x00000001u;
201 }
202 inline void ArithmeticModel::clear_name() {
203  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
204  name_->clear();
205  }
206  clear_has_name();
207 }
208 inline const ::std::string& ArithmeticModel::name() const {
209  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.name)
210  return *name_;
211 }
212 inline void ArithmeticModel::set_name(const ::std::string& value) {
213  set_has_name();
214  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
215  name_ = new ::std::string;
216  }
217  name_->assign(value);
218  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.name)
219 }
220 inline void ArithmeticModel::set_name(const char* value) {
221  set_has_name();
222  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
223  name_ = new ::std::string;
224  }
225  name_->assign(value);
226  // @@protoc_insertion_point(field_set_char:dccl.arith.protobuf.ArithmeticModel.name)
227 }
228 inline void ArithmeticModel::set_name(const char* value, size_t size) {
229  set_has_name();
230  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
231  name_ = new ::std::string;
232  }
233  name_->assign(reinterpret_cast<const char*>(value), size);
234  // @@protoc_insertion_point(field_set_pointer:dccl.arith.protobuf.ArithmeticModel.name)
235 }
236 inline ::std::string* ArithmeticModel::mutable_name() {
237  set_has_name();
238  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
239  name_ = new ::std::string;
240  }
241  // @@protoc_insertion_point(field_mutable:dccl.arith.protobuf.ArithmeticModel.name)
242  return name_;
243 }
244 inline ::std::string* ArithmeticModel::release_name() {
245  clear_has_name();
246  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
247  return NULL;
248  } else {
249  ::std::string* temp = name_;
250  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
251  return temp;
252  }
253 }
254 inline void ArithmeticModel::set_allocated_name(::std::string* name) {
255  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
256  delete name_;
257  }
258  if (name) {
259  set_has_name();
260  name_ = name;
261  } else {
262  clear_has_name();
263  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
264  }
265  // @@protoc_insertion_point(field_set_allocated:dccl.arith.protobuf.ArithmeticModel.name)
266 }
267 
268 // repeated uint32 frequency = 10;
269 inline int ArithmeticModel::frequency_size() const {
270  return frequency_.size();
271 }
272 inline void ArithmeticModel::clear_frequency() {
273  frequency_.Clear();
274 }
275 inline ::google::protobuf::uint32 ArithmeticModel::frequency(int index) const {
276  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.frequency)
277  return frequency_.Get(index);
278 }
279 inline void ArithmeticModel::set_frequency(int index, ::google::protobuf::uint32 value) {
280  frequency_.Set(index, value);
281  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.frequency)
282 }
283 inline void ArithmeticModel::add_frequency(::google::protobuf::uint32 value) {
284  frequency_.Add(value);
285  // @@protoc_insertion_point(field_add:dccl.arith.protobuf.ArithmeticModel.frequency)
286 }
287 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
288 ArithmeticModel::frequency() const {
289  // @@protoc_insertion_point(field_list:dccl.arith.protobuf.ArithmeticModel.frequency)
290  return frequency_;
291 }
292 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
293 ArithmeticModel::mutable_frequency() {
294  // @@protoc_insertion_point(field_mutable_list:dccl.arith.protobuf.ArithmeticModel.frequency)
295  return &frequency_;
296 }
297 
298 // optional uint32 eof_frequency = 11 [default = 1];
299 inline bool ArithmeticModel::has_eof_frequency() const {
300  return (_has_bits_[0] & 0x00000004u) != 0;
301 }
302 inline void ArithmeticModel::set_has_eof_frequency() {
303  _has_bits_[0] |= 0x00000004u;
304 }
305 inline void ArithmeticModel::clear_has_eof_frequency() {
306  _has_bits_[0] &= ~0x00000004u;
307 }
308 inline void ArithmeticModel::clear_eof_frequency() {
309  eof_frequency_ = 1u;
310  clear_has_eof_frequency();
311 }
312 inline ::google::protobuf::uint32 ArithmeticModel::eof_frequency() const {
313  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.eof_frequency)
314  return eof_frequency_;
315 }
316 inline void ArithmeticModel::set_eof_frequency(::google::protobuf::uint32 value) {
317  set_has_eof_frequency();
318  eof_frequency_ = value;
319  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.eof_frequency)
320 }
321 
322 // optional uint32 out_of_range_frequency = 12 [default = 0];
323 inline bool ArithmeticModel::has_out_of_range_frequency() const {
324  return (_has_bits_[0] & 0x00000008u) != 0;
325 }
326 inline void ArithmeticModel::set_has_out_of_range_frequency() {
327  _has_bits_[0] |= 0x00000008u;
328 }
329 inline void ArithmeticModel::clear_has_out_of_range_frequency() {
330  _has_bits_[0] &= ~0x00000008u;
331 }
332 inline void ArithmeticModel::clear_out_of_range_frequency() {
333  out_of_range_frequency_ = 0u;
334  clear_has_out_of_range_frequency();
335 }
336 inline ::google::protobuf::uint32 ArithmeticModel::out_of_range_frequency() const {
337  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.out_of_range_frequency)
338  return out_of_range_frequency_;
339 }
340 inline void ArithmeticModel::set_out_of_range_frequency(::google::protobuf::uint32 value) {
341  set_has_out_of_range_frequency();
342  out_of_range_frequency_ = value;
343  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.out_of_range_frequency)
344 }
345 
346 // repeated double value_bound = 20;
347 inline int ArithmeticModel::value_bound_size() const {
348  return value_bound_.size();
349 }
350 inline void ArithmeticModel::clear_value_bound() {
351  value_bound_.Clear();
352 }
353 inline double ArithmeticModel::value_bound(int index) const {
354  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.value_bound)
355  return value_bound_.Get(index);
356 }
357 inline void ArithmeticModel::set_value_bound(int index, double value) {
358  value_bound_.Set(index, value);
359  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.value_bound)
360 }
361 inline void ArithmeticModel::add_value_bound(double value) {
362  value_bound_.Add(value);
363  // @@protoc_insertion_point(field_add:dccl.arith.protobuf.ArithmeticModel.value_bound)
364 }
365 inline const ::google::protobuf::RepeatedField< double >&
366 ArithmeticModel::value_bound() const {
367  // @@protoc_insertion_point(field_list:dccl.arith.protobuf.ArithmeticModel.value_bound)
368  return value_bound_;
369 }
370 inline ::google::protobuf::RepeatedField< double >*
371 ArithmeticModel::mutable_value_bound() {
372  // @@protoc_insertion_point(field_mutable_list:dccl.arith.protobuf.ArithmeticModel.value_bound)
373  return &value_bound_;
374 }
375 
376 // optional bool is_adaptive = 30 [default = false];
377 inline bool ArithmeticModel::has_is_adaptive() const {
378  return (_has_bits_[0] & 0x00000020u) != 0;
379 }
380 inline void ArithmeticModel::set_has_is_adaptive() {
381  _has_bits_[0] |= 0x00000020u;
382 }
383 inline void ArithmeticModel::clear_has_is_adaptive() {
384  _has_bits_[0] &= ~0x00000020u;
385 }
386 inline void ArithmeticModel::clear_is_adaptive() {
387  is_adaptive_ = false;
388  clear_has_is_adaptive();
389 }
390 inline bool ArithmeticModel::is_adaptive() const {
391  // @@protoc_insertion_point(field_get:dccl.arith.protobuf.ArithmeticModel.is_adaptive)
392  return is_adaptive_;
393 }
394 inline void ArithmeticModel::set_is_adaptive(bool value) {
395  set_has_is_adaptive();
396  is_adaptive_ = value;
397  // @@protoc_insertion_point(field_set:dccl.arith.protobuf.ArithmeticModel.is_adaptive)
398 }
399 
400 
401 // @@protoc_insertion_point(namespace_scope)
402 
403 } // namespace protobuf
404 } // namespace arith
405 } // namespace dccl
406 
407 #ifndef SWIG
408 namespace google {
409 namespace protobuf {
410 
411 
412 } // namespace google
413 } // namespace protobuf
414 #endif // SWIG
415 
416 // @@protoc_insertion_point(global_scope)
417 
418 #endif // PROTOBUF_dccl_2farithmetic_2fprotobuf_2farithmetic_2eproto__INCLUDED
Dynamic Compact Control Language namespace.