Classes | |
| class | Allocator |
| class | DefaultAllocator |
| class | DetachedBuffer |
| class | FlatBufferBuilder |
Helper class to hold data needed in creation of a FlatBuffer. To serialize data, you typically call one of the Create*() functions in the generated code, which in turn call a sequence of StartTable/ PushElement/AddElement/EndTable, or the builtin CreateString/ CreateVector functions. Do this is depth-first order to build up a tree to the root. Finish() wraps up the buffer ready for transport. More... | |
| struct | IndirectHelper |
| struct | IndirectHelper< const T * > |
| struct | IndirectHelper< Offset< T > > |
| struct | Offset |
| struct | String |
| class | Vector |
| class | vector_downward |
| struct | VectorIterator |
| class | VectorOfAny |
Typedefs | |
| typedef bool(* | FileExistsFunction) (const char *filename) |
| template<typename T > | |
| using | is_floating_point = std::is_floating_point< T > |
| template<typename T , typename U > | |
| using | is_same = std::is_same< T, U > |
| template<typename T > | |
| using | is_scalar = std::is_scalar< T > |
| template<typename T > | |
| using | is_unsigned = std::is_unsigned< T > |
| typedef bool(* | LoadFileFunction) (const char *filename, bool binary, std::string *dest) |
| template<typename T > | |
| using | numeric_limits = std::numeric_limits< T > |
| template<class T > | |
| using | unique_ptr = std::unique_ptr< T > |
Functions | |
| std::string | AbsolutePath (const std::string &filepath) |
| template<typename T > | |
| FLATBUFFERS_CONSTEXPR size_t | AlignOf () |
| std::string | ConCatPathFileName (const std::string &path, const std::string &filename) |
| template<typename T , typename Alloc > | |
| const T * | data (const std::vector< T, Alloc > &v) |
| template<typename T , typename Alloc > | |
| T * | data (std::vector< T, Alloc > &v) |
| bool | DirExists (const char *name) |
| void | EndianCheck () |
| void | EnsureDirExists (const std::string &filepath) |
| bool | EscapeString (const char *s, size_t length, std::string *_text, bool allow_non_utf8, bool natural_utf8) |
| voffset_t | FieldIndexToOffset (voffset_t field_id) |
| bool | FileExists (const char *name) |
| template<typename T > | |
| std::string | FloatToString (T t, int precision) |
| int | FromUTF8 (const char **in) |
| std::string | GetExtension (const std::string &filepath) |
| std::string | IntToStringHex (int i, int xdigits) |
| bool | LoadFile (const char *name, bool binary, std::string *buf) |
| template<typename T > | |
| std::string | NumToString (T t) |
| template<> | |
| std::string | NumToString< double > (double t) |
| template<> | |
| std::string | NumToString< float > (float t) |
| template<> | |
| std::string | NumToString< signed char > (signed char t) |
| template<> | |
| std::string | NumToString< unsigned char > (unsigned char t) |
| std::string | PosixPath (const char *path) |
| bool | SaveFile (const char *name, const char *buf, size_t len, bool binary) |
| bool | SaveFile (const char *name, const std::string &buf, bool binary) |
| FileExistsFunction | SetFileExistsFunction (FileExistsFunction file_exists_function) |
| LoadFileFunction | SetLoadFileFunction (LoadFileFunction load_file_function) |
| char & | string_back (std::string &value) |
| char | string_back (const std::string &value) |
| int64_t | StringToInt (const char *str, char **endptr=nullptr, int base=10) |
| uint64_t | StringToUInt (const char *str, char **endptr=nullptr, int base=10) |
| std::string | StripExtension (const std::string &filepath) |
| std::string | StripFileName (const std::string &filepath) |
| std::string | StripPath (const std::string &filepath) |
| int | ToUTF8 (uint32_t ucc, std::string *out) |
| template<typename T > | |
| T * | vector_data (std::vector< T > &vector) |
| template<typename T > | |
| const T * | vector_data (const std::vector< T > &vector) |
| template<typename T , typename V > | |
| void | vector_emplace_back (std::vector< T > *vector, V &&data) |
| template<typename T , typename U > | |
| Vector< Offset< T > > * | VectorCast (Vector< Offset< U >> *ptr) |
| template<typename T , typename U > | |
| const Vector< Offset< T > > * | VectorCast (const Vector< Offset< U >> *ptr) |
| template<typename T > | |
| static size_t | VectorLength (const Vector< T > *v) |
| std::string | WordWrap (const std::string in, size_t max_length, const std::string wrapped_line_prefix, const std::string wrapped_line_suffix) |
Variables | |
| static const char | kPathSeparator = '/' |
| static const char | kPathSeparatorWindows = '\\' |
| static const char * | PathSeparatorSet = "\\/" |
| typedef bool(* flatbuffers::FileExistsFunction) (const char *filename) |
| using flatbuffers::is_floating_point = typedef std::is_floating_point<T> |
Definition at line 105 of file stl_emulation.h.
| using flatbuffers::is_same = typedef std::is_same<T,U> |
Definition at line 104 of file stl_emulation.h.
| using flatbuffers::is_scalar = typedef std::is_scalar<T> |
Definition at line 103 of file stl_emulation.h.
| using flatbuffers::is_unsigned = typedef std::is_unsigned<T> |
Definition at line 106 of file stl_emulation.h.
| typedef bool(* flatbuffers::LoadFileFunction) (const char *filename, bool binary, std::string *dest) |
| using flatbuffers::numeric_limits = typedef std::numeric_limits<T> |
Definition at line 74 of file stl_emulation.h.
| using flatbuffers::unique_ptr = typedef std::unique_ptr<T> |
Definition at line 126 of file stl_emulation.h.
|
inline |
| FLATBUFFERS_CONSTEXPR size_t flatbuffers::AlignOf | ( | ) |
Definition at line 41 of file flatbuffers.h.
|
inline |
| const T* flatbuffers::data | ( | const std::vector< T, Alloc > & | v | ) |
Definition at line 709 of file flatbuffers.h.
| T* flatbuffers::data | ( | std::vector< T, Alloc > & | v | ) |
Definition at line 712 of file flatbuffers.h.
| bool flatbuffers::DirExists | ( | const char * | name | ) |
|
inline |
Definition at line 33 of file flatbuffers.h.
|
inline |
|
inline |
|
inline |
Definition at line 702 of file flatbuffers.h.
| bool flatbuffers::FileExists | ( | const char * | name | ) |
| std::string flatbuffers::FloatToString | ( | T | t, |
| int | precision | ||
| ) |
|
inline |
|
inline |
| bool flatbuffers::LoadFile | ( | const char * | name, |
| bool | binary, | ||
| std::string * | buf | ||
| ) |
| std::string flatbuffers::NumToString | ( | T | t | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| FileExistsFunction flatbuffers::SetFileExistsFunction | ( | FileExistsFunction | file_exists_function | ) |
| LoadFileFunction flatbuffers::SetLoadFileFunction | ( | LoadFileFunction | load_file_function | ) |
|
inline |
Definition at line 41 of file stl_emulation.h.
|
inline |
Definition at line 45 of file stl_emulation.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 51 of file stl_emulation.h.
|
inline |
Definition at line 57 of file stl_emulation.h.
|
inline |
Definition at line 63 of file stl_emulation.h.
| Vector<Offset<T> >* flatbuffers::VectorCast | ( | Vector< Offset< U >> * | ptr | ) |
Definition at line 325 of file flatbuffers.h.
| const Vector<Offset<T> >* flatbuffers::VectorCast | ( | const Vector< Offset< U >> * | ptr | ) |
Definition at line 331 of file flatbuffers.h.
|
inlinestatic |
Definition at line 339 of file flatbuffers.h.
|
inline |