#include "idl_gen_cpp.h"
#include <limits>
#include <memory>
#include <string>
#include <unordered_set>
#include <utility>
#include "flatbuffers/base.h"
#include "flatbuffers/code_generators.h"
#include "flatbuffers/flatbuffers.h"
#include "flatbuffers/flatc.h"
#include "flatbuffers/idl.h"
#include "flatbuffers/util.h"
namespace flatbuffers {
static inline std::string NumToStringCpp(std::string val, BaseType type) { … }
static std::string GenIncludeGuard(const std::string &file_name,
const Namespace &name_space,
const std::string &postfix = "") { … }
static bool IsVectorOfPointers(const FieldDef &field) { … }
static bool IsPointer(const FieldDef &field) { … }
namespace cpp {
enum CppStandard { … };
enum GenArrayArgMode { … };
struct IDLOptionsCpp : public IDLOptions { … };
static void ForAllFieldsOrderedByOffset(
const StructDef &object, std::function<void(const FieldDef *field)> func) { … }
class CppGenerator : public BaseGenerator { … };
}
static bool GenerateCPP(const Parser &parser, const std::string &path,
const std::string &file_name) { … }
static std::string CPPMakeRule(const Parser &parser, const std::string &path,
const std::string &file_name) { … }
namespace {
class CppCodeGenerator : public CodeGenerator { … };
}
std::unique_ptr<CodeGenerator> NewCppCodeGenerator() { … }
}