5#include "collection.hpp"
6#include "component_type.hpp"
30 std::shared_ptr<arrow::Array>
array;
42 rerun::is_loggable<T>,
43 "The given type does not implement the rerun::Loggable trait."
54 RR_RETURN_NOT_OK(
array.error);
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:47
static Collection< TElement > borrow(const T *data, size_t num_instances)
Borrows binary compatible data into the collection.
Definition collection.hpp:149
size_t size() const
Returns the number of instances in this collection.
Definition collection.hpp:254
const TElement * data() const
Returns a raw pointer to the underlying data.
Definition collection.hpp:282
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
A class for representing either a usable value, or an error.
Definition result.hpp:14
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
uint32_t ComponentTypeHandle
Handle to a registered component types.
Definition component_type.hpp:14
A type of component that can be registered.
Definition component_type.hpp:19
Result< ComponentTypeHandle > register_component() const
Registers a component type with the SDK.
Arrow-encoded data of a single batch components for a single entity.
Definition data_cell.hpp:21
Error to_c_ffi_struct(rr_data_cell &out_cell) const
To rerun C API data cell.
size_t num_instances
How many instances of the component were serialized in this data cell.
Definition data_cell.hpp:27
ComponentTypeHandle component_type
The type of the component instances in array.
Definition data_cell.hpp:33
static Result< DataCell > from_loggable(const rerun::Collection< T > &components)
Creates a new data cell from a collection of component instances.
Definition data_cell.hpp:40
std::shared_ptr< arrow::Array > array
Arrow-encoded data of the component instances.
Definition data_cell.hpp:30
static Result< DataCell > from_loggable(const T &component)
Creates a new data cell from a single component instance.
Definition data_cell.hpp:67
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11