Classes | Public Member Functions | Public Attributes | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions
flatbuffers::FlatBufferBuilder Class Reference

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...

#include <flatbuffers.h>

List of all members.

Classes

struct  FieldLoc
struct  StringOffsetCompare

Public Member Functions

void Clear ()
 Reset all the state in this FlatBufferBuilder so it can be reused to construct another buffer.
void Clear ()
 Reset all the state in this FlatBufferBuilder so it can be reused to construct another buffer.
Offset< StringCreateSharedString (const char *str, size_t len)
 Store a string in the buffer, which can contain any binary data. If a string with this exact contents has already been serialized before, instead simply returns the offset of the existing string.
Offset< StringCreateSharedString (const char *str, size_t len)
 Store a string in the buffer, which can contain any binary data. If a string with this exact contents has already been serialized before, instead simply returns the offset of the existing string.
Offset< StringCreateSharedString (const char *str)
 Store a string in the buffer, which null-terminated. If a string with this exact contents has already been serialized before, instead simply returns the offset of the existing string.
Offset< StringCreateSharedString (const char *str)
 Store a string in the buffer, which null-terminated. If a string with this exact contents has already been serialized before, instead simply returns the offset of the existing string.
Offset< StringCreateSharedString (const std::string &str)
 Store a string in the buffer, which can contain any binary data. If a string with this exact contents has already been serialized before, instead simply returns the offset of the existing string.
Offset< StringCreateSharedString (const std::string &str)
 Store a string in the buffer, which can contain any binary data. If a string with this exact contents has already been serialized before, instead simply returns the offset of the existing string.
Offset< StringCreateSharedString (const String *str)
 Store a string in the buffer, which can contain any binary data. If a string with this exact contents has already been serialized before, instead simply returns the offset of the existing string.
Offset< StringCreateSharedString (const String *str)
 Store a string in the buffer, which can contain any binary data. If a string with this exact contents has already been serialized before, instead simply returns the offset of the existing string.
Offset< StringCreateString (const char *str, size_t len)
 Store a string in the buffer, which can contain any binary data.
Offset< StringCreateString (const char *str, size_t len)
 Store a string in the buffer, which can contain any binary data.
Offset< StringCreateString (const char *str)
 Store a string in the buffer, which is null-terminated.
Offset< StringCreateString (const char *str)
 Store a string in the buffer, which is null-terminated.
Offset< StringCreateString (char *str)
 Store a string in the buffer, which is null-terminated.
Offset< StringCreateString (char *str)
 Store a string in the buffer, which is null-terminated.
Offset< StringCreateString (const std::string &str)
 Store a string in the buffer, which can contain any binary data.
Offset< StringCreateString (const std::string &str)
 Store a string in the buffer, which can contain any binary data.
Offset< StringCreateString (const String *str)
 Store a string in the buffer, which can contain any binary data.
Offset< StringCreateString (const String *str)
 Store a string in the buffer, which can contain any binary data.
template<typename T >
Offset< StringCreateString (const T &str)
 Store a string in the buffer, which can contain any binary data.
template<typename T >
Offset< StringCreateString (const T &str)
 Store a string in the buffer, which can contain any binary data.
template<typename T >
Offset< const T * > CreateStruct (const T &structobj)
 Write a struct by itself, typically to be part of a union.
template<typename T >
Offset< const T * > CreateStruct (const T &structobj)
 Write a struct by itself, typically to be part of a union.
uoffset_t CreateUninitializedVector (size_t len, size_t elemsize, uint8_t **buf)
 Specialized version of `CreateVector` for non-copying use cases. Write the data any time later to the returned buffer pointer `buf`.
uoffset_t CreateUninitializedVector (size_t len, size_t elemsize, uint8_t **buf)
 Specialized version of `CreateVector` for non-copying use cases. Write the data any time later to the returned buffer pointer `buf`.
template<typename T >
Offset< Vector< T > > CreateUninitializedVector (size_t len, T **buf)
 Specialized version of `CreateVector` for non-copying use cases. Write the data any time later to the returned buffer pointer `buf`.
template<typename T >
Offset< Vector< T > > CreateUninitializedVector (size_t len, T **buf)
 Specialized version of `CreateVector` for non-copying use cases. Write the data any time later to the returned buffer pointer `buf`.
template<typename T >
Offset< Vector< const T * > > CreateUninitializedVectorOfStructs (size_t len, T **buf)
template<typename T >
Offset< Vector< const T * > > CreateUninitializedVectorOfStructs (size_t len, T **buf)
template<typename T >
Offset< Vector< T > > CreateVector (const std::vector< T > &v)
 Serialize a `std::vector` into a FlatBuffer `vector`.
template<typename T >
Offset< Vector< T > > CreateVector (const std::vector< T > &v)
 Serialize a `std::vector` into a FlatBuffer `vector`.
Offset< Vector< uint8_t > > CreateVector (const std::vector< bool > &v)
Offset< Vector< uint8_t > > CreateVector (const std::vector< bool > &v)
template<typename T >
Offset< Vector< T > > CreateVector (size_t vector_size, const std::function< T(size_t i)> &f)
 Serialize values returned by a function into a FlatBuffer `vector`. This is a convenience function that takes care of iteration for you.
template<typename T >
Offset< Vector< T > > CreateVector (size_t vector_size, const std::function< T(size_t i)> &f)
 Serialize values returned by a function into a FlatBuffer `vector`. This is a convenience function that takes care of iteration for you.
template<typename T , typename F , typename S >
Offset< Vector< T > > CreateVector (size_t vector_size, F f, S *state)
 Serialize values returned by a function into a FlatBuffer `vector`. This is a convenience function that takes care of iteration for you.
template<typename T , typename F , typename S >
Offset< Vector< T > > CreateVector (size_t vector_size, F f, S *state)
 Serialize values returned by a function into a FlatBuffer `vector`. This is a convenience function that takes care of iteration for you.
template<typename T , typename S >
Offset< Vector< const T * > > CreateVectorOfNativeStructs (const S *v, size_t len)
 Serialize an array of native structs into a FlatBuffer `vector`.
template<typename T , typename S >
Offset< Vector< const T * > > CreateVectorOfNativeStructs (const S *v, size_t len)
 Serialize an array of native structs into a FlatBuffer `vector`.
template<typename T , typename S >
Offset< Vector< const T * > > CreateVectorOfNativeStructs (const std::vector< S > &v)
 Serialize a `std::vector` of native structs into a FlatBuffer `vector`.
template<typename T , typename S >
Offset< Vector< const T * > > CreateVectorOfNativeStructs (const std::vector< S > &v)
 Serialize a `std::vector` of native structs into a FlatBuffer `vector`.
template<typename T , typename S >
Offset< Vector< const T * > > CreateVectorOfSortedNativeStructs (std::vector< S > *v)
 Serialize a `std::vector` of native structs into a FlatBuffer `vector` in sorted order.
template<typename T , typename S >
Offset< Vector< const T * > > CreateVectorOfSortedNativeStructs (std::vector< S > *v)
 Serialize a `std::vector` of native structs into a FlatBuffer `vector` in sorted order.
template<typename T , typename S >
Offset< Vector< const T * > > CreateVectorOfSortedNativeStructs (S *v, size_t len)
 Serialize an array of native structs into a FlatBuffer `vector` in sorted order.
template<typename T , typename S >
Offset< Vector< const T * > > CreateVectorOfSortedNativeStructs (S *v, size_t len)
 Serialize an array of native structs into a FlatBuffer `vector` in sorted order.
template<typename T >
Offset< Vector< const T * > > CreateVectorOfSortedStructs (std::vector< T > *v)
 Serialize a `std::vector` of structs into a FlatBuffer `vector` in sorted order.
template<typename T >
Offset< Vector< const T * > > CreateVectorOfSortedStructs (std::vector< T > *v)
 Serialize a `std::vector` of structs into a FlatBuffer `vector` in sorted order.
template<typename T >
Offset< Vector< const T * > > CreateVectorOfSortedStructs (T *v, size_t len)
 Serialize an array of structs into a FlatBuffer `vector` in sorted order.
template<typename T >
Offset< Vector< const T * > > CreateVectorOfSortedStructs (T *v, size_t len)
 Serialize an array of structs into a FlatBuffer `vector` in sorted order.
template<typename T >
Offset< Vector< Offset< T > > > CreateVectorOfSortedTables (Offset< T > *v, size_t len)
 Serialize an array of `table` offsets as a `vector` in the buffer in sorted order.
template<typename T >
Offset< Vector< Offset< T > > > CreateVectorOfSortedTables (Offset< T > *v, size_t len)
 Serialize an array of `table` offsets as a `vector` in the buffer in sorted order.
template<typename T >
Offset< Vector< Offset< T > > > CreateVectorOfSortedTables (std::vector< Offset< T >> *v)
 Serialize an array of `table` offsets as a `vector` in the buffer in sorted order.
template<typename T >
Offset< Vector< Offset< T > > > CreateVectorOfSortedTables (std::vector< Offset< T >> *v)
 Serialize an array of `table` offsets as a `vector` in the buffer in sorted order.
Offset< Vector< Offset< String > > > CreateVectorOfStrings (const std::vector< std::string > &v)
 Serialize a `std::vector<std::string>` into a FlatBuffer `vector`. This is a convenience function for a common case.
Offset< Vector< Offset< String > > > CreateVectorOfStrings (const std::vector< std::string > &v)
 Serialize a `std::vector<std::string>` into a FlatBuffer `vector`. This is a convenience function for a common case.
template<typename T >
Offset< Vector< const T * > > CreateVectorOfStructs (const T *v, size_t len)
 Serialize an array of structs into a FlatBuffer `vector`.
template<typename T >
Offset< Vector< const T * > > CreateVectorOfStructs (const T *v, size_t len)
 Serialize an array of structs into a FlatBuffer `vector`.
template<typename T >
Offset< Vector< const T * > > CreateVectorOfStructs (size_t vector_size, const std::function< void(size_t i, T *)> &filler)
 Serialize an array of structs into a FlatBuffer `vector`.
template<typename T >
Offset< Vector< const T * > > CreateVectorOfStructs (size_t vector_size, const std::function< void(size_t i, T *)> &filler)
 Serialize an array of structs into a FlatBuffer `vector`.
template<typename T , typename F , typename S >
Offset< Vector< const T * > > CreateVectorOfStructs (size_t vector_size, F f, S *state)
 Serialize an array of structs into a FlatBuffer `vector`.
template<typename T , typename F , typename S >
Offset< Vector< const T * > > CreateVectorOfStructs (size_t vector_size, F f, S *state)
 Serialize an array of structs into a FlatBuffer `vector`.
template<typename T , typename Alloc >
Offset< Vector< const T * > > CreateVectorOfStructs (const std::vector< T, Alloc > &v)
 Serialize a `std::vector` of structs into a FlatBuffer `vector`.
template<typename T , typename Alloc >
Offset< Vector< const T * > > CreateVectorOfStructs (const std::vector< T, Alloc > &v)
 Serialize a `std::vector` of structs into a FlatBuffer `vector`.
template<typename T , typename U >
Offset< Vector< T > > CreateVectorScalarCast (const U *v, size_t len)
template<typename T , typename U >
Offset< Vector< T > > CreateVectorScalarCast (const U *v, size_t len)
void DedupVtables (bool dedup)
 By default vtables are deduped in order to save space.
void DedupVtables (bool dedup)
 By default vtables are deduped in order to save space.
template<typename T >
void Finish (Offset< T > root, const char *file_identifier=nullptr)
 Finish serializing a buffer by writing the root offset.
template<typename T >
void Finish (Offset< T > root, const char *file_identifier=nullptr)
 Finish serializing a buffer by writing the root offset.
template<typename T >
void FinishSizePrefixed (Offset< T > root, const char *file_identifier=nullptr)
 Finish a buffer with a 32 bit size field pre-fixed (size of the buffer following the size field). These buffers are NOT compatible with standard buffers created by Finish, i.e. you can't call GetRoot on them, you have to use GetSizePrefixedRoot instead. All >32 bit quantities in this buffer will be aligned when the whole size pre-fixed buffer is aligned. These kinds of buffers are useful for creating a stream of FlatBuffers.
template<typename T >
void FinishSizePrefixed (Offset< T > root, const char *file_identifier=nullptr)
 Finish a buffer with a 32 bit size field pre-fixed (size of the buffer following the size field). These buffers are NOT compatible with standard buffers created by Finish, i.e. you can't call GetRoot on them, you have to use GetSizePrefixedRoot instead. All >32 bit quantities in this buffer will be aligned when the whole size pre-fixed buffer is aligned. These kinds of buffers are useful for creating a stream of FlatBuffers.
 FlatBufferBuilder (size_t initial_size=1024, Allocator *allocator=nullptr, bool own_allocator=false, size_t buffer_minalign=AlignOf< largest_scalar_t >())
 Default constructor for FlatBufferBuilder.
 FlatBufferBuilder (size_t initial_size=1024, Allocator *allocator=nullptr, bool own_allocator=false, size_t buffer_minalign=AlignOf< largest_scalar_t >())
 Default constructor for FlatBufferBuilder.
 FlatBufferBuilder (FlatBufferBuilder &&other)
 Move constructor for FlatBufferBuilder.
 FlatBufferBuilder (FlatBufferBuilder &&other)
 Move constructor for FlatBufferBuilder.
 FLATBUFFERS_ATTRIBUTE (deprecated("use Release() instead")) DetachedBuffer ReleaseBufferPointer()
 Get the released pointer to the serialized buffer.
 FLATBUFFERS_ATTRIBUTE (deprecated("use Release() instead")) DetachedBuffer ReleaseBufferPointer()
 Get the released pointer to the serialized buffer.
void ForceDefaults (bool fd)
 In order to save space, fields that are set to their default value don't get serialized into the buffer.
void ForceDefaults (bool fd)
 In order to save space, fields that are set to their default value don't get serialized into the buffer.
size_t GetBufferMinAlignment ()
 get the minimum alignment this buffer needs to be accessed properly. This is only known once all elements have been written (after you call Finish()). You can use this information if you need to embed a FlatBuffer in some other buffer, such that you can later read it without first having to copy it into its own buffer.
size_t GetBufferMinAlignment ()
 get the minimum alignment this buffer needs to be accessed properly. This is only known once all elements have been written (after you call Finish()). You can use this information if you need to embed a FlatBuffer in some other buffer, such that you can later read it without first having to copy it into its own buffer.
uint8_t * GetBufferPointer () const
 Get the serialized buffer (after you call `Finish()`).
uint8_t * GetBufferPointer () const
 Get the serialized buffer (after you call `Finish()`).
uint8_t * GetCurrentBufferPointer () const
 Get a pointer to an unfinished buffer.
uint8_t * GetCurrentBufferPointer () const
 Get a pointer to an unfinished buffer.
uoffset_t GetSize () const
 The current size of the serialized buffer, counting from the end.
uoffset_t GetSize () const
 The current size of the serialized buffer, counting from the end.
FlatBufferBuilderoperator= (FlatBufferBuilder &&other)
 Move assignment operator for FlatBufferBuilder.
FlatBufferBuilderoperator= (FlatBufferBuilder &&other)
 Move assignment operator for FlatBufferBuilder.
DetachedBuffer Release ()
 Get the released DetachedBuffer.
DetachedBuffer Release ()
 Get the released DetachedBuffer.
uint8_t * ReleaseRaw (size_t &size, size_t &offset)
 Get the released pointer to the serialized buffer.
uint8_t * ReleaseRaw (size_t &size, size_t &offset)
 Get the released pointer to the serialized buffer.
void Reset ()
void Reset ()
void Swap (FlatBufferBuilder &other)
void Swap (FlatBufferBuilder &other)
void SwapBufAllocator (FlatBufferBuilder &other)
void SwapBufAllocator (FlatBufferBuilder &other)
 ~FlatBufferBuilder ()
 ~FlatBufferBuilder ()

Public Attributes

Offset< Vector< T >
> CreateVector(const T *v,
size_t len){AssertScalarT< T >
);StartVector(len, sizeof(T));if(sizeof(T)==1){PushBytes(reinterpret_cast
< const uint8_t * >v), len);}else{for(auto
i=len;i > 0;){PushElement(v[--i]);}}return
Offset< Vector< T > >EndVector(len));}template
< typename T >Offset< Vector
< Offset< T > > > CreateVector(const
Offset< T > *v, size_t len){StartVector(len,
sizeof(Offset< T >));for(auto
i=len;i > 
 Serialize an array into a FlatBuffer `vector`.

Static Public Attributes

static const size_t kFileIdentifierLength = 4
 The length of a FlatBuffer file header.

Protected Types

typedef std::set< Offset
< String >
, StringOffsetCompare
StringOffsetMap
typedef std::set< Offset
< String >
, StringOffsetCompare
StringOffsetMap

Protected Member Functions

void Finish (uoffset_t root, const char *file_identifier, bool size_prefix)
void Finish (uoffset_t root, const char *file_identifier, bool size_prefix)
 FlatBufferBuilder (const FlatBufferBuilder &)
 FlatBufferBuilder (const FlatBufferBuilder &)
FlatBufferBuilderoperator= (const FlatBufferBuilder &)
FlatBufferBuilderoperator= (const FlatBufferBuilder &)

Protected Attributes

vector_downward buf_
bool dedup_vtables_
bool finished
bool force_defaults_
voffset_t max_voffset_
size_t minalign_
bool nested
uoffset_t num_field_loc
StringOffsetMapstring_pool

Private Member Functions

template<typename T >
Offset< Vector< const T * > > EndVectorOfStructs (size_t vector_size)
template<typename T >
Offset< Vector< const T * > > EndVectorOfStructs (size_t vector_size)
template<typename T >
T * StartVectorOfStructs (size_t vector_size)
template<typename T >
T * StartVectorOfStructs (size_t vector_size)

Detailed Description

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.

Definition at line 910 of file 3rdparty/flatbuffers/flatbuffers.h.


Member Typedef Documentation

Definition at line 1901 of file 3rdparty/flatbuffers/flatbuffers.h.


Constructor & Destructor Documentation

flatbuffers::FlatBufferBuilder::FlatBufferBuilder ( size_t  initial_size = 1024,
Allocator allocator = nullptr,
bool  own_allocator = false,
size_t  buffer_minalign = AlignOf<largest_scalar_t>() 
) [inline, explicit]

Default constructor for FlatBufferBuilder.

Parameters:
[in]initial_sizeThe initial size of the buffer, in bytes. Defaults to `1024`.
[in]allocatorAn `Allocator` to use. If null will use `DefaultAllocator`.
[in]own_allocatorWhether the builder/vector should own the allocator. Defaults to / `false`.
[in]buffer_minalignForce the buffer to be aligned to the given minimum alignment upon reallocation. Only needed if you intend to store types with custom alignment AND you wish to read the buffer in-place directly after creation.

Definition at line 923 of file 3rdparty/flatbuffers/flatbuffers.h.

Move constructor for FlatBufferBuilder.

Definition at line 943 of file 3rdparty/flatbuffers/flatbuffers.h.

Definition at line 990 of file 3rdparty/flatbuffers/flatbuffers.h.

flatbuffers::FlatBufferBuilder::FlatBufferBuilder ( size_t  initial_size = 1024,
Allocator allocator = nullptr,
bool  own_allocator = false,
size_t  buffer_minalign = AlignOf<largest_scalar_t>() 
) [inline, explicit]

Default constructor for FlatBufferBuilder.

Parameters:
[in]initial_sizeThe initial size of the buffer, in bytes. Defaults to `1024`.
[in]allocatorAn `Allocator` to use. If null will use `DefaultAllocator`.
[in]own_allocatorWhether the builder/vector should own the allocator. Defaults to / `false`.
[in]buffer_minalignForce the buffer to be aligned to the given minimum alignment upon reallocation. Only needed if you intend to store types with custom alignment AND you wish to read the buffer in-place directly after creation.

Definition at line 923 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

Move constructor for FlatBufferBuilder.

Definition at line 943 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.


Member Function Documentation

Reset all the state in this FlatBufferBuilder so it can be reused to construct another buffer.

Definition at line 1001 of file 3rdparty/flatbuffers/flatbuffers.h.

Reset all the state in this FlatBufferBuilder so it can be reused to construct another buffer.

Definition at line 1001 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

Offset<String> flatbuffers::FlatBufferBuilder::CreateSharedString ( const char *  str,
size_t  len 
) [inline]

Store a string in the buffer, which can contain any binary data. If a string with this exact contents has already been serialized before, instead simply returns the offset of the existing string.

Parameters:
[in]strA const char pointer to the data to be stored as a string.
[in]lenThe number of bytes that should be stored from `str`.
Returns:
Returns the offset in the buffer where the string starts.

Definition at line 1360 of file 3rdparty/flatbuffers/flatbuffers.h.

Offset<String> flatbuffers::FlatBufferBuilder::CreateSharedString ( const char *  str,
size_t  len 
) [inline]

Store a string in the buffer, which can contain any binary data. If a string with this exact contents has already been serialized before, instead simply returns the offset of the existing string.

Parameters:
[in]strA const char pointer to the data to be stored as a string.
[in]lenThe number of bytes that should be stored from `str`.
Returns:
Returns the offset in the buffer where the string starts.

Definition at line 1360 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

Store a string in the buffer, which null-terminated. If a string with this exact contents has already been serialized before, instead simply returns the offset of the existing string.

Parameters:
[in]strA const char pointer to a C-string to add to the buffer.
Returns:
Returns the offset in the buffer where the string starts.

Definition at line 1384 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

Store a string in the buffer, which null-terminated. If a string with this exact contents has already been serialized before, instead simply returns the offset of the existing string.

Parameters:
[in]strA const char pointer to a C-string to add to the buffer.
Returns:
Returns the offset in the buffer where the string starts.

Definition at line 1384 of file 3rdparty/flatbuffers/flatbuffers.h.

Offset<String> flatbuffers::FlatBufferBuilder::CreateSharedString ( const std::string &  str) [inline]

Store a string in the buffer, which can contain any binary data. If a string with this exact contents has already been serialized before, instead simply returns the offset of the existing string.

Parameters:
[in]strA const reference to a std::string to store in the buffer.
Returns:
Returns the offset in the buffer where the string starts.

Definition at line 1393 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

Offset<String> flatbuffers::FlatBufferBuilder::CreateSharedString ( const std::string &  str) [inline]

Store a string in the buffer, which can contain any binary data. If a string with this exact contents has already been serialized before, instead simply returns the offset of the existing string.

Parameters:
[in]strA const reference to a std::string to store in the buffer.
Returns:
Returns the offset in the buffer where the string starts.

Definition at line 1393 of file 3rdparty/flatbuffers/flatbuffers.h.

Store a string in the buffer, which can contain any binary data. If a string with this exact contents has already been serialized before, instead simply returns the offset of the existing string.

Parameters:
[in]strA const pointer to a `String` struct to add to the buffer.
Returns:
Returns the offset in the buffer where the string starts

Definition at line 1402 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

Store a string in the buffer, which can contain any binary data. If a string with this exact contents has already been serialized before, instead simply returns the offset of the existing string.

Parameters:
[in]strA const pointer to a `String` struct to add to the buffer.
Returns:
Returns the offset in the buffer where the string starts

Definition at line 1402 of file 3rdparty/flatbuffers/flatbuffers.h.

Offset<String> flatbuffers::FlatBufferBuilder::CreateString ( const char *  str,
size_t  len 
) [inline]

Store a string in the buffer, which can contain any binary data.

Parameters:
[in]strA const char pointer to the data to be stored as a string.
[in]lenThe number of bytes that should be stored from `str`.
Returns:
Returns the offset in the buffer where the string starts.

Definition at line 1298 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

Offset<String> flatbuffers::FlatBufferBuilder::CreateString ( const char *  str,
size_t  len 
) [inline]

Store a string in the buffer, which can contain any binary data.

Parameters:
[in]strA const char pointer to the data to be stored as a string.
[in]lenThe number of bytes that should be stored from `str`.
Returns:
Returns the offset in the buffer where the string starts.

Definition at line 1298 of file 3rdparty/flatbuffers/flatbuffers.h.

Store a string in the buffer, which is null-terminated.

Parameters:
[in]strA const char pointer to a C-string to add to the buffer.
Returns:
Returns the offset in the buffer where the string starts.

Definition at line 1310 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

Store a string in the buffer, which is null-terminated.

Parameters:
[in]strA const char pointer to a C-string to add to the buffer.
Returns:
Returns the offset in the buffer where the string starts.

Definition at line 1310 of file 3rdparty/flatbuffers/flatbuffers.h.

Store a string in the buffer, which is null-terminated.

Parameters:
[in]strA char pointer to a C-string to add to the buffer.
Returns:
Returns the offset in the buffer where the string starts.

Definition at line 1317 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

Store a string in the buffer, which is null-terminated.

Parameters:
[in]strA char pointer to a C-string to add to the buffer.
Returns:
Returns the offset in the buffer where the string starts.

Definition at line 1317 of file 3rdparty/flatbuffers/flatbuffers.h.

Offset<String> flatbuffers::FlatBufferBuilder::CreateString ( const std::string &  str) [inline]

Store a string in the buffer, which can contain any binary data.

Parameters:
[in]strA const reference to a std::string to store in the buffer.
Returns:
Returns the offset in the buffer where the string starts.

Definition at line 1324 of file 3rdparty/flatbuffers/flatbuffers.h.

Offset<String> flatbuffers::FlatBufferBuilder::CreateString ( const std::string &  str) [inline]

Store a string in the buffer, which can contain any binary data.

Parameters:
[in]strA const reference to a std::string to store in the buffer.
Returns:
Returns the offset in the buffer where the string starts.

Definition at line 1324 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

Store a string in the buffer, which can contain any binary data.

Parameters:
[in]strA const pointer to a `String` struct to add to the buffer.
Returns:
Returns the offset in the buffer where the string starts

Definition at line 1342 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

Store a string in the buffer, which can contain any binary data.

Parameters:
[in]strA const pointer to a `String` struct to add to the buffer.
Returns:
Returns the offset in the buffer where the string starts

Definition at line 1342 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
Offset<String> flatbuffers::FlatBufferBuilder::CreateString ( const T &  str) [inline]

Store a string in the buffer, which can contain any binary data.

Parameters:
[in]strA const reference to a std::string like type with support of T::c_str() and T::length() to store in the buffer.
Returns:
Returns the offset in the buffer where the string starts.

Definition at line 1350 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T >
Offset<String> flatbuffers::FlatBufferBuilder::CreateString ( const T &  str) [inline]

Store a string in the buffer, which can contain any binary data.

Parameters:
[in]strA const reference to a std::string like type with support of T::c_str() and T::length() to store in the buffer.
Returns:
Returns the offset in the buffer where the string starts.

Definition at line 1350 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
Offset<const T *> flatbuffers::FlatBufferBuilder::CreateStruct ( const T &  structobj) [inline]

Write a struct by itself, typically to be part of a union.

Definition at line 1805 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
Offset<const T *> flatbuffers::FlatBufferBuilder::CreateStruct ( const T &  structobj) [inline]

Write a struct by itself, typically to be part of a union.

Definition at line 1805 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

uoffset_t flatbuffers::FlatBufferBuilder::CreateUninitializedVector ( size_t  len,
size_t  elemsize,
uint8_t **  buf 
) [inline]

Specialized version of `CreateVector` for non-copying use cases. Write the data any time later to the returned buffer pointer `buf`.

Parameters:
[in]lenThe number of elements to store in the `vector`.
[in]elemsizeThe size of each element in the `vector`.
[out]bufA pointer to a `uint8_t` pointer that can be written to at a later time to serialize the data into a `vector` in the buffer.

Definition at line 1759 of file 3rdparty/flatbuffers/flatbuffers.h.

uoffset_t flatbuffers::FlatBufferBuilder::CreateUninitializedVector ( size_t  len,
size_t  elemsize,
uint8_t **  buf 
) [inline]

Specialized version of `CreateVector` for non-copying use cases. Write the data any time later to the returned buffer pointer `buf`.

Parameters:
[in]lenThe number of elements to store in the `vector`.
[in]elemsizeThe size of each element in the `vector`.
[out]bufA pointer to a `uint8_t` pointer that can be written to at a later time to serialize the data into a `vector` in the buffer.

Definition at line 1759 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<T> > flatbuffers::FlatBufferBuilder::CreateUninitializedVector ( size_t  len,
T **  buf 
) [inline]

Specialized version of `CreateVector` for non-copying use cases. Write the data any time later to the returned buffer pointer `buf`.

Template Parameters:
TThe data type of the data that will be stored in the buffer as a `vector`.
Parameters:
[in]lenThe number of elements to store in the `vector`.
[out]bufA pointer to a pointer of type `T` that can be written to at a later time to serialize the data into a `vector` in the buffer.

Definition at line 1779 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<T> > flatbuffers::FlatBufferBuilder::CreateUninitializedVector ( size_t  len,
T **  buf 
) [inline]

Specialized version of `CreateVector` for non-copying use cases. Write the data any time later to the returned buffer pointer `buf`.

Template Parameters:
TThe data type of the data that will be stored in the buffer as a `vector`.
Parameters:
[in]lenThe number of elements to store in the `vector`.
[out]bufA pointer to a pointer of type `T` that can be written to at a later time to serialize the data into a `vector` in the buffer.

Definition at line 1779 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<const T*> > flatbuffers::FlatBufferBuilder::CreateUninitializedVectorOfStructs ( size_t  len,
T **  buf 
) [inline]
template<typename T >
Offset<Vector<const T*> > flatbuffers::FlatBufferBuilder::CreateUninitializedVectorOfStructs ( size_t  len,
T **  buf 
) [inline]

Definition at line 1786 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<T> > flatbuffers::FlatBufferBuilder::CreateVector ( const std::vector< T > &  v) [inline]

Serialize a `std::vector` into a FlatBuffer `vector`.

Template Parameters:
TThe data type of the `std::vector` elements.
Parameters:
vA const reference to the `std::vector` to serialize into the buffer as a `vector`.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1477 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<T> > flatbuffers::FlatBufferBuilder::CreateVector ( const std::vector< T > &  v) [inline]

Serialize a `std::vector` into a FlatBuffer `vector`.

Template Parameters:
TThe data type of the `std::vector` elements.
Parameters:
vA const reference to the `std::vector` to serialize into the buffer as a `vector`.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1477 of file 3rdparty/flatbuffers/flatbuffers.h.

Offset<Vector<uint8_t> > flatbuffers::FlatBufferBuilder::CreateVector ( const std::vector< bool > &  v) [inline]
Offset<Vector<uint8_t> > flatbuffers::FlatBufferBuilder::CreateVector ( const std::vector< bool > &  v) [inline]

Definition at line 1484 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<T> > flatbuffers::FlatBufferBuilder::CreateVector ( size_t  vector_size,
const std::function< T(size_t i)> &  f 
) [inline]

Serialize values returned by a function into a FlatBuffer `vector`. This is a convenience function that takes care of iteration for you.

Template Parameters:
TThe data type of the `std::vector` elements.
Parameters:
fA function that takes the current iteration 0..vector_size-1 and returns any type that you can construct a FlatBuffers vector out of.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1501 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<T> > flatbuffers::FlatBufferBuilder::CreateVector ( size_t  vector_size,
const std::function< T(size_t i)> &  f 
) [inline]

Serialize values returned by a function into a FlatBuffer `vector`. This is a convenience function that takes care of iteration for you.

Template Parameters:
TThe data type of the `std::vector` elements.
Parameters:
fA function that takes the current iteration 0..vector_size-1 and returns any type that you can construct a FlatBuffers vector out of.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1501 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T , typename F , typename S >
Offset<Vector<T> > flatbuffers::FlatBufferBuilder::CreateVector ( size_t  vector_size,
f,
S *  state 
) [inline]

Serialize values returned by a function into a FlatBuffer `vector`. This is a convenience function that takes care of iteration for you.

Template Parameters:
TThe data type of the `std::vector` elements.
Parameters:
fA function that takes the current iteration 0..vector_size-1, and the state parameter returning any type that you can construct a FlatBuffers vector out of.
stateState passed to f.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1520 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T , typename F , typename S >
Offset<Vector<T> > flatbuffers::FlatBufferBuilder::CreateVector ( size_t  vector_size,
f,
S *  state 
) [inline]

Serialize values returned by a function into a FlatBuffer `vector`. This is a convenience function that takes care of iteration for you.

Template Parameters:
TThe data type of the `std::vector` elements.
Parameters:
fA function that takes the current iteration 0..vector_size-1, and the state parameter returning any type that you can construct a FlatBuffers vector out of.
stateState passed to f.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1520 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T , typename S >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfNativeStructs ( const S *  v,
size_t  len 
) [inline]

Serialize an array of native structs into a FlatBuffer `vector`.

Template Parameters:
TThe data type of the struct array elements.
SThe data type of the native struct array elements.
Parameters:
[in]vA pointer to the array of type `S` to serialize into the buffer as a `vector`.
[in]lenThe number of elements to serialize.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1562 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T , typename S >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfNativeStructs ( const S *  v,
size_t  len 
) [inline]

Serialize an array of native structs into a FlatBuffer `vector`.

Template Parameters:
TThe data type of the struct array elements.
SThe data type of the native struct array elements.
Parameters:
[in]vA pointer to the array of type `S` to serialize into the buffer as a `vector`.
[in]lenThe number of elements to serialize.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1562 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T , typename S >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfNativeStructs ( const std::vector< S > &  v) [inline]

Serialize a `std::vector` of native structs into a FlatBuffer `vector`.

Template Parameters:
TThe data type of the `std::vector` struct elements.
SThe data type of the `std::vector` native struct elements.
Parameters:
[in]v A const reference to the `std::vector` of structs to serialize into the buffer as a `vector`.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1634 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T , typename S >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfNativeStructs ( const std::vector< S > &  v) [inline]

Serialize a `std::vector` of native structs into a FlatBuffer `vector`.

Template Parameters:
TThe data type of the `std::vector` struct elements.
SThe data type of the `std::vector` native struct elements.
Parameters:
[in]v A const reference to the `std::vector` of structs to serialize into the buffer as a `vector`.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1634 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T , typename S >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfSortedNativeStructs ( std::vector< S > *  v) [inline]

Serialize a `std::vector` of native structs into a FlatBuffer `vector` in sorted order.

Template Parameters:
TThe data type of the `std::vector` struct elements.
SThe data type of the `std::vector` native struct elements.
Parameters:
[in]v A const reference to the `std::vector` of structs to serialize into the buffer as a `vector`.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1671 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T , typename S >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfSortedNativeStructs ( std::vector< S > *  v) [inline]

Serialize a `std::vector` of native structs into a FlatBuffer `vector` in sorted order.

Template Parameters:
TThe data type of the `std::vector` struct elements.
SThe data type of the `std::vector` native struct elements.
Parameters:
[in]v A const reference to the `std::vector` of structs to serialize into the buffer as a `vector`.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1671 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T , typename S >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfSortedNativeStructs ( S *  v,
size_t  len 
) [inline]

Serialize an array of native structs into a FlatBuffer `vector` in sorted order.

Template Parameters:
TThe data type of the struct array elements.
SThe data type of the native struct array elements.
Parameters:
[in]vA pointer to the array of type `S` to serialize into the buffer as a `vector`.
[in]lenThe number of elements to serialize.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1700 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T , typename S >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfSortedNativeStructs ( S *  v,
size_t  len 
) [inline]

Serialize an array of native structs into a FlatBuffer `vector` in sorted order.

Template Parameters:
TThe data type of the struct array elements.
SThe data type of the native struct array elements.
Parameters:
[in]vA pointer to the array of type `S` to serialize into the buffer as a `vector`.
[in]lenThe number of elements to serialize.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1700 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfSortedStructs ( std::vector< T > *  v) [inline]

Serialize a `std::vector` of structs into a FlatBuffer `vector` in sorted order.

Template Parameters:
TThe data type of the `std::vector` struct elements.
Parameters:
[in]v A const reference to the `std::vector` of structs to serialize into the buffer as a `vector`.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1658 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfSortedStructs ( std::vector< T > *  v) [inline]

Serialize a `std::vector` of structs into a FlatBuffer `vector` in sorted order.

Template Parameters:
TThe data type of the `std::vector` struct elements.
Parameters:
[in]v A const reference to the `std::vector` of structs to serialize into the buffer as a `vector`.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1658 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfSortedStructs ( T *  v,
size_t  len 
) [inline]

Serialize an array of structs into a FlatBuffer `vector` in sorted order.

Template Parameters:
TThe data type of the struct array elements.
Parameters:
[in]vA pointer to the array of type `T` to serialize into the buffer as a `vector`.
[in]lenThe number of elements to serialize.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1685 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfSortedStructs ( T *  v,
size_t  len 
) [inline]

Serialize an array of structs into a FlatBuffer `vector` in sorted order.

Template Parameters:
TThe data type of the struct array elements.
Parameters:
[in]vA pointer to the array of type `T` to serialize into the buffer as a `vector`.
[in]lenThe number of elements to serialize.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1685 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<Offset<T> > > flatbuffers::FlatBufferBuilder::CreateVectorOfSortedTables ( Offset< T > *  v,
size_t  len 
) [inline]

Serialize an array of `table` offsets as a `vector` in the buffer in sorted order.

Template Parameters:
TThe data type that the offset refers to.
Parameters:
[in]vAn array of type `Offset<T>` that contains the `table` offsets to store in the buffer in sorted order.
[in]lenThe number of elements to store in the `vector`.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1733 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<Offset<T> > > flatbuffers::FlatBufferBuilder::CreateVectorOfSortedTables ( Offset< T > *  v,
size_t  len 
) [inline]

Serialize an array of `table` offsets as a `vector` in the buffer in sorted order.

Template Parameters:
TThe data type that the offset refers to.
Parameters:
[in]vAn array of type `Offset<T>` that contains the `table` offsets to store in the buffer in sorted order.
[in]lenThe number of elements to store in the `vector`.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1733 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<Offset<T> > > flatbuffers::FlatBufferBuilder::CreateVectorOfSortedTables ( std::vector< Offset< T >> *  v) [inline]

Serialize an array of `table` offsets as a `vector` in the buffer in sorted order.

Template Parameters:
TThe data type that the offset refers to.
Parameters:
[in]vAn array of type `Offset<T>` that contains the `table` offsets to store in the buffer in sorted order.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1747 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<Offset<T> > > flatbuffers::FlatBufferBuilder::CreateVectorOfSortedTables ( std::vector< Offset< T >> *  v) [inline]

Serialize an array of `table` offsets as a `vector` in the buffer in sorted order.

Template Parameters:
TThe data type that the offset refers to.
Parameters:
[in]vAn array of type `Offset<T>` that contains the `table` offsets to store in the buffer in sorted order.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1747 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

Offset<Vector<Offset<String> > > flatbuffers::FlatBufferBuilder::CreateVectorOfStrings ( const std::vector< std::string > &  v) [inline]

Serialize a `std::vector<std::string>` into a FlatBuffer `vector`. This is a convenience function for a common case.

Parameters:
vA const reference to the `std::vector` to serialize into the buffer as a `vector`.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1532 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

Offset<Vector<Offset<String> > > flatbuffers::FlatBufferBuilder::CreateVectorOfStrings ( const std::vector< std::string > &  v) [inline]

Serialize a `std::vector<std::string>` into a FlatBuffer `vector`. This is a convenience function for a common case.

Parameters:
vA const reference to the `std::vector` to serialize into the buffer as a `vector`.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1532 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfStructs ( const T *  v,
size_t  len 
) [inline]

Serialize an array of structs into a FlatBuffer `vector`.

Template Parameters:
TThe data type of the struct array elements.
Parameters:
[in]vA pointer to the array of type `T` to serialize into the buffer as a `vector`.
[in]lenThe number of elements to serialize.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1547 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfStructs ( const T *  v,
size_t  len 
) [inline]

Serialize an array of structs into a FlatBuffer `vector`.

Template Parameters:
TThe data type of the struct array elements.
Parameters:
[in]vA pointer to the array of type `T` to serialize into the buffer as a `vector`.
[in]lenThe number of elements to serialize.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1547 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfStructs ( size_t  vector_size,
const std::function< void(size_t i, T *)> &  filler 
) [inline]

Serialize an array of structs into a FlatBuffer `vector`.

Template Parameters:
TThe data type of the struct array elements.
Parameters:
[in]fA function that takes the current iteration 0..vector_size-1 and a pointer to the struct that must be filled.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored. This is mostly useful when flatbuffers are generated with mutation accessors.

Definition at line 1581 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfStructs ( size_t  vector_size,
const std::function< void(size_t i, T *)> &  filler 
) [inline]

Serialize an array of structs into a FlatBuffer `vector`.

Template Parameters:
TThe data type of the struct array elements.
Parameters:
[in]fA function that takes the current iteration 0..vector_size-1 and a pointer to the struct that must be filled.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored. This is mostly useful when flatbuffers are generated with mutation accessors.

Definition at line 1581 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T , typename F , typename S >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfStructs ( size_t  vector_size,
f,
S *  state 
) [inline]

Serialize an array of structs into a FlatBuffer `vector`.

Template Parameters:
TThe data type of the struct array elements.
Parameters:
[in]fA function that takes the current iteration 0..vector_size-1, a pointer to the struct that must be filled and the state argument.
[in]stateArbitrary state to pass to f.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored. This is mostly useful when flatbuffers are generated with mutation accessors.

Definition at line 1603 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T , typename F , typename S >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfStructs ( size_t  vector_size,
f,
S *  state 
) [inline]

Serialize an array of structs into a FlatBuffer `vector`.

Template Parameters:
TThe data type of the struct array elements.
Parameters:
[in]fA function that takes the current iteration 0..vector_size-1, a pointer to the struct that must be filled and the state argument.
[in]stateArbitrary state to pass to f.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored. This is mostly useful when flatbuffers are generated with mutation accessors.

Definition at line 1603 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T , typename Alloc >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfStructs ( const std::vector< T, Alloc > &  v) [inline]

Serialize a `std::vector` of structs into a FlatBuffer `vector`.

Template Parameters:
TThe data type of the `std::vector` struct elements.
Parameters:
[in]v A const reference to the `std::vector` of structs to serialize into the buffer as a `vector`.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1620 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T , typename Alloc >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::CreateVectorOfStructs ( const std::vector< T, Alloc > &  v) [inline]

Serialize a `std::vector` of structs into a FlatBuffer `vector`.

Template Parameters:
TThe data type of the `std::vector` struct elements.
Parameters:
[in]v A const reference to the `std::vector` of structs to serialize into the buffer as a `vector`.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1620 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T , typename U >
Offset<Vector<T> > flatbuffers::FlatBufferBuilder::CreateVectorScalarCast ( const U *  v,
size_t  len 
) [inline]

Definition at line 1796 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T , typename U >
Offset<Vector<T> > flatbuffers::FlatBufferBuilder::CreateVectorScalarCast ( const U *  v,
size_t  len 
) [inline]
void flatbuffers::FlatBufferBuilder::DedupVtables ( bool  dedup) [inline]

By default vtables are deduped in order to save space.

Parameters:
[in]booldedup When set to `true`, dedup vtables.

Definition at line 1085 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

void flatbuffers::FlatBufferBuilder::DedupVtables ( bool  dedup) [inline]

By default vtables are deduped in order to save space.

Parameters:
[in]booldedup When set to `true`, dedup vtables.

Definition at line 1085 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::EndVectorOfStructs ( size_t  vector_size) [inline, private]

Definition at line 1915 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
Offset<Vector<const T *> > flatbuffers::FlatBufferBuilder::EndVectorOfStructs ( size_t  vector_size) [inline, private]
template<typename T >
void flatbuffers::FlatBufferBuilder::Finish ( Offset< T >  root,
const char *  file_identifier = nullptr 
) [inline]

Finish serializing a buffer by writing the root offset.

Parameters:
[in]file_identifierIf a `file_identifier` is given, the buffer will be prefixed with a standard FlatBuffers file header.

Definition at line 1819 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T >
void flatbuffers::FlatBufferBuilder::Finish ( Offset< T >  root,
const char *  file_identifier = nullptr 
) [inline]

Finish serializing a buffer by writing the root offset.

Parameters:
[in]file_identifierIf a `file_identifier` is given, the buffer will be prefixed with a standard FlatBuffers file header.

Definition at line 1819 of file 3rdparty/flatbuffers/flatbuffers.h.

void flatbuffers::FlatBufferBuilder::Finish ( uoffset_t  root,
const char *  file_identifier,
bool  size_prefix 
) [inline, protected]
void flatbuffers::FlatBufferBuilder::Finish ( uoffset_t  root,
const char *  file_identifier,
bool  size_prefix 
) [inline, protected]

Definition at line 1846 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
void flatbuffers::FlatBufferBuilder::FinishSizePrefixed ( Offset< T >  root,
const char *  file_identifier = nullptr 
) [inline]

Finish a buffer with a 32 bit size field pre-fixed (size of the buffer following the size field). These buffers are NOT compatible with standard buffers created by Finish, i.e. you can't call GetRoot on them, you have to use GetSizePrefixedRoot instead. All >32 bit quantities in this buffer will be aligned when the whole size pre-fixed buffer is aligned. These kinds of buffers are useful for creating a stream of FlatBuffers.

Definition at line 1831 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

template<typename T >
void flatbuffers::FlatBufferBuilder::FinishSizePrefixed ( Offset< T >  root,
const char *  file_identifier = nullptr 
) [inline]

Finish a buffer with a 32 bit size field pre-fixed (size of the buffer following the size field). These buffers are NOT compatible with standard buffers created by Finish, i.e. you can't call GetRoot on them, you have to use GetSizePrefixedRoot instead. All >32 bit quantities in this buffer will be aligned when the whole size pre-fixed buffer is aligned. These kinds of buffers are useful for creating a stream of FlatBuffers.

Definition at line 1831 of file 3rdparty/flatbuffers/flatbuffers.h.

flatbuffers::FlatBufferBuilder::FLATBUFFERS_ATTRIBUTE ( deprecated("use Release() instead")  ) [inline]

Get the released pointer to the serialized buffer.

Warning:
Do NOT attempt to use this FlatBufferBuilder afterwards!
Returns:
A `FlatBuffer` that owns the buffer and its allocator and behaves similar to a `unique_ptr` with a deleter.

Definition at line 1030 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

flatbuffers::FlatBufferBuilder::FLATBUFFERS_ATTRIBUTE ( deprecated("use Release() instead")  ) [inline]

Get the released pointer to the serialized buffer.

Warning:
Do NOT attempt to use this FlatBufferBuilder afterwards!
Returns:
A `FlatBuffer` that owns the buffer and its allocator and behaves similar to a `unique_ptr` with a deleter.

Definition at line 1030 of file 3rdparty/flatbuffers/flatbuffers.h.

In order to save space, fields that are set to their default value don't get serialized into the buffer.

Parameters:
[in]boolfd When set to `true`, always serializes default values that are set. Optional fields which are not set explicitly, will still not be serialized.

Definition at line 1081 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

In order to save space, fields that are set to their default value don't get serialized into the buffer.

Parameters:
[in]boolfd When set to `true`, always serializes default values that are set. Optional fields which are not set explicitly, will still not be serialized.

Definition at line 1081 of file 3rdparty/flatbuffers/flatbuffers.h.

get the minimum alignment this buffer needs to be accessed properly. This is only known once all elements have been written (after you call Finish()). You can use this information if you need to embed a FlatBuffer in some other buffer, such that you can later read it without first having to copy it into its own buffer.

Definition at line 1061 of file 3rdparty/flatbuffers/flatbuffers.h.

get the minimum alignment this buffer needs to be accessed properly. This is only known once all elements have been written (after you call Finish()). You can use this information if you need to embed a FlatBuffer in some other buffer, such that you can later read it without first having to copy it into its own buffer.

Definition at line 1061 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

Get the serialized buffer (after you call `Finish()`).

Returns:
Returns an `uint8_t` pointer to the FlatBuffer data inside the buffer.

Definition at line 1017 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

Get the serialized buffer (after you call `Finish()`).

Returns:
Returns an `uint8_t` pointer to the FlatBuffer data inside the buffer.

Definition at line 1017 of file 3rdparty/flatbuffers/flatbuffers.h.

Get a pointer to an unfinished buffer.

Returns:
Returns a `uint8_t` pointer to the unfinished buffer.

Definition at line 1024 of file 3rdparty/flatbuffers/flatbuffers.h.

Get a pointer to an unfinished buffer.

Returns:
Returns a `uint8_t` pointer to the unfinished buffer.

Definition at line 1024 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

uoffset_t flatbuffers::FlatBufferBuilder::GetSize ( ) const [inline]

The current size of the serialized buffer, counting from the end.

Returns:
Returns an `uoffset_t` with the current size of the buffer.

Definition at line 1012 of file 3rdparty/flatbuffers/flatbuffers.h.

uoffset_t flatbuffers::FlatBufferBuilder::GetSize ( ) const [inline]

The current size of the serialized buffer, counting from the end.

Returns:
Returns an `uoffset_t` with the current size of the buffer.

Definition at line 1012 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

FlatBufferBuilder& flatbuffers::FlatBufferBuilder::operator= ( FlatBufferBuilder &&  other) [inline]

Move assignment operator for FlatBufferBuilder.

Definition at line 967 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

FlatBufferBuilder& flatbuffers::FlatBufferBuilder::operator= ( FlatBufferBuilder &&  other) [inline]

Move assignment operator for FlatBufferBuilder.

Definition at line 967 of file 3rdparty/flatbuffers/flatbuffers.h.

FlatBufferBuilder& flatbuffers::FlatBufferBuilder::operator= ( const FlatBufferBuilder ) [protected]
FlatBufferBuilder& flatbuffers::FlatBufferBuilder::operator= ( const FlatBufferBuilder ) [protected]

Get the released DetachedBuffer.

Returns:
A `DetachedBuffer` that owns the buffer and its allocator.

Definition at line 1038 of file 3rdparty/flatbuffers/flatbuffers.h.

Get the released DetachedBuffer.

Returns:
A `DetachedBuffer` that owns the buffer and its allocator.

Definition at line 1038 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

uint8_t* flatbuffers::FlatBufferBuilder::ReleaseRaw ( size_t &  size,
size_t &  offset 
) [inline]

Get the released pointer to the serialized buffer.

Parameters:
Thesize of the memory block containing the serialized `FlatBuffer`.
Theoffset from the released pointer where the finished `FlatBuffer` starts.
Returns:
A raw pointer to the start of the memory block containing the serialized `FlatBuffer`.
Remarks:
If the allocator is owned, it gets deleted when the destructor is called..

Definition at line 1051 of file 3rdparty/flatbuffers/flatbuffers.h.

uint8_t* flatbuffers::FlatBufferBuilder::ReleaseRaw ( size_t &  size,
size_t &  offset 
) [inline]

Get the released pointer to the serialized buffer.

Parameters:
Thesize of the memory block containing the serialized `FlatBuffer`.
Theoffset from the released pointer where the finished `FlatBuffer` starts.
Returns:
A raw pointer to the start of the memory block containing the serialized `FlatBuffer`.
Remarks:
If the allocator is owned, it gets deleted when the destructor is called..

Definition at line 1051 of file include/behaviortree_cpp/flatbuffers/flatbuffers.h.

Definition at line 994 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
T* flatbuffers::FlatBufferBuilder::StartVectorOfStructs ( size_t  vector_size) [inline, private]

Definition at line 1907 of file 3rdparty/flatbuffers/flatbuffers.h.

template<typename T >
T* flatbuffers::FlatBufferBuilder::StartVectorOfStructs ( size_t  vector_size) [inline, private]

Definition at line 977 of file 3rdparty/flatbuffers/flatbuffers.h.

Definition at line 1836 of file 3rdparty/flatbuffers/flatbuffers.h.


Member Data Documentation

Definition at line 1868 of file 3rdparty/flatbuffers/flatbuffers.h.

Definition at line 1887 of file 3rdparty/flatbuffers/flatbuffers.h.

Definition at line 1881 of file 3rdparty/flatbuffers/flatbuffers.h.

Definition at line 1885 of file 3rdparty/flatbuffers/flatbuffers.h.

The length of a FlatBuffer file header.

Definition at line 1813 of file 3rdparty/flatbuffers/flatbuffers.h.

Definition at line 1875 of file 3rdparty/flatbuffers/flatbuffers.h.

Definition at line 1883 of file 3rdparty/flatbuffers/flatbuffers.h.

Definition at line 1878 of file 3rdparty/flatbuffers/flatbuffers.h.

Definition at line 1872 of file 3rdparty/flatbuffers/flatbuffers.h.

Definition at line 1902 of file 3rdparty/flatbuffers/flatbuffers.h.

Offset<Vector<T>> CreateVector(const T *v, size_t len) { AssertScalarT<T>); StartVector(len, sizeof(T)); if (sizeof(T) == 1) { PushBytes(reinterpret_cast<const uint8_t *>v), len); } else { for (auto i = len; i > 0; ) { PushElement(v[--i]); } } return Offset<Vector<T> >EndVector(len)); } template<typename T> Offset<Vector<Offset<T> > > CreateVector(const Offset<T> *v, size_t len) { StartVector(len, sizeof(Offset<T>)); for (auto i = len; i > flatbuffers::FlatBufferBuilder::

Serialize an array into a FlatBuffer `vector`.

Template Parameters:
TThe data type of the array elements.
Parameters:
[in]vA pointer to the array of type `T` to serialize into the buffer as a `vector`.
[in]lenThe number of elements to serialize.
Returns:
Returns a typed `Offset` into the serialized data indicating where the vector is stored.

Definition at line 1467 of file 3rdparty/flatbuffers/flatbuffers.h.


The documentation for this class was generated from the following files:


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 20:17:16