8 #ifndef FLATBUFFERS_GENERATED_CLCONTEXTSCHEMA_ARMNN_H_
9 #define FLATBUFFERS_GENERATED_CLCONTEXTSCHEMA_ARMNN_H_
11 #include "flatbuffers/flatbuffers.h"
16 struct ClContextBuilder;
19 struct ProgramBuilder;
23 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
26 const flatbuffers::Vector<flatbuffers::Offset<armnn::Program>> *
programs()
const {
27 return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<armnn::Program>> *>(VT_PROGRAMS);
29 bool Verify(flatbuffers::Verifier &verifier)
const {
30 return VerifyTableStart(verifier) &&
31 VerifyOffset(verifier, VT_PROGRAMS) &&
32 verifier.VerifyVector(programs()) &&
33 verifier.VerifyVectorOfTables(programs()) &&
40 flatbuffers::FlatBufferBuilder &
fbb_;
43 fbb_.AddOffset(ClContext::VT_PROGRAMS, programs);
50 flatbuffers::Offset<ClContext>
Finish() {
52 auto o = flatbuffers::Offset<ClContext>(end);
58 flatbuffers::FlatBufferBuilder &_fbb,
59 flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<armnn::Program>>> programs = 0) {
66 flatbuffers::FlatBufferBuilder &_fbb,
67 const std::vector<flatbuffers::Offset<armnn::Program>> *programs =
nullptr) {
68 auto programs__ = programs ? _fbb.CreateVector<flatbuffers::Offset<armnn::Program>>(*programs) : 0;
74 struct Program FLATBUFFERS_FINAL_CLASS :
private flatbuffers::Table {
76 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
80 const flatbuffers::String *
name()
const {
81 return GetPointer<const flatbuffers::String *>(
VT_NAME);
83 const flatbuffers::Vector<uint8_t> *
binary()
const {
84 return GetPointer<const flatbuffers::Vector<uint8_t> *>(VT_BINARY);
86 bool Verify(flatbuffers::Verifier &verifier)
const {
87 return VerifyTableStart(verifier) &&
88 VerifyOffset(verifier,
VT_NAME) &&
89 verifier.VerifyString(name()) &&
90 VerifyOffset(verifier, VT_BINARY) &&
91 verifier.VerifyVector(binary()) &&
98 flatbuffers::FlatBufferBuilder &
fbb_;
100 void add_name(flatbuffers::Offset<flatbuffers::String> name) {
104 fbb_.AddOffset(Program::VT_BINARY, binary);
113 auto o = flatbuffers::Offset<Program>(end);
119 flatbuffers::FlatBufferBuilder &_fbb,
120 flatbuffers::Offset<flatbuffers::String> name = 0,
129 flatbuffers::FlatBufferBuilder &_fbb,
130 const char *name =
nullptr,
131 const std::vector<uint8_t> *binary =
nullptr) {
132 auto name__ = name ? _fbb.CreateString(name) : 0;
133 auto binary__ = binary ? _fbb.CreateVector<uint8_t>(*binary) : 0;
141 return flatbuffers::GetRoot<armnn::ClContext>(buf);
145 return flatbuffers::GetSizePrefixedRoot<armnn::ClContext>(buf);
153 return flatbuffers::BufferHasIdentifier(
158 flatbuffers::Verifier &verifier) {
163 flatbuffers::Verifier &verifier) {
172 flatbuffers::FlatBufferBuilder &fbb,
173 flatbuffers::Offset<armnn::ClContext> root) {
178 flatbuffers::FlatBufferBuilder &fbb,
179 flatbuffers::Offset<armnn::ClContext> root) {
185 #endif // FLATBUFFERS_GENERATED_CLCONTEXTSCHEMA_ARMNN_H_