Rerun C++ SDK
|
Arrow-encoded data of a single batch components for a single entity. More...
#include <rerun/component_batch.hpp>
Public Member Functions | |
Error | to_c_ffi_struct (rr_component_batch &out_component_batch) const |
To rerun C API component batch. | |
Static Public Member Functions | |
template<typename T > | |
static Result< ComponentBatch > | from_loggable (const rerun::Collection< T > &components) |
Creates a new component batch from a collection of component instances. | |
template<typename T > | |
static Result< ComponentBatch > | from_loggable (const T &component) |
Creates a new component batch from a single component instance. | |
template<typename T > | |
static Result< ComponentBatch > | from_loggable (const std::optional< T > &component) |
Creates a new data cell from a single optional component instance. | |
template<typename T > | |
static Result< ComponentBatch > | from_loggable (const std::optional< rerun::Collection< T > > &components) |
Creates a new data cell from an optional collection of component instances. | |
Public Attributes | |
std::shared_ptr< arrow::Array > | array |
Arrow-encoded data of the component instances. | |
ComponentTypeHandle | component_type |
The type of the component instances in array. | |
Arrow-encoded data of a single batch components for a single entity.
Note that this doesn't own datatype
and component_name
.
|
inlinestatic |
Creates a new component batch from a collection of component instances.
Automatically registers the component type the first time this type is encountered.
TODO(#4257) should take a rerun::Collection instead of pointer and size.
|
inlinestatic |
Creates a new component batch from a single component instance.
Automatically registers the component type the first time this type is encountered.
|
inlinestatic |
Creates a new data cell from a single optional component instance.
None is represented as a data cell with 0 instances.
Automatically registers the component type the first time this type is encountered.
|
inlinestatic |
Creates a new data cell from an optional collection of component instances.
None is represented as a data cell with 0 instances.
Automatically registers the component type the first time this type is encountered.
Error rerun::ComponentBatch::to_c_ffi_struct | ( | rr_component_batch & | out_component_batch | ) | const |
To rerun C API component batch.
The resulting rr_component_batch
keeps the arrow::Array
alive until it is released.