Builds an Empty RecordArray which has has zero
contents. It still represents a non-empty array. In this case, its length is specified by length.
More...
#include <LayoutBuilder.h>
Public Member Functions | |
EmptyRecord () | |
Creates a new EmptyRecord layout builder. | |
void | append () noexcept |
Inserts an empty record. | |
void | extend (size_t size) noexcept |
Inserts size number of empty records. | |
const std::string & | parameters () const noexcept |
Parameters for the builder form. | |
void | set_parameters (std::string parameter) noexcept |
Sets the form parameters. | |
void | set_id (size_t &id) noexcept |
Assigns a unique ID to each node. | |
void | clear () noexcept |
Clears the builder contents, the length returns to zero. | |
size_t | length () const noexcept |
Current number of records. | |
bool | is_valid (std::string &) const noexcept |
Checks for validity and consistency. | |
void | buffer_nbytes (std::map< std::string, size_t > &names_nbytes) const noexcept |
void | to_buffers (std::map< std::string, void * > &buffers) const noexcept |
void | to_char_buffers (std::map< std::string, uint8_t * > &buffers) const noexcept |
Copies and concatenates all the accumulated data in the builder to a map of user-allocated buffers. | |
std::string | form () const noexcept |
Generates a unique description of the builder and its contents in the form of a JSON-like string. | |
Builds an Empty RecordArray which has has zero
contents. It still represents a non-empty array. In this case, its length is specified by length.
IS_TUPLE | A boolean value which determines whether the builder contains Tuples or Records. |
|
inline |
Creates a new EmptyRecord layout builder.
|
inlinenoexcept |
Clears the builder contents, the length returns to zero.
Inserts size
number of empty records.
Just an interface; not actually faster than calling append many times.
|
inlinenoexcept |
Generates a unique description of the builder and its contents in the form of a JSON-like string.
Checks for validity and consistency.
Parameters for the builder form.
Sets the form parameters.
|
inlinenoexcept |
|
inlinenoexcept |
Copies and concatenates all the accumulated data in the builder to a map of user-allocated buffers.
The map keys and the buffer sizes are obtained from buffer_nbytes