xmos-ai-tools 1.3.2.dev80__py3-none-macosx_10_15_universal2.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xmos_ai_tools/__init__.py +7 -0
- xmos_ai_tools/io_server/__init__.py +151 -0
- xmos_ai_tools/runtime/__init__.py +0 -0
- xmos_ai_tools/runtime/buildfiles/aitoolslib.cmake +13 -0
- xmos_ai_tools/runtime/buildfiles/aitoolslib.make +8 -0
- xmos_ai_tools/runtime/include/flash_server.h +74 -0
- xmos_ai_tools/runtime/include/flatbuffers/allocator.h +68 -0
- xmos_ai_tools/runtime/include/flatbuffers/array.h +243 -0
- xmos_ai_tools/runtime/include/flatbuffers/base.h +474 -0
- xmos_ai_tools/runtime/include/flatbuffers/bfbs_generator.h +43 -0
- xmos_ai_tools/runtime/include/flatbuffers/buffer.h +142 -0
- xmos_ai_tools/runtime/include/flatbuffers/buffer_ref.h +53 -0
- xmos_ai_tools/runtime/include/flatbuffers/code_generators.h +235 -0
- xmos_ai_tools/runtime/include/flatbuffers/default_allocator.h +64 -0
- xmos_ai_tools/runtime/include/flatbuffers/detached_buffer.h +114 -0
- xmos_ai_tools/runtime/include/flatbuffers/flatbuffer_builder.h +1197 -0
- xmos_ai_tools/runtime/include/flatbuffers/flatbuffers.h +270 -0
- xmos_ai_tools/runtime/include/flatbuffers/flatc.h +111 -0
- xmos_ai_tools/runtime/include/flatbuffers/flexbuffers.h +1897 -0
- xmos_ai_tools/runtime/include/flatbuffers/grpc.h +300 -0
- xmos_ai_tools/runtime/include/flatbuffers/hash.h +127 -0
- xmos_ai_tools/runtime/include/flatbuffers/idl.h +1232 -0
- xmos_ai_tools/runtime/include/flatbuffers/minireflect.h +419 -0
- xmos_ai_tools/runtime/include/flatbuffers/pch/flatc_pch.h +39 -0
- xmos_ai_tools/runtime/include/flatbuffers/pch/pch.h +38 -0
- xmos_ai_tools/runtime/include/flatbuffers/reflection.h +502 -0
- xmos_ai_tools/runtime/include/flatbuffers/reflection_generated.h +1449 -0
- xmos_ai_tools/runtime/include/flatbuffers/registry.h +128 -0
- xmos_ai_tools/runtime/include/flatbuffers/stl_emulation.h +509 -0
- xmos_ai_tools/runtime/include/flatbuffers/string.h +64 -0
- xmos_ai_tools/runtime/include/flatbuffers/struct.h +53 -0
- xmos_ai_tools/runtime/include/flatbuffers/table.h +168 -0
- xmos_ai_tools/runtime/include/flatbuffers/util.h +690 -0
- xmos_ai_tools/runtime/include/flatbuffers/vector.h +370 -0
- xmos_ai_tools/runtime/include/flatbuffers/vector_downward.h +271 -0
- xmos_ai_tools/runtime/include/flatbuffers/verifier.h +283 -0
- xmos_ai_tools/runtime/include/ioserver.h +44 -0
- xmos_ai_tools/runtime/include/lib_nn/api/TransposeConv.h +24 -0
- xmos_ai_tools/runtime/include/lib_nn/api/add_int16.h +27 -0
- xmos_ai_tools/runtime/include/lib_nn/api/add_int16_transform.h +42 -0
- xmos_ai_tools/runtime/include/lib_nn/api/dequantize_int16.h +22 -0
- xmos_ai_tools/runtime/include/lib_nn/api/dequantize_int16_transform.h +34 -0
- xmos_ai_tools/runtime/include/lib_nn/api/expand_8_to_16.h +8 -0
- xmos_ai_tools/runtime/include/lib_nn/api/multiply_int16.h +42 -0
- xmos_ai_tools/runtime/include/lib_nn/api/multiply_int16_transform.h +71 -0
- xmos_ai_tools/runtime/include/lib_nn/api/nn_api.h +15 -0
- xmos_ai_tools/runtime/include/lib_nn/api/nn_bin_types.h +14 -0
- xmos_ai_tools/runtime/include/lib_nn/api/nn_config.h +287 -0
- xmos_ai_tools/runtime/include/lib_nn/api/nn_conv2d_structs.h +72 -0
- xmos_ai_tools/runtime/include/lib_nn/api/nn_image.h +26 -0
- xmos_ai_tools/runtime/include/lib_nn/api/nn_layers.h +303 -0
- xmos_ai_tools/runtime/include/lib_nn/api/nn_op_helper.h +132 -0
- xmos_ai_tools/runtime/include/lib_nn/api/nn_op_utils.h +150 -0
- xmos_ai_tools/runtime/include/lib_nn/api/nn_operator.h +18 -0
- xmos_ai_tools/runtime/include/lib_nn/api/nn_pooling.h +551 -0
- xmos_ai_tools/runtime/include/lib_nn/api/nn_types.h +83 -0
- xmos_ai_tools/runtime/include/lib_nn/api/nn_window_params.h +55 -0
- xmos_ai_tools/runtime/include/lib_nn/api/output_transform_fn_int16.h +54 -0
- xmos_ai_tools/runtime/include/lib_nn/api/output_transform_fn_int16_kernel_transform.h +37 -0
- xmos_ai_tools/runtime/include/lib_nn/api/output_transform_fn_int16_mappings.h +13 -0
- xmos_ai_tools/runtime/include/lib_nn/api/quadratic_approximation.h +82 -0
- xmos_ai_tools/runtime/include/lib_nn/api/quadratic_interpolation.h +23 -0
- xmos_ai_tools/runtime/include/lib_nn/api/quantize_int16.h +22 -0
- xmos_ai_tools/runtime/include/lib_nn/api/quantize_int16_transform.h +33 -0
- xmos_ai_tools/runtime/include/lib_nn/api/version.h +13 -0
- xmos_ai_tools/runtime/include/lib_nn/api/vpu_memmove_word_aligned.h +15 -0
- xmos_ai_tools/runtime/include/lib_nn/api/vpu_memset_256.h +55 -0
- xmos_ai_tools/runtime/include/lib_nn/api/vpu_sim.h +118 -0
- xmos_ai_tools/runtime/include/lib_nn/api/xs3_vpu.h +216 -0
- xmos_ai_tools/runtime/include/lib_nn/api/xs3a_registers.h +2869 -0
- xmos_ai_tools/runtime/include/lib_nn/src/asm/asm_constants.h +41 -0
- xmos_ai_tools/runtime/include/lib_nn/src/asm/window_op_plan.h +25 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/api/fast_flash.h +47 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/api/inference_engine.h +218 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/api/memory_parallel_transport.h +52 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/api/version.h +13 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/api/xcore_config.h +17 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/api/xcore_device_memory.h +62 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/api/xcore_shared_config.h +31 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/conv2d_float.h +155 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_common.h +19 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_custom_options.h +28 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_error_reporter.h +32 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_interpreter.h +49 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_ops.h +71 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_profiler.h +49 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_utils.h +160 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/src/thread_call.h +119 -0
- xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/legacy/usb_defs.h +4 -0
- xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/legacy/usb_device.h +4 -0
- xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/legacy/usb_std_descriptors.h +4 -0
- xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/legacy/usb_std_requests.h +4 -0
- xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/xud.h +518 -0
- xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/xud_conf_default.h +11 -0
- xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/xud_device.h +87 -0
- xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/xud_std_descriptors.h +191 -0
- xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/xud_std_requests.h +120 -0
- xmos_ai_tools/runtime/include/lib_xud/lib_xud/src/user/XUD_USB_Defines.h +70 -0
- xmos_ai_tools/runtime/include/lib_xud/lib_xud/src/user/class/hid.h +23 -0
- xmos_ai_tools/runtime/include/lib_xud/lib_xud/src/user/class/usbaudio10.h +30 -0
- xmos_ai_tools/runtime/include/lib_xud/lib_xud/src/user/class/usbaudio20.h +357 -0
- xmos_ai_tools/runtime/include/lib_xud/lib_xud/src/user/class/usbaudiocommon.h +168 -0
- xmos_ai_tools/runtime/include/signal/micro/kernels/delay_flexbuffers_generated_data.h +25 -0
- xmos_ai_tools/runtime/include/signal/micro/kernels/energy_flexbuffers_generated_data.h +28 -0
- xmos_ai_tools/runtime/include/signal/micro/kernels/fft_flexbuffers_generated_data.h +37 -0
- xmos_ai_tools/runtime/include/signal/micro/kernels/filter_bank_flexbuffers_generated_data.h +25 -0
- xmos_ai_tools/runtime/include/signal/micro/kernels/filter_bank_log_flexbuffers_generated_data.h +27 -0
- xmos_ai_tools/runtime/include/signal/micro/kernels/filter_bank_spectral_subtraction_flexbuffers_generated_data.h +26 -0
- xmos_ai_tools/runtime/include/signal/micro/kernels/framer_flexbuffers_generated_data.h +25 -0
- xmos_ai_tools/runtime/include/signal/micro/kernels/irfft.h +31 -0
- xmos_ai_tools/runtime/include/signal/micro/kernels/overlap_add_flexbuffers_generated_data.h +25 -0
- xmos_ai_tools/runtime/include/signal/micro/kernels/pcan_flexbuffers_generated_data.h +7 -0
- xmos_ai_tools/runtime/include/signal/micro/kernels/rfft.h +31 -0
- xmos_ai_tools/runtime/include/signal/micro/kernels/stacker_flexbuffers_generated_data.h +25 -0
- xmos_ai_tools/runtime/include/signal/micro/kernels/window_flexbuffers_generated_data.h +25 -0
- xmos_ai_tools/runtime/include/signal/src/circular_buffer.h +118 -0
- xmos_ai_tools/runtime/include/signal/src/complex.h +29 -0
- xmos_ai_tools/runtime/include/signal/src/energy.h +38 -0
- xmos_ai_tools/runtime/include/signal/src/fft_auto_scale.h +35 -0
- xmos_ai_tools/runtime/include/signal/src/filter_bank.h +69 -0
- xmos_ai_tools/runtime/include/signal/src/filter_bank_log.h +38 -0
- xmos_ai_tools/runtime/include/signal/src/filter_bank_spectral_subtraction.h +73 -0
- xmos_ai_tools/runtime/include/signal/src/filter_bank_square_root.h +34 -0
- xmos_ai_tools/runtime/include/signal/src/irfft.h +84 -0
- xmos_ai_tools/runtime/include/signal/src/kiss_fft_wrappers/kiss_fft_common.h +49 -0
- xmos_ai_tools/runtime/include/signal/src/kiss_fft_wrappers/kiss_fft_float.h +31 -0
- xmos_ai_tools/runtime/include/signal/src/kiss_fft_wrappers/kiss_fft_int16.h +30 -0
- xmos_ai_tools/runtime/include/signal/src/kiss_fft_wrappers/kiss_fft_int32.h +31 -0
- xmos_ai_tools/runtime/include/signal/src/log.h +30 -0
- xmos_ai_tools/runtime/include/signal/src/max_abs.h +31 -0
- xmos_ai_tools/runtime/include/signal/src/msb.h +32 -0
- xmos_ai_tools/runtime/include/signal/src/overlap_add.h +46 -0
- xmos_ai_tools/runtime/include/signal/src/pcan_argc_fixed.h +41 -0
- xmos_ai_tools/runtime/include/signal/src/rfft.h +85 -0
- xmos_ai_tools/runtime/include/signal/src/square_root.h +32 -0
- xmos_ai_tools/runtime/include/signal/src/window.h +31 -0
- xmos_ai_tools/runtime/include/signal/testdata/fft_test_data.h +48 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/array.h +156 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/builtin_op_data.h +22 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/builtin_ops.h +241 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/c/builtin_op_data.h +20 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/c/c_api_types.h +26 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/c/common.h +30 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/context_util.h +54 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/core/api/error_reporter.h +72 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/core/api/flatbuffer_conversions.h +440 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/core/api/tensor_utils.h +28 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/core/c/builtin_op_data.h +626 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/core/c/c_api_types.h +178 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/core/c/common.h +1496 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/core/macros.h +78 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/bits.h +102 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/fft.h +50 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/fft_io.h +34 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/fft_util.h +34 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/filterbank.h +63 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/filterbank_io.h +35 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/filterbank_util.h +50 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/frontend.h +64 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/frontend_io.h +31 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/frontend_util.h +52 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/kiss_fft_common.h +48 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/kiss_fft_int16.h +33 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/log_lut.h +40 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/log_scale.h +39 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/log_scale_io.h +33 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/log_scale_util.h +45 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/noise_reduction.h +46 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/noise_reduction_io.h +36 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/noise_reduction_util.h +50 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control.h +47 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control_util.h +57 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/window.h +49 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/window_io.h +34 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/window_util.h +45 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/common.h +1358 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/compatibility.h +122 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/cppmath.h +40 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/max.h +35 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/min.h +35 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/optimized/neon_check.h +20 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/portable_tensor.h +141 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/portable_tensor_utils.h +623 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/quantization_util.h +292 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/add.h +561 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/add_n.h +86 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/arg_min_max.h +88 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/batch_matmul.h +275 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/batch_to_space_nd.h +101 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/binary_function.h +91 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/broadcast_args.h +56 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/broadcast_to.h +97 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/ceil.h +37 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/comparisons.h +271 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/concatenation.h +141 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/conv.h +289 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/cumsum.h +175 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/depth_to_space.h +79 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h +100 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/depthwiseconv_uint8.h +319 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/dequantize.h +78 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/div.h +247 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/elu.h +37 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/exp.h +38 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/fill.h +38 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/floor.h +39 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/floor_div.h +35 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/floor_mod.h +44 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/fully_connected.h +323 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/hard_swish.h +168 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/add.h +250 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/conv.h +241 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/depthwise_conv.h +291 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/fully_connected.h +126 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/l2normalization.h +67 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/logistic.h +121 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/mean.h +18 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/mul.h +194 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/pooling.h +264 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/tanh.h +117 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/transpose_conv.h +224 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/l2normalization.h +90 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/leaky_relu.h +69 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/log_softmax.h +256 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/logistic.h +132 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/lstm_cell.h +422 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/maximum_minimum.h +64 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/mul.h +267 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/neg.h +37 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/pad.h +169 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/pooling.h +303 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.h +333 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/portable_tensor_utils_impl.h +244 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/prelu.h +111 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/process_broadcast_shapes.h +140 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/quantize.h +89 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/reduce.h +491 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/requantize.h +70 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/resize_bilinear.h +233 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/resize_nearest_neighbor.h +102 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/round.h +51 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/select.h +151 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/slice.h +80 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/softmax.h +233 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/space_to_batch_nd.h +109 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/space_to_depth.h +80 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/strided_slice.h +147 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/sub.h +465 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/tanh.h +129 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/transpose.h +203 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/transpose_conv.h +225 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/runtime_shape.h +168 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/strided_slice_logic.h +278 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/tensor_ctypes.h +42 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/types.h +1096 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/kernel_util.h +341 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/op_macros.h +49 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/kernels/padding.h +115 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/arena_allocator/ibuffer_allocator.h +100 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/arena_allocator/non_persistent_arena_buffer_allocator.h +104 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/arena_allocator/persistent_arena_buffer_allocator.h +58 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/arena_allocator/recording_single_arena_buffer_allocator.h +63 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/arena_allocator/single_arena_buffer_allocator.h +144 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/benchmarks/micro_benchmark.h +95 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/compatibility.h +32 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/cortex_m_generic/debug_log_callback.h +49 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/debug_log.h +38 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/micro_speech/micro_model_settings.h +37 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/network_tester/expected_output_data.h +47 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/network_tester/input_data.h +108 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/network_tester/network_model.h +166 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/person_detection/detection_responder.h +32 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/person_detection/image_provider.h +38 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/person_detection/main_functions.h +37 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/person_detection/model_settings.h +35 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/fake_micro_context.h +70 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/flatbuffer_utils.h +65 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/activation_utils.h +57 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/activations.h +64 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/add.h +78 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/arc_mli/mli_function_specializations.h +141 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/arc_mli/mli_interface.h +75 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/arc_mli/mli_slicers.h +56 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/arc_mli/mli_tf_utils.h +310 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/arc_mli/scratch_buf_mgr.h +145 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/arc_mli/scratch_buffers.h +78 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/ceva/ceva_common.h +24 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/ceva/ceva_tflm_lib.h +613 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/ceva/mcps_macros.h +115 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/ceva/types.h +1286 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/circular_buffer.h +45 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/circular_buffer_flexbuffers_generated_data.h +22 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/conv.h +117 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/conv_test.h +94 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/depthwise_conv.h +80 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/dequantize.h +38 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/detection_postprocess_flexbuffers_generated_data.h +25 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/ethosu.h +28 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/fully_connected.h +112 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/hard_swish.h +30 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/kernel_runner.h +86 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/kernel_util.h +150 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/leaky_relu.h +43 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/logical.h +35 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/logistic.h +42 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/lstm_eval.h +541 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/lstm_eval_test.h +817 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/lstm_shared.h +150 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/micro_ops.h +158 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/micro_tensor_utils.h +56 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/mul.h +74 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/pad.h +27 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/pooling.h +142 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/prelu.h +39 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/quantize.h +37 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/reduce.h +65 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/reshape.h +26 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/softmax.h +67 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/strided_slice.h +40 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/sub.h +60 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/svdf.h +100 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/testdata/conv_test_data.h +37 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/testdata/lstm_test_data.h +579 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/unidirectional_sequence_lstm.h +47 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/hifimini/fixedpoint_utils.h +139 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/lstm_eval.h +216 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/lstm_shared.h +78 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa.h +38 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_add.h +48 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_conv.h +89 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_depthwise_conv.h +74 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_fully_connected.h +78 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_pad.h +49 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_pooling.h +76 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_reduce.h +47 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_reshape.h +44 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_softmax.h +58 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_svdf.h +39 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/memory_helpers.h +64 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/memory_planner/greedy_memory_planner.h +170 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/memory_planner/linear_memory_planner.h +53 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/memory_planner/memory_plan_struct.h +73 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/memory_planner/micro_memory_planner.h +95 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/memory_planner/non_persistent_buffer_planner_shim.h +133 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_allocation_info.h +138 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_allocator.h +351 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_arena_constants.h +28 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_common.h +38 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_context.h +176 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_graph.h +79 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_interpreter.h +189 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_interpreter_context.h +125 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_interpreter_graph.h +110 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_log.h +42 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_mutable_op_resolver.h +708 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_op_resolver.h +62 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_profiler.h +140 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_profiler_interface.h +38 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_resource_variable.h +89 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_time.h +36 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_utils.h +162 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/mock_micro_graph.h +60 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/python/interpreter/src/python_ops_resolver.h +21 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/python/tflite_size/src/flatbuffer_size.h +30 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/python/tflite_size/src/flatbuffer_size_wrapper.h +33 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/recording_micro_allocator.h +125 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/recording_micro_interpreter.h +69 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/system_setup.h +27 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/test_helper_custom_ops.h +49 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/test_helpers.h +334 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/testing/micro_test.h +267 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/testing/test_conv_model.h +23 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/tflite_bridge/flatbuffer_conversions_bridge.h +45 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/tflite_bridge/micro_error_reporter.h +36 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/tools/benchmarking/log_utils.h +273 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/tools/benchmarking/metrics.h +41 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/tools/benchmarking/op_resolver.h +127 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/portable_type_to_tflitetype.h +75 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/schema/schema_generated.h +24644 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/schema/schema_utils.h +33 -0
- xmos_ai_tools/runtime/include/tile_ram_server.h +38 -0
- xmos_ai_tools/runtime/lib/libhost_xtflitemicro.a +0 -0
- xmos_ai_tools/runtime/lib/libxtflitemicro.a +0 -0
- xmos_ai_tools/xformer/__init__.py +60 -0
- xmos_ai_tools/xformer/flash.py +190 -0
- xmos_ai_tools/xinterpreters/__init__.py +1 -0
- xmos_ai_tools/xinterpreters/exceptions.py +38 -0
- xmos_ai_tools/xinterpreters/host_interpreter.py +652 -0
- xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.1.0.1.dylib +0 -0
- xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.dylib +0 -0
- xmos_ai_tools-1.3.2.dev80.data/data/bin/xcore-opt +0 -0
- xmos_ai_tools-1.3.2.dev80.dist-info/METADATA +33 -0
- xmos_ai_tools-1.3.2.dev80.dist-info/RECORD +395 -0
- xmos_ai_tools-1.3.2.dev80.dist-info/WHEEL +5 -0
- xmos_ai_tools-1.3.2.dev80.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1449 @@
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
2
|
+
|
3
|
+
|
4
|
+
#ifndef FLATBUFFERS_GENERATED_REFLECTION_REFLECTION_H_
|
5
|
+
#define FLATBUFFERS_GENERATED_REFLECTION_REFLECTION_H_
|
6
|
+
|
7
|
+
#include "flatbuffers/flatbuffers.h"
|
8
|
+
|
9
|
+
namespace reflection {
|
10
|
+
|
11
|
+
struct Type;
|
12
|
+
struct TypeBuilder;
|
13
|
+
|
14
|
+
struct KeyValue;
|
15
|
+
struct KeyValueBuilder;
|
16
|
+
|
17
|
+
struct EnumVal;
|
18
|
+
struct EnumValBuilder;
|
19
|
+
|
20
|
+
struct Enum;
|
21
|
+
struct EnumBuilder;
|
22
|
+
|
23
|
+
struct Field;
|
24
|
+
struct FieldBuilder;
|
25
|
+
|
26
|
+
struct Object;
|
27
|
+
struct ObjectBuilder;
|
28
|
+
|
29
|
+
struct RPCCall;
|
30
|
+
struct RPCCallBuilder;
|
31
|
+
|
32
|
+
struct Service;
|
33
|
+
struct ServiceBuilder;
|
34
|
+
|
35
|
+
struct SchemaFile;
|
36
|
+
struct SchemaFileBuilder;
|
37
|
+
|
38
|
+
struct Schema;
|
39
|
+
struct SchemaBuilder;
|
40
|
+
|
41
|
+
enum BaseType {
|
42
|
+
None = 0,
|
43
|
+
UType = 1,
|
44
|
+
Bool = 2,
|
45
|
+
Byte = 3,
|
46
|
+
UByte = 4,
|
47
|
+
Short = 5,
|
48
|
+
UShort = 6,
|
49
|
+
Int = 7,
|
50
|
+
UInt = 8,
|
51
|
+
Long = 9,
|
52
|
+
ULong = 10,
|
53
|
+
Float = 11,
|
54
|
+
Double = 12,
|
55
|
+
String = 13,
|
56
|
+
Vector = 14,
|
57
|
+
Obj = 15,
|
58
|
+
Union = 16,
|
59
|
+
Array = 17,
|
60
|
+
MaxBaseType = 18
|
61
|
+
};
|
62
|
+
|
63
|
+
inline const BaseType (&EnumValuesBaseType())[19] {
|
64
|
+
static const BaseType values[] = {
|
65
|
+
None,
|
66
|
+
UType,
|
67
|
+
Bool,
|
68
|
+
Byte,
|
69
|
+
UByte,
|
70
|
+
Short,
|
71
|
+
UShort,
|
72
|
+
Int,
|
73
|
+
UInt,
|
74
|
+
Long,
|
75
|
+
ULong,
|
76
|
+
Float,
|
77
|
+
Double,
|
78
|
+
String,
|
79
|
+
Vector,
|
80
|
+
Obj,
|
81
|
+
Union,
|
82
|
+
Array,
|
83
|
+
MaxBaseType
|
84
|
+
};
|
85
|
+
return values;
|
86
|
+
}
|
87
|
+
|
88
|
+
inline const char * const *EnumNamesBaseType() {
|
89
|
+
static const char * const names[20] = {
|
90
|
+
"None",
|
91
|
+
"UType",
|
92
|
+
"Bool",
|
93
|
+
"Byte",
|
94
|
+
"UByte",
|
95
|
+
"Short",
|
96
|
+
"UShort",
|
97
|
+
"Int",
|
98
|
+
"UInt",
|
99
|
+
"Long",
|
100
|
+
"ULong",
|
101
|
+
"Float",
|
102
|
+
"Double",
|
103
|
+
"String",
|
104
|
+
"Vector",
|
105
|
+
"Obj",
|
106
|
+
"Union",
|
107
|
+
"Array",
|
108
|
+
"MaxBaseType",
|
109
|
+
nullptr
|
110
|
+
};
|
111
|
+
return names;
|
112
|
+
}
|
113
|
+
|
114
|
+
inline const char *EnumNameBaseType(BaseType e) {
|
115
|
+
if (flatbuffers::IsOutRange(e, None, MaxBaseType)) return "";
|
116
|
+
const size_t index = static_cast<size_t>(e);
|
117
|
+
return EnumNamesBaseType()[index];
|
118
|
+
}
|
119
|
+
|
120
|
+
/// New schema language features that are not supported by old code generators.
|
121
|
+
enum AdvancedFeatures {
|
122
|
+
AdvancedArrayFeatures = 1ULL,
|
123
|
+
AdvancedUnionFeatures = 2ULL,
|
124
|
+
OptionalScalars = 4ULL,
|
125
|
+
DefaultVectorsAndStrings = 8ULL
|
126
|
+
};
|
127
|
+
|
128
|
+
inline const AdvancedFeatures (&EnumValuesAdvancedFeatures())[4] {
|
129
|
+
static const AdvancedFeatures values[] = {
|
130
|
+
AdvancedArrayFeatures,
|
131
|
+
AdvancedUnionFeatures,
|
132
|
+
OptionalScalars,
|
133
|
+
DefaultVectorsAndStrings
|
134
|
+
};
|
135
|
+
return values;
|
136
|
+
}
|
137
|
+
|
138
|
+
inline const char * const *EnumNamesAdvancedFeatures() {
|
139
|
+
static const char * const names[9] = {
|
140
|
+
"AdvancedArrayFeatures",
|
141
|
+
"AdvancedUnionFeatures",
|
142
|
+
"",
|
143
|
+
"OptionalScalars",
|
144
|
+
"",
|
145
|
+
"",
|
146
|
+
"",
|
147
|
+
"DefaultVectorsAndStrings",
|
148
|
+
nullptr
|
149
|
+
};
|
150
|
+
return names;
|
151
|
+
}
|
152
|
+
|
153
|
+
inline const char *EnumNameAdvancedFeatures(AdvancedFeatures e) {
|
154
|
+
if (flatbuffers::IsOutRange(e, AdvancedArrayFeatures, DefaultVectorsAndStrings)) return "";
|
155
|
+
const size_t index = static_cast<size_t>(e) - static_cast<size_t>(AdvancedArrayFeatures);
|
156
|
+
return EnumNamesAdvancedFeatures()[index];
|
157
|
+
}
|
158
|
+
|
159
|
+
struct Type FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
160
|
+
typedef TypeBuilder Builder;
|
161
|
+
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
162
|
+
VT_BASE_TYPE = 4,
|
163
|
+
VT_ELEMENT = 6,
|
164
|
+
VT_INDEX = 8,
|
165
|
+
VT_FIXED_LENGTH = 10,
|
166
|
+
VT_BASE_SIZE = 12,
|
167
|
+
VT_ELEMENT_SIZE = 14
|
168
|
+
};
|
169
|
+
reflection::BaseType base_type() const {
|
170
|
+
return static_cast<reflection::BaseType>(GetField<int8_t>(VT_BASE_TYPE, 0));
|
171
|
+
}
|
172
|
+
reflection::BaseType element() const {
|
173
|
+
return static_cast<reflection::BaseType>(GetField<int8_t>(VT_ELEMENT, 0));
|
174
|
+
}
|
175
|
+
int32_t index() const {
|
176
|
+
return GetField<int32_t>(VT_INDEX, -1);
|
177
|
+
}
|
178
|
+
uint16_t fixed_length() const {
|
179
|
+
return GetField<uint16_t>(VT_FIXED_LENGTH, 0);
|
180
|
+
}
|
181
|
+
/// The size (octets) of the `base_type` field.
|
182
|
+
uint32_t base_size() const {
|
183
|
+
return GetField<uint32_t>(VT_BASE_SIZE, 4);
|
184
|
+
}
|
185
|
+
/// The size (octets) of the `element` field, if present.
|
186
|
+
uint32_t element_size() const {
|
187
|
+
return GetField<uint32_t>(VT_ELEMENT_SIZE, 0);
|
188
|
+
}
|
189
|
+
bool Verify(flatbuffers::Verifier &verifier) const {
|
190
|
+
return VerifyTableStart(verifier) &&
|
191
|
+
VerifyField<int8_t>(verifier, VT_BASE_TYPE, 1) &&
|
192
|
+
VerifyField<int8_t>(verifier, VT_ELEMENT, 1) &&
|
193
|
+
VerifyField<int32_t>(verifier, VT_INDEX, 4) &&
|
194
|
+
VerifyField<uint16_t>(verifier, VT_FIXED_LENGTH, 2) &&
|
195
|
+
VerifyField<uint32_t>(verifier, VT_BASE_SIZE, 4) &&
|
196
|
+
VerifyField<uint32_t>(verifier, VT_ELEMENT_SIZE, 4) &&
|
197
|
+
verifier.EndTable();
|
198
|
+
}
|
199
|
+
};
|
200
|
+
|
201
|
+
struct TypeBuilder {
|
202
|
+
typedef Type Table;
|
203
|
+
flatbuffers::FlatBufferBuilder &fbb_;
|
204
|
+
flatbuffers::uoffset_t start_;
|
205
|
+
void add_base_type(reflection::BaseType base_type) {
|
206
|
+
fbb_.AddElement<int8_t>(Type::VT_BASE_TYPE, static_cast<int8_t>(base_type), 0);
|
207
|
+
}
|
208
|
+
void add_element(reflection::BaseType element) {
|
209
|
+
fbb_.AddElement<int8_t>(Type::VT_ELEMENT, static_cast<int8_t>(element), 0);
|
210
|
+
}
|
211
|
+
void add_index(int32_t index) {
|
212
|
+
fbb_.AddElement<int32_t>(Type::VT_INDEX, index, -1);
|
213
|
+
}
|
214
|
+
void add_fixed_length(uint16_t fixed_length) {
|
215
|
+
fbb_.AddElement<uint16_t>(Type::VT_FIXED_LENGTH, fixed_length, 0);
|
216
|
+
}
|
217
|
+
void add_base_size(uint32_t base_size) {
|
218
|
+
fbb_.AddElement<uint32_t>(Type::VT_BASE_SIZE, base_size, 4);
|
219
|
+
}
|
220
|
+
void add_element_size(uint32_t element_size) {
|
221
|
+
fbb_.AddElement<uint32_t>(Type::VT_ELEMENT_SIZE, element_size, 0);
|
222
|
+
}
|
223
|
+
explicit TypeBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
224
|
+
: fbb_(_fbb) {
|
225
|
+
start_ = fbb_.StartTable();
|
226
|
+
}
|
227
|
+
flatbuffers::Offset<Type> Finish() {
|
228
|
+
const auto end = fbb_.EndTable(start_);
|
229
|
+
auto o = flatbuffers::Offset<Type>(end);
|
230
|
+
return o;
|
231
|
+
}
|
232
|
+
};
|
233
|
+
|
234
|
+
inline flatbuffers::Offset<Type> CreateType(
|
235
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
236
|
+
reflection::BaseType base_type = reflection::None,
|
237
|
+
reflection::BaseType element = reflection::None,
|
238
|
+
int32_t index = -1,
|
239
|
+
uint16_t fixed_length = 0,
|
240
|
+
uint32_t base_size = 4,
|
241
|
+
uint32_t element_size = 0) {
|
242
|
+
TypeBuilder builder_(_fbb);
|
243
|
+
builder_.add_element_size(element_size);
|
244
|
+
builder_.add_base_size(base_size);
|
245
|
+
builder_.add_index(index);
|
246
|
+
builder_.add_fixed_length(fixed_length);
|
247
|
+
builder_.add_element(element);
|
248
|
+
builder_.add_base_type(base_type);
|
249
|
+
return builder_.Finish();
|
250
|
+
}
|
251
|
+
|
252
|
+
struct KeyValue FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
253
|
+
typedef KeyValueBuilder Builder;
|
254
|
+
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
255
|
+
VT_KEY = 4,
|
256
|
+
VT_VALUE = 6
|
257
|
+
};
|
258
|
+
const flatbuffers::String *key() const {
|
259
|
+
return GetPointer<const flatbuffers::String *>(VT_KEY);
|
260
|
+
}
|
261
|
+
bool KeyCompareLessThan(const KeyValue *o) const {
|
262
|
+
return *key() < *o->key();
|
263
|
+
}
|
264
|
+
int KeyCompareWithValue(const char *_key) const {
|
265
|
+
return strcmp(key()->c_str(), _key);
|
266
|
+
}
|
267
|
+
const flatbuffers::String *value() const {
|
268
|
+
return GetPointer<const flatbuffers::String *>(VT_VALUE);
|
269
|
+
}
|
270
|
+
bool Verify(flatbuffers::Verifier &verifier) const {
|
271
|
+
return VerifyTableStart(verifier) &&
|
272
|
+
VerifyOffsetRequired(verifier, VT_KEY) &&
|
273
|
+
verifier.VerifyString(key()) &&
|
274
|
+
VerifyOffset(verifier, VT_VALUE) &&
|
275
|
+
verifier.VerifyString(value()) &&
|
276
|
+
verifier.EndTable();
|
277
|
+
}
|
278
|
+
};
|
279
|
+
|
280
|
+
struct KeyValueBuilder {
|
281
|
+
typedef KeyValue Table;
|
282
|
+
flatbuffers::FlatBufferBuilder &fbb_;
|
283
|
+
flatbuffers::uoffset_t start_;
|
284
|
+
void add_key(flatbuffers::Offset<flatbuffers::String> key) {
|
285
|
+
fbb_.AddOffset(KeyValue::VT_KEY, key);
|
286
|
+
}
|
287
|
+
void add_value(flatbuffers::Offset<flatbuffers::String> value) {
|
288
|
+
fbb_.AddOffset(KeyValue::VT_VALUE, value);
|
289
|
+
}
|
290
|
+
explicit KeyValueBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
291
|
+
: fbb_(_fbb) {
|
292
|
+
start_ = fbb_.StartTable();
|
293
|
+
}
|
294
|
+
flatbuffers::Offset<KeyValue> Finish() {
|
295
|
+
const auto end = fbb_.EndTable(start_);
|
296
|
+
auto o = flatbuffers::Offset<KeyValue>(end);
|
297
|
+
fbb_.Required(o, KeyValue::VT_KEY);
|
298
|
+
return o;
|
299
|
+
}
|
300
|
+
};
|
301
|
+
|
302
|
+
inline flatbuffers::Offset<KeyValue> CreateKeyValue(
|
303
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
304
|
+
flatbuffers::Offset<flatbuffers::String> key = 0,
|
305
|
+
flatbuffers::Offset<flatbuffers::String> value = 0) {
|
306
|
+
KeyValueBuilder builder_(_fbb);
|
307
|
+
builder_.add_value(value);
|
308
|
+
builder_.add_key(key);
|
309
|
+
return builder_.Finish();
|
310
|
+
}
|
311
|
+
|
312
|
+
inline flatbuffers::Offset<KeyValue> CreateKeyValueDirect(
|
313
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
314
|
+
const char *key = nullptr,
|
315
|
+
const char *value = nullptr) {
|
316
|
+
auto key__ = key ? _fbb.CreateString(key) : 0;
|
317
|
+
auto value__ = value ? _fbb.CreateString(value) : 0;
|
318
|
+
return reflection::CreateKeyValue(
|
319
|
+
_fbb,
|
320
|
+
key__,
|
321
|
+
value__);
|
322
|
+
}
|
323
|
+
|
324
|
+
struct EnumVal FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
325
|
+
typedef EnumValBuilder Builder;
|
326
|
+
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
327
|
+
VT_NAME = 4,
|
328
|
+
VT_VALUE = 6,
|
329
|
+
VT_UNION_TYPE = 10,
|
330
|
+
VT_DOCUMENTATION = 12
|
331
|
+
};
|
332
|
+
const flatbuffers::String *name() const {
|
333
|
+
return GetPointer<const flatbuffers::String *>(VT_NAME);
|
334
|
+
}
|
335
|
+
int64_t value() const {
|
336
|
+
return GetField<int64_t>(VT_VALUE, 0);
|
337
|
+
}
|
338
|
+
bool KeyCompareLessThan(const EnumVal *o) const {
|
339
|
+
return value() < o->value();
|
340
|
+
}
|
341
|
+
int KeyCompareWithValue(int64_t _value) const {
|
342
|
+
return static_cast<int>(value() > _value) - static_cast<int>(value() < _value);
|
343
|
+
}
|
344
|
+
const reflection::Type *union_type() const {
|
345
|
+
return GetPointer<const reflection::Type *>(VT_UNION_TYPE);
|
346
|
+
}
|
347
|
+
const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>> *documentation() const {
|
348
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>> *>(VT_DOCUMENTATION);
|
349
|
+
}
|
350
|
+
bool Verify(flatbuffers::Verifier &verifier) const {
|
351
|
+
return VerifyTableStart(verifier) &&
|
352
|
+
VerifyOffsetRequired(verifier, VT_NAME) &&
|
353
|
+
verifier.VerifyString(name()) &&
|
354
|
+
VerifyField<int64_t>(verifier, VT_VALUE, 8) &&
|
355
|
+
VerifyOffset(verifier, VT_UNION_TYPE) &&
|
356
|
+
verifier.VerifyTable(union_type()) &&
|
357
|
+
VerifyOffset(verifier, VT_DOCUMENTATION) &&
|
358
|
+
verifier.VerifyVector(documentation()) &&
|
359
|
+
verifier.VerifyVectorOfStrings(documentation()) &&
|
360
|
+
verifier.EndTable();
|
361
|
+
}
|
362
|
+
};
|
363
|
+
|
364
|
+
struct EnumValBuilder {
|
365
|
+
typedef EnumVal Table;
|
366
|
+
flatbuffers::FlatBufferBuilder &fbb_;
|
367
|
+
flatbuffers::uoffset_t start_;
|
368
|
+
void add_name(flatbuffers::Offset<flatbuffers::String> name) {
|
369
|
+
fbb_.AddOffset(EnumVal::VT_NAME, name);
|
370
|
+
}
|
371
|
+
void add_value(int64_t value) {
|
372
|
+
fbb_.AddElement<int64_t>(EnumVal::VT_VALUE, value, 0);
|
373
|
+
}
|
374
|
+
void add_union_type(flatbuffers::Offset<reflection::Type> union_type) {
|
375
|
+
fbb_.AddOffset(EnumVal::VT_UNION_TYPE, union_type);
|
376
|
+
}
|
377
|
+
void add_documentation(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>>> documentation) {
|
378
|
+
fbb_.AddOffset(EnumVal::VT_DOCUMENTATION, documentation);
|
379
|
+
}
|
380
|
+
explicit EnumValBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
381
|
+
: fbb_(_fbb) {
|
382
|
+
start_ = fbb_.StartTable();
|
383
|
+
}
|
384
|
+
flatbuffers::Offset<EnumVal> Finish() {
|
385
|
+
const auto end = fbb_.EndTable(start_);
|
386
|
+
auto o = flatbuffers::Offset<EnumVal>(end);
|
387
|
+
fbb_.Required(o, EnumVal::VT_NAME);
|
388
|
+
return o;
|
389
|
+
}
|
390
|
+
};
|
391
|
+
|
392
|
+
inline flatbuffers::Offset<EnumVal> CreateEnumVal(
|
393
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
394
|
+
flatbuffers::Offset<flatbuffers::String> name = 0,
|
395
|
+
int64_t value = 0,
|
396
|
+
flatbuffers::Offset<reflection::Type> union_type = 0,
|
397
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>>> documentation = 0) {
|
398
|
+
EnumValBuilder builder_(_fbb);
|
399
|
+
builder_.add_value(value);
|
400
|
+
builder_.add_documentation(documentation);
|
401
|
+
builder_.add_union_type(union_type);
|
402
|
+
builder_.add_name(name);
|
403
|
+
return builder_.Finish();
|
404
|
+
}
|
405
|
+
|
406
|
+
inline flatbuffers::Offset<EnumVal> CreateEnumValDirect(
|
407
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
408
|
+
const char *name = nullptr,
|
409
|
+
int64_t value = 0,
|
410
|
+
flatbuffers::Offset<reflection::Type> union_type = 0,
|
411
|
+
const std::vector<flatbuffers::Offset<flatbuffers::String>> *documentation = nullptr) {
|
412
|
+
auto name__ = name ? _fbb.CreateString(name) : 0;
|
413
|
+
auto documentation__ = documentation ? _fbb.CreateVector<flatbuffers::Offset<flatbuffers::String>>(*documentation) : 0;
|
414
|
+
return reflection::CreateEnumVal(
|
415
|
+
_fbb,
|
416
|
+
name__,
|
417
|
+
value,
|
418
|
+
union_type,
|
419
|
+
documentation__);
|
420
|
+
}
|
421
|
+
|
422
|
+
struct Enum FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
423
|
+
typedef EnumBuilder Builder;
|
424
|
+
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
425
|
+
VT_NAME = 4,
|
426
|
+
VT_VALUES = 6,
|
427
|
+
VT_IS_UNION = 8,
|
428
|
+
VT_UNDERLYING_TYPE = 10,
|
429
|
+
VT_ATTRIBUTES = 12,
|
430
|
+
VT_DOCUMENTATION = 14,
|
431
|
+
VT_DECLARATION_FILE = 16
|
432
|
+
};
|
433
|
+
const flatbuffers::String *name() const {
|
434
|
+
return GetPointer<const flatbuffers::String *>(VT_NAME);
|
435
|
+
}
|
436
|
+
bool KeyCompareLessThan(const Enum *o) const {
|
437
|
+
return *name() < *o->name();
|
438
|
+
}
|
439
|
+
int KeyCompareWithValue(const char *_name) const {
|
440
|
+
return strcmp(name()->c_str(), _name);
|
441
|
+
}
|
442
|
+
const flatbuffers::Vector<flatbuffers::Offset<reflection::EnumVal>> *values() const {
|
443
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<reflection::EnumVal>> *>(VT_VALUES);
|
444
|
+
}
|
445
|
+
bool is_union() const {
|
446
|
+
return GetField<uint8_t>(VT_IS_UNION, 0) != 0;
|
447
|
+
}
|
448
|
+
const reflection::Type *underlying_type() const {
|
449
|
+
return GetPointer<const reflection::Type *>(VT_UNDERLYING_TYPE);
|
450
|
+
}
|
451
|
+
const flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>> *attributes() const {
|
452
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>> *>(VT_ATTRIBUTES);
|
453
|
+
}
|
454
|
+
const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>> *documentation() const {
|
455
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>> *>(VT_DOCUMENTATION);
|
456
|
+
}
|
457
|
+
/// File that this Enum is declared in.
|
458
|
+
const flatbuffers::String *declaration_file() const {
|
459
|
+
return GetPointer<const flatbuffers::String *>(VT_DECLARATION_FILE);
|
460
|
+
}
|
461
|
+
bool Verify(flatbuffers::Verifier &verifier) const {
|
462
|
+
return VerifyTableStart(verifier) &&
|
463
|
+
VerifyOffsetRequired(verifier, VT_NAME) &&
|
464
|
+
verifier.VerifyString(name()) &&
|
465
|
+
VerifyOffsetRequired(verifier, VT_VALUES) &&
|
466
|
+
verifier.VerifyVector(values()) &&
|
467
|
+
verifier.VerifyVectorOfTables(values()) &&
|
468
|
+
VerifyField<uint8_t>(verifier, VT_IS_UNION, 1) &&
|
469
|
+
VerifyOffsetRequired(verifier, VT_UNDERLYING_TYPE) &&
|
470
|
+
verifier.VerifyTable(underlying_type()) &&
|
471
|
+
VerifyOffset(verifier, VT_ATTRIBUTES) &&
|
472
|
+
verifier.VerifyVector(attributes()) &&
|
473
|
+
verifier.VerifyVectorOfTables(attributes()) &&
|
474
|
+
VerifyOffset(verifier, VT_DOCUMENTATION) &&
|
475
|
+
verifier.VerifyVector(documentation()) &&
|
476
|
+
verifier.VerifyVectorOfStrings(documentation()) &&
|
477
|
+
VerifyOffset(verifier, VT_DECLARATION_FILE) &&
|
478
|
+
verifier.VerifyString(declaration_file()) &&
|
479
|
+
verifier.EndTable();
|
480
|
+
}
|
481
|
+
};
|
482
|
+
|
483
|
+
struct EnumBuilder {
|
484
|
+
typedef Enum Table;
|
485
|
+
flatbuffers::FlatBufferBuilder &fbb_;
|
486
|
+
flatbuffers::uoffset_t start_;
|
487
|
+
void add_name(flatbuffers::Offset<flatbuffers::String> name) {
|
488
|
+
fbb_.AddOffset(Enum::VT_NAME, name);
|
489
|
+
}
|
490
|
+
void add_values(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::EnumVal>>> values) {
|
491
|
+
fbb_.AddOffset(Enum::VT_VALUES, values);
|
492
|
+
}
|
493
|
+
void add_is_union(bool is_union) {
|
494
|
+
fbb_.AddElement<uint8_t>(Enum::VT_IS_UNION, static_cast<uint8_t>(is_union), 0);
|
495
|
+
}
|
496
|
+
void add_underlying_type(flatbuffers::Offset<reflection::Type> underlying_type) {
|
497
|
+
fbb_.AddOffset(Enum::VT_UNDERLYING_TYPE, underlying_type);
|
498
|
+
}
|
499
|
+
void add_attributes(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>>> attributes) {
|
500
|
+
fbb_.AddOffset(Enum::VT_ATTRIBUTES, attributes);
|
501
|
+
}
|
502
|
+
void add_documentation(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>>> documentation) {
|
503
|
+
fbb_.AddOffset(Enum::VT_DOCUMENTATION, documentation);
|
504
|
+
}
|
505
|
+
void add_declaration_file(flatbuffers::Offset<flatbuffers::String> declaration_file) {
|
506
|
+
fbb_.AddOffset(Enum::VT_DECLARATION_FILE, declaration_file);
|
507
|
+
}
|
508
|
+
explicit EnumBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
509
|
+
: fbb_(_fbb) {
|
510
|
+
start_ = fbb_.StartTable();
|
511
|
+
}
|
512
|
+
flatbuffers::Offset<Enum> Finish() {
|
513
|
+
const auto end = fbb_.EndTable(start_);
|
514
|
+
auto o = flatbuffers::Offset<Enum>(end);
|
515
|
+
fbb_.Required(o, Enum::VT_NAME);
|
516
|
+
fbb_.Required(o, Enum::VT_VALUES);
|
517
|
+
fbb_.Required(o, Enum::VT_UNDERLYING_TYPE);
|
518
|
+
return o;
|
519
|
+
}
|
520
|
+
};
|
521
|
+
|
522
|
+
inline flatbuffers::Offset<Enum> CreateEnum(
|
523
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
524
|
+
flatbuffers::Offset<flatbuffers::String> name = 0,
|
525
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::EnumVal>>> values = 0,
|
526
|
+
bool is_union = false,
|
527
|
+
flatbuffers::Offset<reflection::Type> underlying_type = 0,
|
528
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>>> attributes = 0,
|
529
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>>> documentation = 0,
|
530
|
+
flatbuffers::Offset<flatbuffers::String> declaration_file = 0) {
|
531
|
+
EnumBuilder builder_(_fbb);
|
532
|
+
builder_.add_declaration_file(declaration_file);
|
533
|
+
builder_.add_documentation(documentation);
|
534
|
+
builder_.add_attributes(attributes);
|
535
|
+
builder_.add_underlying_type(underlying_type);
|
536
|
+
builder_.add_values(values);
|
537
|
+
builder_.add_name(name);
|
538
|
+
builder_.add_is_union(is_union);
|
539
|
+
return builder_.Finish();
|
540
|
+
}
|
541
|
+
|
542
|
+
inline flatbuffers::Offset<Enum> CreateEnumDirect(
|
543
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
544
|
+
const char *name = nullptr,
|
545
|
+
std::vector<flatbuffers::Offset<reflection::EnumVal>> *values = nullptr,
|
546
|
+
bool is_union = false,
|
547
|
+
flatbuffers::Offset<reflection::Type> underlying_type = 0,
|
548
|
+
std::vector<flatbuffers::Offset<reflection::KeyValue>> *attributes = nullptr,
|
549
|
+
const std::vector<flatbuffers::Offset<flatbuffers::String>> *documentation = nullptr,
|
550
|
+
const char *declaration_file = nullptr) {
|
551
|
+
auto name__ = name ? _fbb.CreateString(name) : 0;
|
552
|
+
auto values__ = values ? _fbb.CreateVectorOfSortedTables<reflection::EnumVal>(values) : 0;
|
553
|
+
auto attributes__ = attributes ? _fbb.CreateVectorOfSortedTables<reflection::KeyValue>(attributes) : 0;
|
554
|
+
auto documentation__ = documentation ? _fbb.CreateVector<flatbuffers::Offset<flatbuffers::String>>(*documentation) : 0;
|
555
|
+
auto declaration_file__ = declaration_file ? _fbb.CreateString(declaration_file) : 0;
|
556
|
+
return reflection::CreateEnum(
|
557
|
+
_fbb,
|
558
|
+
name__,
|
559
|
+
values__,
|
560
|
+
is_union,
|
561
|
+
underlying_type,
|
562
|
+
attributes__,
|
563
|
+
documentation__,
|
564
|
+
declaration_file__);
|
565
|
+
}
|
566
|
+
|
567
|
+
struct Field FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
568
|
+
typedef FieldBuilder Builder;
|
569
|
+
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
570
|
+
VT_NAME = 4,
|
571
|
+
VT_TYPE = 6,
|
572
|
+
VT_ID = 8,
|
573
|
+
VT_OFFSET = 10,
|
574
|
+
VT_DEFAULT_INTEGER = 12,
|
575
|
+
VT_DEFAULT_REAL = 14,
|
576
|
+
VT_DEPRECATED = 16,
|
577
|
+
VT_REQUIRED = 18,
|
578
|
+
VT_KEY = 20,
|
579
|
+
VT_ATTRIBUTES = 22,
|
580
|
+
VT_DOCUMENTATION = 24,
|
581
|
+
VT_OPTIONAL = 26,
|
582
|
+
VT_PADDING = 28
|
583
|
+
};
|
584
|
+
const flatbuffers::String *name() const {
|
585
|
+
return GetPointer<const flatbuffers::String *>(VT_NAME);
|
586
|
+
}
|
587
|
+
bool KeyCompareLessThan(const Field *o) const {
|
588
|
+
return *name() < *o->name();
|
589
|
+
}
|
590
|
+
int KeyCompareWithValue(const char *_name) const {
|
591
|
+
return strcmp(name()->c_str(), _name);
|
592
|
+
}
|
593
|
+
const reflection::Type *type() const {
|
594
|
+
return GetPointer<const reflection::Type *>(VT_TYPE);
|
595
|
+
}
|
596
|
+
uint16_t id() const {
|
597
|
+
return GetField<uint16_t>(VT_ID, 0);
|
598
|
+
}
|
599
|
+
uint16_t offset() const {
|
600
|
+
return GetField<uint16_t>(VT_OFFSET, 0);
|
601
|
+
}
|
602
|
+
int64_t default_integer() const {
|
603
|
+
return GetField<int64_t>(VT_DEFAULT_INTEGER, 0);
|
604
|
+
}
|
605
|
+
double default_real() const {
|
606
|
+
return GetField<double>(VT_DEFAULT_REAL, 0.0);
|
607
|
+
}
|
608
|
+
bool deprecated() const {
|
609
|
+
return GetField<uint8_t>(VT_DEPRECATED, 0) != 0;
|
610
|
+
}
|
611
|
+
bool required() const {
|
612
|
+
return GetField<uint8_t>(VT_REQUIRED, 0) != 0;
|
613
|
+
}
|
614
|
+
bool key() const {
|
615
|
+
return GetField<uint8_t>(VT_KEY, 0) != 0;
|
616
|
+
}
|
617
|
+
const flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>> *attributes() const {
|
618
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>> *>(VT_ATTRIBUTES);
|
619
|
+
}
|
620
|
+
const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>> *documentation() const {
|
621
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>> *>(VT_DOCUMENTATION);
|
622
|
+
}
|
623
|
+
bool optional() const {
|
624
|
+
return GetField<uint8_t>(VT_OPTIONAL, 0) != 0;
|
625
|
+
}
|
626
|
+
/// Number of padding octets to always add after this field. Structs only.
|
627
|
+
uint16_t padding() const {
|
628
|
+
return GetField<uint16_t>(VT_PADDING, 0);
|
629
|
+
}
|
630
|
+
bool Verify(flatbuffers::Verifier &verifier) const {
|
631
|
+
return VerifyTableStart(verifier) &&
|
632
|
+
VerifyOffsetRequired(verifier, VT_NAME) &&
|
633
|
+
verifier.VerifyString(name()) &&
|
634
|
+
VerifyOffsetRequired(verifier, VT_TYPE) &&
|
635
|
+
verifier.VerifyTable(type()) &&
|
636
|
+
VerifyField<uint16_t>(verifier, VT_ID, 2) &&
|
637
|
+
VerifyField<uint16_t>(verifier, VT_OFFSET, 2) &&
|
638
|
+
VerifyField<int64_t>(verifier, VT_DEFAULT_INTEGER, 8) &&
|
639
|
+
VerifyField<double>(verifier, VT_DEFAULT_REAL, 8) &&
|
640
|
+
VerifyField<uint8_t>(verifier, VT_DEPRECATED, 1) &&
|
641
|
+
VerifyField<uint8_t>(verifier, VT_REQUIRED, 1) &&
|
642
|
+
VerifyField<uint8_t>(verifier, VT_KEY, 1) &&
|
643
|
+
VerifyOffset(verifier, VT_ATTRIBUTES) &&
|
644
|
+
verifier.VerifyVector(attributes()) &&
|
645
|
+
verifier.VerifyVectorOfTables(attributes()) &&
|
646
|
+
VerifyOffset(verifier, VT_DOCUMENTATION) &&
|
647
|
+
verifier.VerifyVector(documentation()) &&
|
648
|
+
verifier.VerifyVectorOfStrings(documentation()) &&
|
649
|
+
VerifyField<uint8_t>(verifier, VT_OPTIONAL, 1) &&
|
650
|
+
VerifyField<uint16_t>(verifier, VT_PADDING, 2) &&
|
651
|
+
verifier.EndTable();
|
652
|
+
}
|
653
|
+
};
|
654
|
+
|
655
|
+
struct FieldBuilder {
|
656
|
+
typedef Field Table;
|
657
|
+
flatbuffers::FlatBufferBuilder &fbb_;
|
658
|
+
flatbuffers::uoffset_t start_;
|
659
|
+
void add_name(flatbuffers::Offset<flatbuffers::String> name) {
|
660
|
+
fbb_.AddOffset(Field::VT_NAME, name);
|
661
|
+
}
|
662
|
+
void add_type(flatbuffers::Offset<reflection::Type> type) {
|
663
|
+
fbb_.AddOffset(Field::VT_TYPE, type);
|
664
|
+
}
|
665
|
+
void add_id(uint16_t id) {
|
666
|
+
fbb_.AddElement<uint16_t>(Field::VT_ID, id, 0);
|
667
|
+
}
|
668
|
+
void add_offset(uint16_t offset) {
|
669
|
+
fbb_.AddElement<uint16_t>(Field::VT_OFFSET, offset, 0);
|
670
|
+
}
|
671
|
+
void add_default_integer(int64_t default_integer) {
|
672
|
+
fbb_.AddElement<int64_t>(Field::VT_DEFAULT_INTEGER, default_integer, 0);
|
673
|
+
}
|
674
|
+
void add_default_real(double default_real) {
|
675
|
+
fbb_.AddElement<double>(Field::VT_DEFAULT_REAL, default_real, 0.0);
|
676
|
+
}
|
677
|
+
void add_deprecated(bool deprecated) {
|
678
|
+
fbb_.AddElement<uint8_t>(Field::VT_DEPRECATED, static_cast<uint8_t>(deprecated), 0);
|
679
|
+
}
|
680
|
+
void add_required(bool required) {
|
681
|
+
fbb_.AddElement<uint8_t>(Field::VT_REQUIRED, static_cast<uint8_t>(required), 0);
|
682
|
+
}
|
683
|
+
void add_key(bool key) {
|
684
|
+
fbb_.AddElement<uint8_t>(Field::VT_KEY, static_cast<uint8_t>(key), 0);
|
685
|
+
}
|
686
|
+
void add_attributes(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>>> attributes) {
|
687
|
+
fbb_.AddOffset(Field::VT_ATTRIBUTES, attributes);
|
688
|
+
}
|
689
|
+
void add_documentation(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>>> documentation) {
|
690
|
+
fbb_.AddOffset(Field::VT_DOCUMENTATION, documentation);
|
691
|
+
}
|
692
|
+
void add_optional(bool optional) {
|
693
|
+
fbb_.AddElement<uint8_t>(Field::VT_OPTIONAL, static_cast<uint8_t>(optional), 0);
|
694
|
+
}
|
695
|
+
void add_padding(uint16_t padding) {
|
696
|
+
fbb_.AddElement<uint16_t>(Field::VT_PADDING, padding, 0);
|
697
|
+
}
|
698
|
+
explicit FieldBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
699
|
+
: fbb_(_fbb) {
|
700
|
+
start_ = fbb_.StartTable();
|
701
|
+
}
|
702
|
+
flatbuffers::Offset<Field> Finish() {
|
703
|
+
const auto end = fbb_.EndTable(start_);
|
704
|
+
auto o = flatbuffers::Offset<Field>(end);
|
705
|
+
fbb_.Required(o, Field::VT_NAME);
|
706
|
+
fbb_.Required(o, Field::VT_TYPE);
|
707
|
+
return o;
|
708
|
+
}
|
709
|
+
};
|
710
|
+
|
711
|
+
inline flatbuffers::Offset<Field> CreateField(
|
712
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
713
|
+
flatbuffers::Offset<flatbuffers::String> name = 0,
|
714
|
+
flatbuffers::Offset<reflection::Type> type = 0,
|
715
|
+
uint16_t id = 0,
|
716
|
+
uint16_t offset = 0,
|
717
|
+
int64_t default_integer = 0,
|
718
|
+
double default_real = 0.0,
|
719
|
+
bool deprecated = false,
|
720
|
+
bool required = false,
|
721
|
+
bool key = false,
|
722
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>>> attributes = 0,
|
723
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>>> documentation = 0,
|
724
|
+
bool optional = false,
|
725
|
+
uint16_t padding = 0) {
|
726
|
+
FieldBuilder builder_(_fbb);
|
727
|
+
builder_.add_default_real(default_real);
|
728
|
+
builder_.add_default_integer(default_integer);
|
729
|
+
builder_.add_documentation(documentation);
|
730
|
+
builder_.add_attributes(attributes);
|
731
|
+
builder_.add_type(type);
|
732
|
+
builder_.add_name(name);
|
733
|
+
builder_.add_padding(padding);
|
734
|
+
builder_.add_offset(offset);
|
735
|
+
builder_.add_id(id);
|
736
|
+
builder_.add_optional(optional);
|
737
|
+
builder_.add_key(key);
|
738
|
+
builder_.add_required(required);
|
739
|
+
builder_.add_deprecated(deprecated);
|
740
|
+
return builder_.Finish();
|
741
|
+
}
|
742
|
+
|
743
|
+
inline flatbuffers::Offset<Field> CreateFieldDirect(
|
744
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
745
|
+
const char *name = nullptr,
|
746
|
+
flatbuffers::Offset<reflection::Type> type = 0,
|
747
|
+
uint16_t id = 0,
|
748
|
+
uint16_t offset = 0,
|
749
|
+
int64_t default_integer = 0,
|
750
|
+
double default_real = 0.0,
|
751
|
+
bool deprecated = false,
|
752
|
+
bool required = false,
|
753
|
+
bool key = false,
|
754
|
+
std::vector<flatbuffers::Offset<reflection::KeyValue>> *attributes = nullptr,
|
755
|
+
const std::vector<flatbuffers::Offset<flatbuffers::String>> *documentation = nullptr,
|
756
|
+
bool optional = false,
|
757
|
+
uint16_t padding = 0) {
|
758
|
+
auto name__ = name ? _fbb.CreateString(name) : 0;
|
759
|
+
auto attributes__ = attributes ? _fbb.CreateVectorOfSortedTables<reflection::KeyValue>(attributes) : 0;
|
760
|
+
auto documentation__ = documentation ? _fbb.CreateVector<flatbuffers::Offset<flatbuffers::String>>(*documentation) : 0;
|
761
|
+
return reflection::CreateField(
|
762
|
+
_fbb,
|
763
|
+
name__,
|
764
|
+
type,
|
765
|
+
id,
|
766
|
+
offset,
|
767
|
+
default_integer,
|
768
|
+
default_real,
|
769
|
+
deprecated,
|
770
|
+
required,
|
771
|
+
key,
|
772
|
+
attributes__,
|
773
|
+
documentation__,
|
774
|
+
optional,
|
775
|
+
padding);
|
776
|
+
}
|
777
|
+
|
778
|
+
struct Object FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
779
|
+
typedef ObjectBuilder Builder;
|
780
|
+
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
781
|
+
VT_NAME = 4,
|
782
|
+
VT_FIELDS = 6,
|
783
|
+
VT_IS_STRUCT = 8,
|
784
|
+
VT_MINALIGN = 10,
|
785
|
+
VT_BYTESIZE = 12,
|
786
|
+
VT_ATTRIBUTES = 14,
|
787
|
+
VT_DOCUMENTATION = 16,
|
788
|
+
VT_DECLARATION_FILE = 18
|
789
|
+
};
|
790
|
+
const flatbuffers::String *name() const {
|
791
|
+
return GetPointer<const flatbuffers::String *>(VT_NAME);
|
792
|
+
}
|
793
|
+
bool KeyCompareLessThan(const Object *o) const {
|
794
|
+
return *name() < *o->name();
|
795
|
+
}
|
796
|
+
int KeyCompareWithValue(const char *_name) const {
|
797
|
+
return strcmp(name()->c_str(), _name);
|
798
|
+
}
|
799
|
+
const flatbuffers::Vector<flatbuffers::Offset<reflection::Field>> *fields() const {
|
800
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<reflection::Field>> *>(VT_FIELDS);
|
801
|
+
}
|
802
|
+
bool is_struct() const {
|
803
|
+
return GetField<uint8_t>(VT_IS_STRUCT, 0) != 0;
|
804
|
+
}
|
805
|
+
int32_t minalign() const {
|
806
|
+
return GetField<int32_t>(VT_MINALIGN, 0);
|
807
|
+
}
|
808
|
+
int32_t bytesize() const {
|
809
|
+
return GetField<int32_t>(VT_BYTESIZE, 0);
|
810
|
+
}
|
811
|
+
const flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>> *attributes() const {
|
812
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>> *>(VT_ATTRIBUTES);
|
813
|
+
}
|
814
|
+
const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>> *documentation() const {
|
815
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>> *>(VT_DOCUMENTATION);
|
816
|
+
}
|
817
|
+
/// File that this Object is declared in.
|
818
|
+
const flatbuffers::String *declaration_file() const {
|
819
|
+
return GetPointer<const flatbuffers::String *>(VT_DECLARATION_FILE);
|
820
|
+
}
|
821
|
+
bool Verify(flatbuffers::Verifier &verifier) const {
|
822
|
+
return VerifyTableStart(verifier) &&
|
823
|
+
VerifyOffsetRequired(verifier, VT_NAME) &&
|
824
|
+
verifier.VerifyString(name()) &&
|
825
|
+
VerifyOffsetRequired(verifier, VT_FIELDS) &&
|
826
|
+
verifier.VerifyVector(fields()) &&
|
827
|
+
verifier.VerifyVectorOfTables(fields()) &&
|
828
|
+
VerifyField<uint8_t>(verifier, VT_IS_STRUCT, 1) &&
|
829
|
+
VerifyField<int32_t>(verifier, VT_MINALIGN, 4) &&
|
830
|
+
VerifyField<int32_t>(verifier, VT_BYTESIZE, 4) &&
|
831
|
+
VerifyOffset(verifier, VT_ATTRIBUTES) &&
|
832
|
+
verifier.VerifyVector(attributes()) &&
|
833
|
+
verifier.VerifyVectorOfTables(attributes()) &&
|
834
|
+
VerifyOffset(verifier, VT_DOCUMENTATION) &&
|
835
|
+
verifier.VerifyVector(documentation()) &&
|
836
|
+
verifier.VerifyVectorOfStrings(documentation()) &&
|
837
|
+
VerifyOffset(verifier, VT_DECLARATION_FILE) &&
|
838
|
+
verifier.VerifyString(declaration_file()) &&
|
839
|
+
verifier.EndTable();
|
840
|
+
}
|
841
|
+
};
|
842
|
+
|
843
|
+
struct ObjectBuilder {
|
844
|
+
typedef Object Table;
|
845
|
+
flatbuffers::FlatBufferBuilder &fbb_;
|
846
|
+
flatbuffers::uoffset_t start_;
|
847
|
+
void add_name(flatbuffers::Offset<flatbuffers::String> name) {
|
848
|
+
fbb_.AddOffset(Object::VT_NAME, name);
|
849
|
+
}
|
850
|
+
void add_fields(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::Field>>> fields) {
|
851
|
+
fbb_.AddOffset(Object::VT_FIELDS, fields);
|
852
|
+
}
|
853
|
+
void add_is_struct(bool is_struct) {
|
854
|
+
fbb_.AddElement<uint8_t>(Object::VT_IS_STRUCT, static_cast<uint8_t>(is_struct), 0);
|
855
|
+
}
|
856
|
+
void add_minalign(int32_t minalign) {
|
857
|
+
fbb_.AddElement<int32_t>(Object::VT_MINALIGN, minalign, 0);
|
858
|
+
}
|
859
|
+
void add_bytesize(int32_t bytesize) {
|
860
|
+
fbb_.AddElement<int32_t>(Object::VT_BYTESIZE, bytesize, 0);
|
861
|
+
}
|
862
|
+
void add_attributes(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>>> attributes) {
|
863
|
+
fbb_.AddOffset(Object::VT_ATTRIBUTES, attributes);
|
864
|
+
}
|
865
|
+
void add_documentation(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>>> documentation) {
|
866
|
+
fbb_.AddOffset(Object::VT_DOCUMENTATION, documentation);
|
867
|
+
}
|
868
|
+
void add_declaration_file(flatbuffers::Offset<flatbuffers::String> declaration_file) {
|
869
|
+
fbb_.AddOffset(Object::VT_DECLARATION_FILE, declaration_file);
|
870
|
+
}
|
871
|
+
explicit ObjectBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
872
|
+
: fbb_(_fbb) {
|
873
|
+
start_ = fbb_.StartTable();
|
874
|
+
}
|
875
|
+
flatbuffers::Offset<Object> Finish() {
|
876
|
+
const auto end = fbb_.EndTable(start_);
|
877
|
+
auto o = flatbuffers::Offset<Object>(end);
|
878
|
+
fbb_.Required(o, Object::VT_NAME);
|
879
|
+
fbb_.Required(o, Object::VT_FIELDS);
|
880
|
+
return o;
|
881
|
+
}
|
882
|
+
};
|
883
|
+
|
884
|
+
inline flatbuffers::Offset<Object> CreateObject(
|
885
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
886
|
+
flatbuffers::Offset<flatbuffers::String> name = 0,
|
887
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::Field>>> fields = 0,
|
888
|
+
bool is_struct = false,
|
889
|
+
int32_t minalign = 0,
|
890
|
+
int32_t bytesize = 0,
|
891
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>>> attributes = 0,
|
892
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>>> documentation = 0,
|
893
|
+
flatbuffers::Offset<flatbuffers::String> declaration_file = 0) {
|
894
|
+
ObjectBuilder builder_(_fbb);
|
895
|
+
builder_.add_declaration_file(declaration_file);
|
896
|
+
builder_.add_documentation(documentation);
|
897
|
+
builder_.add_attributes(attributes);
|
898
|
+
builder_.add_bytesize(bytesize);
|
899
|
+
builder_.add_minalign(minalign);
|
900
|
+
builder_.add_fields(fields);
|
901
|
+
builder_.add_name(name);
|
902
|
+
builder_.add_is_struct(is_struct);
|
903
|
+
return builder_.Finish();
|
904
|
+
}
|
905
|
+
|
906
|
+
inline flatbuffers::Offset<Object> CreateObjectDirect(
|
907
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
908
|
+
const char *name = nullptr,
|
909
|
+
std::vector<flatbuffers::Offset<reflection::Field>> *fields = nullptr,
|
910
|
+
bool is_struct = false,
|
911
|
+
int32_t minalign = 0,
|
912
|
+
int32_t bytesize = 0,
|
913
|
+
std::vector<flatbuffers::Offset<reflection::KeyValue>> *attributes = nullptr,
|
914
|
+
const std::vector<flatbuffers::Offset<flatbuffers::String>> *documentation = nullptr,
|
915
|
+
const char *declaration_file = nullptr) {
|
916
|
+
auto name__ = name ? _fbb.CreateString(name) : 0;
|
917
|
+
auto fields__ = fields ? _fbb.CreateVectorOfSortedTables<reflection::Field>(fields) : 0;
|
918
|
+
auto attributes__ = attributes ? _fbb.CreateVectorOfSortedTables<reflection::KeyValue>(attributes) : 0;
|
919
|
+
auto documentation__ = documentation ? _fbb.CreateVector<flatbuffers::Offset<flatbuffers::String>>(*documentation) : 0;
|
920
|
+
auto declaration_file__ = declaration_file ? _fbb.CreateString(declaration_file) : 0;
|
921
|
+
return reflection::CreateObject(
|
922
|
+
_fbb,
|
923
|
+
name__,
|
924
|
+
fields__,
|
925
|
+
is_struct,
|
926
|
+
minalign,
|
927
|
+
bytesize,
|
928
|
+
attributes__,
|
929
|
+
documentation__,
|
930
|
+
declaration_file__);
|
931
|
+
}
|
932
|
+
|
933
|
+
struct RPCCall FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
934
|
+
typedef RPCCallBuilder Builder;
|
935
|
+
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
936
|
+
VT_NAME = 4,
|
937
|
+
VT_REQUEST = 6,
|
938
|
+
VT_RESPONSE = 8,
|
939
|
+
VT_ATTRIBUTES = 10,
|
940
|
+
VT_DOCUMENTATION = 12
|
941
|
+
};
|
942
|
+
const flatbuffers::String *name() const {
|
943
|
+
return GetPointer<const flatbuffers::String *>(VT_NAME);
|
944
|
+
}
|
945
|
+
bool KeyCompareLessThan(const RPCCall *o) const {
|
946
|
+
return *name() < *o->name();
|
947
|
+
}
|
948
|
+
int KeyCompareWithValue(const char *_name) const {
|
949
|
+
return strcmp(name()->c_str(), _name);
|
950
|
+
}
|
951
|
+
const reflection::Object *request() const {
|
952
|
+
return GetPointer<const reflection::Object *>(VT_REQUEST);
|
953
|
+
}
|
954
|
+
const reflection::Object *response() const {
|
955
|
+
return GetPointer<const reflection::Object *>(VT_RESPONSE);
|
956
|
+
}
|
957
|
+
const flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>> *attributes() const {
|
958
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>> *>(VT_ATTRIBUTES);
|
959
|
+
}
|
960
|
+
const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>> *documentation() const {
|
961
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>> *>(VT_DOCUMENTATION);
|
962
|
+
}
|
963
|
+
bool Verify(flatbuffers::Verifier &verifier) const {
|
964
|
+
return VerifyTableStart(verifier) &&
|
965
|
+
VerifyOffsetRequired(verifier, VT_NAME) &&
|
966
|
+
verifier.VerifyString(name()) &&
|
967
|
+
VerifyOffsetRequired(verifier, VT_REQUEST) &&
|
968
|
+
verifier.VerifyTable(request()) &&
|
969
|
+
VerifyOffsetRequired(verifier, VT_RESPONSE) &&
|
970
|
+
verifier.VerifyTable(response()) &&
|
971
|
+
VerifyOffset(verifier, VT_ATTRIBUTES) &&
|
972
|
+
verifier.VerifyVector(attributes()) &&
|
973
|
+
verifier.VerifyVectorOfTables(attributes()) &&
|
974
|
+
VerifyOffset(verifier, VT_DOCUMENTATION) &&
|
975
|
+
verifier.VerifyVector(documentation()) &&
|
976
|
+
verifier.VerifyVectorOfStrings(documentation()) &&
|
977
|
+
verifier.EndTable();
|
978
|
+
}
|
979
|
+
};
|
980
|
+
|
981
|
+
struct RPCCallBuilder {
|
982
|
+
typedef RPCCall Table;
|
983
|
+
flatbuffers::FlatBufferBuilder &fbb_;
|
984
|
+
flatbuffers::uoffset_t start_;
|
985
|
+
void add_name(flatbuffers::Offset<flatbuffers::String> name) {
|
986
|
+
fbb_.AddOffset(RPCCall::VT_NAME, name);
|
987
|
+
}
|
988
|
+
void add_request(flatbuffers::Offset<reflection::Object> request) {
|
989
|
+
fbb_.AddOffset(RPCCall::VT_REQUEST, request);
|
990
|
+
}
|
991
|
+
void add_response(flatbuffers::Offset<reflection::Object> response) {
|
992
|
+
fbb_.AddOffset(RPCCall::VT_RESPONSE, response);
|
993
|
+
}
|
994
|
+
void add_attributes(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>>> attributes) {
|
995
|
+
fbb_.AddOffset(RPCCall::VT_ATTRIBUTES, attributes);
|
996
|
+
}
|
997
|
+
void add_documentation(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>>> documentation) {
|
998
|
+
fbb_.AddOffset(RPCCall::VT_DOCUMENTATION, documentation);
|
999
|
+
}
|
1000
|
+
explicit RPCCallBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
1001
|
+
: fbb_(_fbb) {
|
1002
|
+
start_ = fbb_.StartTable();
|
1003
|
+
}
|
1004
|
+
flatbuffers::Offset<RPCCall> Finish() {
|
1005
|
+
const auto end = fbb_.EndTable(start_);
|
1006
|
+
auto o = flatbuffers::Offset<RPCCall>(end);
|
1007
|
+
fbb_.Required(o, RPCCall::VT_NAME);
|
1008
|
+
fbb_.Required(o, RPCCall::VT_REQUEST);
|
1009
|
+
fbb_.Required(o, RPCCall::VT_RESPONSE);
|
1010
|
+
return o;
|
1011
|
+
}
|
1012
|
+
};
|
1013
|
+
|
1014
|
+
inline flatbuffers::Offset<RPCCall> CreateRPCCall(
|
1015
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
1016
|
+
flatbuffers::Offset<flatbuffers::String> name = 0,
|
1017
|
+
flatbuffers::Offset<reflection::Object> request = 0,
|
1018
|
+
flatbuffers::Offset<reflection::Object> response = 0,
|
1019
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>>> attributes = 0,
|
1020
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>>> documentation = 0) {
|
1021
|
+
RPCCallBuilder builder_(_fbb);
|
1022
|
+
builder_.add_documentation(documentation);
|
1023
|
+
builder_.add_attributes(attributes);
|
1024
|
+
builder_.add_response(response);
|
1025
|
+
builder_.add_request(request);
|
1026
|
+
builder_.add_name(name);
|
1027
|
+
return builder_.Finish();
|
1028
|
+
}
|
1029
|
+
|
1030
|
+
inline flatbuffers::Offset<RPCCall> CreateRPCCallDirect(
|
1031
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
1032
|
+
const char *name = nullptr,
|
1033
|
+
flatbuffers::Offset<reflection::Object> request = 0,
|
1034
|
+
flatbuffers::Offset<reflection::Object> response = 0,
|
1035
|
+
std::vector<flatbuffers::Offset<reflection::KeyValue>> *attributes = nullptr,
|
1036
|
+
const std::vector<flatbuffers::Offset<flatbuffers::String>> *documentation = nullptr) {
|
1037
|
+
auto name__ = name ? _fbb.CreateString(name) : 0;
|
1038
|
+
auto attributes__ = attributes ? _fbb.CreateVectorOfSortedTables<reflection::KeyValue>(attributes) : 0;
|
1039
|
+
auto documentation__ = documentation ? _fbb.CreateVector<flatbuffers::Offset<flatbuffers::String>>(*documentation) : 0;
|
1040
|
+
return reflection::CreateRPCCall(
|
1041
|
+
_fbb,
|
1042
|
+
name__,
|
1043
|
+
request,
|
1044
|
+
response,
|
1045
|
+
attributes__,
|
1046
|
+
documentation__);
|
1047
|
+
}
|
1048
|
+
|
1049
|
+
struct Service FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
1050
|
+
typedef ServiceBuilder Builder;
|
1051
|
+
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
1052
|
+
VT_NAME = 4,
|
1053
|
+
VT_CALLS = 6,
|
1054
|
+
VT_ATTRIBUTES = 8,
|
1055
|
+
VT_DOCUMENTATION = 10,
|
1056
|
+
VT_DECLARATION_FILE = 12
|
1057
|
+
};
|
1058
|
+
const flatbuffers::String *name() const {
|
1059
|
+
return GetPointer<const flatbuffers::String *>(VT_NAME);
|
1060
|
+
}
|
1061
|
+
bool KeyCompareLessThan(const Service *o) const {
|
1062
|
+
return *name() < *o->name();
|
1063
|
+
}
|
1064
|
+
int KeyCompareWithValue(const char *_name) const {
|
1065
|
+
return strcmp(name()->c_str(), _name);
|
1066
|
+
}
|
1067
|
+
const flatbuffers::Vector<flatbuffers::Offset<reflection::RPCCall>> *calls() const {
|
1068
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<reflection::RPCCall>> *>(VT_CALLS);
|
1069
|
+
}
|
1070
|
+
const flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>> *attributes() const {
|
1071
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>> *>(VT_ATTRIBUTES);
|
1072
|
+
}
|
1073
|
+
const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>> *documentation() const {
|
1074
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>> *>(VT_DOCUMENTATION);
|
1075
|
+
}
|
1076
|
+
/// File that this Service is declared in.
|
1077
|
+
const flatbuffers::String *declaration_file() const {
|
1078
|
+
return GetPointer<const flatbuffers::String *>(VT_DECLARATION_FILE);
|
1079
|
+
}
|
1080
|
+
bool Verify(flatbuffers::Verifier &verifier) const {
|
1081
|
+
return VerifyTableStart(verifier) &&
|
1082
|
+
VerifyOffsetRequired(verifier, VT_NAME) &&
|
1083
|
+
verifier.VerifyString(name()) &&
|
1084
|
+
VerifyOffset(verifier, VT_CALLS) &&
|
1085
|
+
verifier.VerifyVector(calls()) &&
|
1086
|
+
verifier.VerifyVectorOfTables(calls()) &&
|
1087
|
+
VerifyOffset(verifier, VT_ATTRIBUTES) &&
|
1088
|
+
verifier.VerifyVector(attributes()) &&
|
1089
|
+
verifier.VerifyVectorOfTables(attributes()) &&
|
1090
|
+
VerifyOffset(verifier, VT_DOCUMENTATION) &&
|
1091
|
+
verifier.VerifyVector(documentation()) &&
|
1092
|
+
verifier.VerifyVectorOfStrings(documentation()) &&
|
1093
|
+
VerifyOffset(verifier, VT_DECLARATION_FILE) &&
|
1094
|
+
verifier.VerifyString(declaration_file()) &&
|
1095
|
+
verifier.EndTable();
|
1096
|
+
}
|
1097
|
+
};
|
1098
|
+
|
1099
|
+
struct ServiceBuilder {
|
1100
|
+
typedef Service Table;
|
1101
|
+
flatbuffers::FlatBufferBuilder &fbb_;
|
1102
|
+
flatbuffers::uoffset_t start_;
|
1103
|
+
void add_name(flatbuffers::Offset<flatbuffers::String> name) {
|
1104
|
+
fbb_.AddOffset(Service::VT_NAME, name);
|
1105
|
+
}
|
1106
|
+
void add_calls(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::RPCCall>>> calls) {
|
1107
|
+
fbb_.AddOffset(Service::VT_CALLS, calls);
|
1108
|
+
}
|
1109
|
+
void add_attributes(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>>> attributes) {
|
1110
|
+
fbb_.AddOffset(Service::VT_ATTRIBUTES, attributes);
|
1111
|
+
}
|
1112
|
+
void add_documentation(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>>> documentation) {
|
1113
|
+
fbb_.AddOffset(Service::VT_DOCUMENTATION, documentation);
|
1114
|
+
}
|
1115
|
+
void add_declaration_file(flatbuffers::Offset<flatbuffers::String> declaration_file) {
|
1116
|
+
fbb_.AddOffset(Service::VT_DECLARATION_FILE, declaration_file);
|
1117
|
+
}
|
1118
|
+
explicit ServiceBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
1119
|
+
: fbb_(_fbb) {
|
1120
|
+
start_ = fbb_.StartTable();
|
1121
|
+
}
|
1122
|
+
flatbuffers::Offset<Service> Finish() {
|
1123
|
+
const auto end = fbb_.EndTable(start_);
|
1124
|
+
auto o = flatbuffers::Offset<Service>(end);
|
1125
|
+
fbb_.Required(o, Service::VT_NAME);
|
1126
|
+
return o;
|
1127
|
+
}
|
1128
|
+
};
|
1129
|
+
|
1130
|
+
inline flatbuffers::Offset<Service> CreateService(
|
1131
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
1132
|
+
flatbuffers::Offset<flatbuffers::String> name = 0,
|
1133
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::RPCCall>>> calls = 0,
|
1134
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::KeyValue>>> attributes = 0,
|
1135
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>>> documentation = 0,
|
1136
|
+
flatbuffers::Offset<flatbuffers::String> declaration_file = 0) {
|
1137
|
+
ServiceBuilder builder_(_fbb);
|
1138
|
+
builder_.add_declaration_file(declaration_file);
|
1139
|
+
builder_.add_documentation(documentation);
|
1140
|
+
builder_.add_attributes(attributes);
|
1141
|
+
builder_.add_calls(calls);
|
1142
|
+
builder_.add_name(name);
|
1143
|
+
return builder_.Finish();
|
1144
|
+
}
|
1145
|
+
|
1146
|
+
inline flatbuffers::Offset<Service> CreateServiceDirect(
|
1147
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
1148
|
+
const char *name = nullptr,
|
1149
|
+
std::vector<flatbuffers::Offset<reflection::RPCCall>> *calls = nullptr,
|
1150
|
+
std::vector<flatbuffers::Offset<reflection::KeyValue>> *attributes = nullptr,
|
1151
|
+
const std::vector<flatbuffers::Offset<flatbuffers::String>> *documentation = nullptr,
|
1152
|
+
const char *declaration_file = nullptr) {
|
1153
|
+
auto name__ = name ? _fbb.CreateString(name) : 0;
|
1154
|
+
auto calls__ = calls ? _fbb.CreateVectorOfSortedTables<reflection::RPCCall>(calls) : 0;
|
1155
|
+
auto attributes__ = attributes ? _fbb.CreateVectorOfSortedTables<reflection::KeyValue>(attributes) : 0;
|
1156
|
+
auto documentation__ = documentation ? _fbb.CreateVector<flatbuffers::Offset<flatbuffers::String>>(*documentation) : 0;
|
1157
|
+
auto declaration_file__ = declaration_file ? _fbb.CreateString(declaration_file) : 0;
|
1158
|
+
return reflection::CreateService(
|
1159
|
+
_fbb,
|
1160
|
+
name__,
|
1161
|
+
calls__,
|
1162
|
+
attributes__,
|
1163
|
+
documentation__,
|
1164
|
+
declaration_file__);
|
1165
|
+
}
|
1166
|
+
|
1167
|
+
/// File specific information.
|
1168
|
+
/// Symbols declared within a file may be recovered by iterating over all
|
1169
|
+
/// symbols and examining the `declaration_file` field.
|
1170
|
+
struct SchemaFile FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
1171
|
+
typedef SchemaFileBuilder Builder;
|
1172
|
+
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
1173
|
+
VT_FILENAME = 4,
|
1174
|
+
VT_INCLUDED_FILENAMES = 6
|
1175
|
+
};
|
1176
|
+
/// Filename, relative to project root.
|
1177
|
+
const flatbuffers::String *filename() const {
|
1178
|
+
return GetPointer<const flatbuffers::String *>(VT_FILENAME);
|
1179
|
+
}
|
1180
|
+
bool KeyCompareLessThan(const SchemaFile *o) const {
|
1181
|
+
return *filename() < *o->filename();
|
1182
|
+
}
|
1183
|
+
int KeyCompareWithValue(const char *_filename) const {
|
1184
|
+
return strcmp(filename()->c_str(), _filename);
|
1185
|
+
}
|
1186
|
+
/// Names of included files, relative to project root.
|
1187
|
+
const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>> *included_filenames() const {
|
1188
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>> *>(VT_INCLUDED_FILENAMES);
|
1189
|
+
}
|
1190
|
+
bool Verify(flatbuffers::Verifier &verifier) const {
|
1191
|
+
return VerifyTableStart(verifier) &&
|
1192
|
+
VerifyOffsetRequired(verifier, VT_FILENAME) &&
|
1193
|
+
verifier.VerifyString(filename()) &&
|
1194
|
+
VerifyOffset(verifier, VT_INCLUDED_FILENAMES) &&
|
1195
|
+
verifier.VerifyVector(included_filenames()) &&
|
1196
|
+
verifier.VerifyVectorOfStrings(included_filenames()) &&
|
1197
|
+
verifier.EndTable();
|
1198
|
+
}
|
1199
|
+
};
|
1200
|
+
|
1201
|
+
struct SchemaFileBuilder {
|
1202
|
+
typedef SchemaFile Table;
|
1203
|
+
flatbuffers::FlatBufferBuilder &fbb_;
|
1204
|
+
flatbuffers::uoffset_t start_;
|
1205
|
+
void add_filename(flatbuffers::Offset<flatbuffers::String> filename) {
|
1206
|
+
fbb_.AddOffset(SchemaFile::VT_FILENAME, filename);
|
1207
|
+
}
|
1208
|
+
void add_included_filenames(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>>> included_filenames) {
|
1209
|
+
fbb_.AddOffset(SchemaFile::VT_INCLUDED_FILENAMES, included_filenames);
|
1210
|
+
}
|
1211
|
+
explicit SchemaFileBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
1212
|
+
: fbb_(_fbb) {
|
1213
|
+
start_ = fbb_.StartTable();
|
1214
|
+
}
|
1215
|
+
flatbuffers::Offset<SchemaFile> Finish() {
|
1216
|
+
const auto end = fbb_.EndTable(start_);
|
1217
|
+
auto o = flatbuffers::Offset<SchemaFile>(end);
|
1218
|
+
fbb_.Required(o, SchemaFile::VT_FILENAME);
|
1219
|
+
return o;
|
1220
|
+
}
|
1221
|
+
};
|
1222
|
+
|
1223
|
+
inline flatbuffers::Offset<SchemaFile> CreateSchemaFile(
|
1224
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
1225
|
+
flatbuffers::Offset<flatbuffers::String> filename = 0,
|
1226
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>>> included_filenames = 0) {
|
1227
|
+
SchemaFileBuilder builder_(_fbb);
|
1228
|
+
builder_.add_included_filenames(included_filenames);
|
1229
|
+
builder_.add_filename(filename);
|
1230
|
+
return builder_.Finish();
|
1231
|
+
}
|
1232
|
+
|
1233
|
+
inline flatbuffers::Offset<SchemaFile> CreateSchemaFileDirect(
|
1234
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
1235
|
+
const char *filename = nullptr,
|
1236
|
+
const std::vector<flatbuffers::Offset<flatbuffers::String>> *included_filenames = nullptr) {
|
1237
|
+
auto filename__ = filename ? _fbb.CreateString(filename) : 0;
|
1238
|
+
auto included_filenames__ = included_filenames ? _fbb.CreateVector<flatbuffers::Offset<flatbuffers::String>>(*included_filenames) : 0;
|
1239
|
+
return reflection::CreateSchemaFile(
|
1240
|
+
_fbb,
|
1241
|
+
filename__,
|
1242
|
+
included_filenames__);
|
1243
|
+
}
|
1244
|
+
|
1245
|
+
struct Schema FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
1246
|
+
typedef SchemaBuilder Builder;
|
1247
|
+
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
1248
|
+
VT_OBJECTS = 4,
|
1249
|
+
VT_ENUMS = 6,
|
1250
|
+
VT_FILE_IDENT = 8,
|
1251
|
+
VT_FILE_EXT = 10,
|
1252
|
+
VT_ROOT_TABLE = 12,
|
1253
|
+
VT_SERVICES = 14,
|
1254
|
+
VT_ADVANCED_FEATURES = 16,
|
1255
|
+
VT_FBS_FILES = 18
|
1256
|
+
};
|
1257
|
+
const flatbuffers::Vector<flatbuffers::Offset<reflection::Object>> *objects() const {
|
1258
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<reflection::Object>> *>(VT_OBJECTS);
|
1259
|
+
}
|
1260
|
+
const flatbuffers::Vector<flatbuffers::Offset<reflection::Enum>> *enums() const {
|
1261
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<reflection::Enum>> *>(VT_ENUMS);
|
1262
|
+
}
|
1263
|
+
const flatbuffers::String *file_ident() const {
|
1264
|
+
return GetPointer<const flatbuffers::String *>(VT_FILE_IDENT);
|
1265
|
+
}
|
1266
|
+
const flatbuffers::String *file_ext() const {
|
1267
|
+
return GetPointer<const flatbuffers::String *>(VT_FILE_EXT);
|
1268
|
+
}
|
1269
|
+
const reflection::Object *root_table() const {
|
1270
|
+
return GetPointer<const reflection::Object *>(VT_ROOT_TABLE);
|
1271
|
+
}
|
1272
|
+
const flatbuffers::Vector<flatbuffers::Offset<reflection::Service>> *services() const {
|
1273
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<reflection::Service>> *>(VT_SERVICES);
|
1274
|
+
}
|
1275
|
+
reflection::AdvancedFeatures advanced_features() const {
|
1276
|
+
return static_cast<reflection::AdvancedFeatures>(GetField<uint64_t>(VT_ADVANCED_FEATURES, 0));
|
1277
|
+
}
|
1278
|
+
/// All the files used in this compilation. Files are relative to where
|
1279
|
+
/// flatc was invoked.
|
1280
|
+
const flatbuffers::Vector<flatbuffers::Offset<reflection::SchemaFile>> *fbs_files() const {
|
1281
|
+
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<reflection::SchemaFile>> *>(VT_FBS_FILES);
|
1282
|
+
}
|
1283
|
+
bool Verify(flatbuffers::Verifier &verifier) const {
|
1284
|
+
return VerifyTableStart(verifier) &&
|
1285
|
+
VerifyOffsetRequired(verifier, VT_OBJECTS) &&
|
1286
|
+
verifier.VerifyVector(objects()) &&
|
1287
|
+
verifier.VerifyVectorOfTables(objects()) &&
|
1288
|
+
VerifyOffsetRequired(verifier, VT_ENUMS) &&
|
1289
|
+
verifier.VerifyVector(enums()) &&
|
1290
|
+
verifier.VerifyVectorOfTables(enums()) &&
|
1291
|
+
VerifyOffset(verifier, VT_FILE_IDENT) &&
|
1292
|
+
verifier.VerifyString(file_ident()) &&
|
1293
|
+
VerifyOffset(verifier, VT_FILE_EXT) &&
|
1294
|
+
verifier.VerifyString(file_ext()) &&
|
1295
|
+
VerifyOffset(verifier, VT_ROOT_TABLE) &&
|
1296
|
+
verifier.VerifyTable(root_table()) &&
|
1297
|
+
VerifyOffset(verifier, VT_SERVICES) &&
|
1298
|
+
verifier.VerifyVector(services()) &&
|
1299
|
+
verifier.VerifyVectorOfTables(services()) &&
|
1300
|
+
VerifyField<uint64_t>(verifier, VT_ADVANCED_FEATURES, 8) &&
|
1301
|
+
VerifyOffset(verifier, VT_FBS_FILES) &&
|
1302
|
+
verifier.VerifyVector(fbs_files()) &&
|
1303
|
+
verifier.VerifyVectorOfTables(fbs_files()) &&
|
1304
|
+
verifier.EndTable();
|
1305
|
+
}
|
1306
|
+
};
|
1307
|
+
|
1308
|
+
struct SchemaBuilder {
|
1309
|
+
typedef Schema Table;
|
1310
|
+
flatbuffers::FlatBufferBuilder &fbb_;
|
1311
|
+
flatbuffers::uoffset_t start_;
|
1312
|
+
void add_objects(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::Object>>> objects) {
|
1313
|
+
fbb_.AddOffset(Schema::VT_OBJECTS, objects);
|
1314
|
+
}
|
1315
|
+
void add_enums(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::Enum>>> enums) {
|
1316
|
+
fbb_.AddOffset(Schema::VT_ENUMS, enums);
|
1317
|
+
}
|
1318
|
+
void add_file_ident(flatbuffers::Offset<flatbuffers::String> file_ident) {
|
1319
|
+
fbb_.AddOffset(Schema::VT_FILE_IDENT, file_ident);
|
1320
|
+
}
|
1321
|
+
void add_file_ext(flatbuffers::Offset<flatbuffers::String> file_ext) {
|
1322
|
+
fbb_.AddOffset(Schema::VT_FILE_EXT, file_ext);
|
1323
|
+
}
|
1324
|
+
void add_root_table(flatbuffers::Offset<reflection::Object> root_table) {
|
1325
|
+
fbb_.AddOffset(Schema::VT_ROOT_TABLE, root_table);
|
1326
|
+
}
|
1327
|
+
void add_services(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::Service>>> services) {
|
1328
|
+
fbb_.AddOffset(Schema::VT_SERVICES, services);
|
1329
|
+
}
|
1330
|
+
void add_advanced_features(reflection::AdvancedFeatures advanced_features) {
|
1331
|
+
fbb_.AddElement<uint64_t>(Schema::VT_ADVANCED_FEATURES, static_cast<uint64_t>(advanced_features), 0);
|
1332
|
+
}
|
1333
|
+
void add_fbs_files(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::SchemaFile>>> fbs_files) {
|
1334
|
+
fbb_.AddOffset(Schema::VT_FBS_FILES, fbs_files);
|
1335
|
+
}
|
1336
|
+
explicit SchemaBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
1337
|
+
: fbb_(_fbb) {
|
1338
|
+
start_ = fbb_.StartTable();
|
1339
|
+
}
|
1340
|
+
flatbuffers::Offset<Schema> Finish() {
|
1341
|
+
const auto end = fbb_.EndTable(start_);
|
1342
|
+
auto o = flatbuffers::Offset<Schema>(end);
|
1343
|
+
fbb_.Required(o, Schema::VT_OBJECTS);
|
1344
|
+
fbb_.Required(o, Schema::VT_ENUMS);
|
1345
|
+
return o;
|
1346
|
+
}
|
1347
|
+
};
|
1348
|
+
|
1349
|
+
inline flatbuffers::Offset<Schema> CreateSchema(
|
1350
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
1351
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::Object>>> objects = 0,
|
1352
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::Enum>>> enums = 0,
|
1353
|
+
flatbuffers::Offset<flatbuffers::String> file_ident = 0,
|
1354
|
+
flatbuffers::Offset<flatbuffers::String> file_ext = 0,
|
1355
|
+
flatbuffers::Offset<reflection::Object> root_table = 0,
|
1356
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::Service>>> services = 0,
|
1357
|
+
reflection::AdvancedFeatures advanced_features = static_cast<reflection::AdvancedFeatures>(0),
|
1358
|
+
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<reflection::SchemaFile>>> fbs_files = 0) {
|
1359
|
+
SchemaBuilder builder_(_fbb);
|
1360
|
+
builder_.add_advanced_features(advanced_features);
|
1361
|
+
builder_.add_fbs_files(fbs_files);
|
1362
|
+
builder_.add_services(services);
|
1363
|
+
builder_.add_root_table(root_table);
|
1364
|
+
builder_.add_file_ext(file_ext);
|
1365
|
+
builder_.add_file_ident(file_ident);
|
1366
|
+
builder_.add_enums(enums);
|
1367
|
+
builder_.add_objects(objects);
|
1368
|
+
return builder_.Finish();
|
1369
|
+
}
|
1370
|
+
|
1371
|
+
inline flatbuffers::Offset<Schema> CreateSchemaDirect(
|
1372
|
+
flatbuffers::FlatBufferBuilder &_fbb,
|
1373
|
+
std::vector<flatbuffers::Offset<reflection::Object>> *objects = nullptr,
|
1374
|
+
std::vector<flatbuffers::Offset<reflection::Enum>> *enums = nullptr,
|
1375
|
+
const char *file_ident = nullptr,
|
1376
|
+
const char *file_ext = nullptr,
|
1377
|
+
flatbuffers::Offset<reflection::Object> root_table = 0,
|
1378
|
+
std::vector<flatbuffers::Offset<reflection::Service>> *services = nullptr,
|
1379
|
+
reflection::AdvancedFeatures advanced_features = static_cast<reflection::AdvancedFeatures>(0),
|
1380
|
+
std::vector<flatbuffers::Offset<reflection::SchemaFile>> *fbs_files = nullptr) {
|
1381
|
+
auto objects__ = objects ? _fbb.CreateVectorOfSortedTables<reflection::Object>(objects) : 0;
|
1382
|
+
auto enums__ = enums ? _fbb.CreateVectorOfSortedTables<reflection::Enum>(enums) : 0;
|
1383
|
+
auto file_ident__ = file_ident ? _fbb.CreateString(file_ident) : 0;
|
1384
|
+
auto file_ext__ = file_ext ? _fbb.CreateString(file_ext) : 0;
|
1385
|
+
auto services__ = services ? _fbb.CreateVectorOfSortedTables<reflection::Service>(services) : 0;
|
1386
|
+
auto fbs_files__ = fbs_files ? _fbb.CreateVectorOfSortedTables<reflection::SchemaFile>(fbs_files) : 0;
|
1387
|
+
return reflection::CreateSchema(
|
1388
|
+
_fbb,
|
1389
|
+
objects__,
|
1390
|
+
enums__,
|
1391
|
+
file_ident__,
|
1392
|
+
file_ext__,
|
1393
|
+
root_table,
|
1394
|
+
services__,
|
1395
|
+
advanced_features,
|
1396
|
+
fbs_files__);
|
1397
|
+
}
|
1398
|
+
|
1399
|
+
inline const reflection::Schema *GetSchema(const void *buf) {
|
1400
|
+
return flatbuffers::GetRoot<reflection::Schema>(buf);
|
1401
|
+
}
|
1402
|
+
|
1403
|
+
inline const reflection::Schema *GetSizePrefixedSchema(const void *buf) {
|
1404
|
+
return flatbuffers::GetSizePrefixedRoot<reflection::Schema>(buf);
|
1405
|
+
}
|
1406
|
+
|
1407
|
+
inline const char *SchemaIdentifier() {
|
1408
|
+
return "BFBS";
|
1409
|
+
}
|
1410
|
+
|
1411
|
+
inline bool SchemaBufferHasIdentifier(const void *buf) {
|
1412
|
+
return flatbuffers::BufferHasIdentifier(
|
1413
|
+
buf, SchemaIdentifier());
|
1414
|
+
}
|
1415
|
+
|
1416
|
+
inline bool SizePrefixedSchemaBufferHasIdentifier(const void *buf) {
|
1417
|
+
return flatbuffers::BufferHasIdentifier(
|
1418
|
+
buf, SchemaIdentifier(), true);
|
1419
|
+
}
|
1420
|
+
|
1421
|
+
inline bool VerifySchemaBuffer(
|
1422
|
+
flatbuffers::Verifier &verifier) {
|
1423
|
+
return verifier.VerifyBuffer<reflection::Schema>(SchemaIdentifier());
|
1424
|
+
}
|
1425
|
+
|
1426
|
+
inline bool VerifySizePrefixedSchemaBuffer(
|
1427
|
+
flatbuffers::Verifier &verifier) {
|
1428
|
+
return verifier.VerifySizePrefixedBuffer<reflection::Schema>(SchemaIdentifier());
|
1429
|
+
}
|
1430
|
+
|
1431
|
+
inline const char *SchemaExtension() {
|
1432
|
+
return "bfbs";
|
1433
|
+
}
|
1434
|
+
|
1435
|
+
inline void FinishSchemaBuffer(
|
1436
|
+
flatbuffers::FlatBufferBuilder &fbb,
|
1437
|
+
flatbuffers::Offset<reflection::Schema> root) {
|
1438
|
+
fbb.Finish(root, SchemaIdentifier());
|
1439
|
+
}
|
1440
|
+
|
1441
|
+
inline void FinishSizePrefixedSchemaBuffer(
|
1442
|
+
flatbuffers::FlatBufferBuilder &fbb,
|
1443
|
+
flatbuffers::Offset<reflection::Schema> root) {
|
1444
|
+
fbb.FinishSizePrefixed(root, SchemaIdentifier());
|
1445
|
+
}
|
1446
|
+
|
1447
|
+
} // namespace reflection
|
1448
|
+
|
1449
|
+
#endif // FLATBUFFERS_GENERATED_REFLECTION_REFLECTION_H_
|