|
| | IndexedOption () |
| | Creates a new IndexedOption layout builder by allocating a new index buffer, using default_options for initializing the buffer.
|
| |
| | IndexedOption (const awkward::BuilderOptions &options) |
| | Creates a new IndexedOption layout builder by allocating a new index buffer, taking options from BuilderOptions for initializing the buffer.
|
| |
| BUILDER & | content () noexcept |
| | Returns the reference to the builder content.
|
| |
| BUILDER & | append_index () noexcept |
| | Inserts the last valid index in the index buffer and returns the reference to the builder content.
|
| |
| BUILDER & | extend_index (size_t size) noexcept |
| | Inserts size number of valid index in the index buffer and returns the reference to the builder content.
|
| |
| void | append_null () noexcept |
| | Inserts -1 in the index buffer.
|
| |
| void | extend_null (size_t size) noexcept |
| | Inserts -1 in the index buffer size number of times.
|
| |
| 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 |
| | Discards the accumulated index and clears the content of the builder. Also, last valid returns to -1.
|
| |
| size_t | length () const noexcept |
| | Current length of the index buffer.
|
| |
| bool | is_valid (std::string &error) const noexcept |
| | Checks for validity and consistency.
|
| |
| void | buffer_nbytes (std::map< std::string, size_t > &names_nbytes) const noexcept |
| | Retrieves the names and sizes (in bytes) of the buffers used in the builder and its contents.
|
| |
| void | to_buffers (std::map< std::string, void * > &buffers) const noexcept |
| | Copies and concatenates all the accumulated data in each of the buffers of the builder and its contents to user-defined pointers.
|
| |
| 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.
|
| |
template<typename PRIMITIVE, typename BUILDER>
class awkward::LayoutBuilder::IndexedOption< PRIMITIVE, BUILDER >
Builds an IndexedOptionArray which consists of an index buffer. The negative values in the index are interpreted as missing.
The index values can be 64-bit signed integers int64, 32-bit signed integers int32.
- Template Parameters
-
| PRIMITIVE | The type of index buffer. |
| BUILDER | The type of builder content. |