Builds a UnionArray which represents data drawn from an ordered list of contents, which can have different types, using tags, which is an array of integers indicating which content each array element draws from and index, which is an array of integers indicating which element from the content to draw from.
More...
|
| Union () |
| Creates a new Union layout builder by allocating new tags and index buffers, using AWKWARD_LAYOUTBUILDER_DEFAULT_OPTIONS for initializing the buffer.
|
|
| Union (const awkward::BuilderOptions &options) |
| Creates a new Union layout builder by allocating new tags and index buffers, taking options from BuilderOptions for initializing the buffer.
|
|
template<std::size_t I> |
ContentType< I > & | content () noexcept |
|
template<std::size_t TAG> |
ContentType< TAG > & | append_content () noexcept |
| Inserts the current tag in the tags buffer and the next index in the index buffer and returns the reference to the content of the current builder.
|
|
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 |
|
void | clear () noexcept |
|
size_t | length () const noexcept |
| Current length of the tags 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 |
|
void | to_buffers (std::map< std::string, void * > &buffers) const noexcept |
|
void | to_buffer (void *buffer, const char *name) const noexcept |
|
void | to_char_buffers (std::map< std::string, uint8_t * > &buffers) const noexcept |
|
std::string | form () const noexcept |
|
template<typename TAGS, typename INDEX, typename... BUILDERS>
class awkward::LayoutBuilder::Union< TAGS, INDEX, BUILDERS >
Builds a UnionArray which represents data drawn from an ordered list of contents, which can have different types, using tags, which is an array of integers indicating which content each array element draws from and index, which is an array of integers indicating which element from the content to draw from.
The index values can be 64-bit signed integers int64
, 32-bit signed integers int32
or 32-bit unsigned integers uint32
and the tags values can be 8-bit signed integers.
- Template Parameters
-
TAGS | The type of tags buffer. |
INDEX | The type of index buffer. |
BUILDERS | The types of builder contents. |