#ifndef FLATBUFFERS_BFBS_GEN_H_
#define FLATBUFFERS_BFBS_GEN_H_
#include <cstdint>
#include "flatbuffers/code_generator.h"
#include "flatbuffers/reflection_generated.h"
namespace flatbuffers {
namespace {
static void ForAllEnums(
const flatbuffers::Vector<flatbuffers::Offset<reflection::Enum>> *enums,
std::function<void(const reflection::Enum *)> func) { … }
static void ForAllObjects(
const flatbuffers::Vector<flatbuffers::Offset<reflection::Object>> *objects,
std::function<void(const reflection::Object *)> func) { … }
static void ForAllEnumValues(
const reflection::Enum *enum_def,
std::function<void(const reflection::EnumVal *)> func) { … }
static void ForAllDocumentation(
const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::String>>
*documentation,
std::function<void(const flatbuffers::String *)> func) { … }
static std::vector<uint32_t> FieldIdToIndex(const reflection::Object *object) { … }
static bool IsStructOrTable(const reflection::BaseType base_type) { … }
static bool IsFloatingPoint(const reflection::BaseType base_type) { … }
static bool IsBool(const reflection::BaseType base_type) { … }
static bool IsSingleByte(const reflection::BaseType base_type) { … }
static bool IsVector(const reflection::BaseType base_type) { … }
}
class BaseBfbsGenerator : public CodeGenerator { … };
}
#endif