5#include "component_descriptor.hpp"
31 template <const
char ComponentName[]>
37 template <const
char ComponentName_[]>
38 struct Loggable<components::IndicatorComponent<ComponentName_>> {
43 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
48 static Result<std::shared_ptr<arrow::Array>> to_arrow(
49 const components::IndicatorComponent<ComponentName_>*,
size_t num_instances
52 if (num_instances == 1) {
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:79
const std::shared_ptr< arrow::DataType > & indicator_arrow_datatype()
Arrow data type shared by all instances of IndicatorComponent.
const std::shared_ptr< arrow::Array > & indicator_arrow_array()
Returns an arrow array for a single indicator component.
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
A ComponentDescriptor fully describes the semantics of a column of data.
Definition component_descriptor.hpp:14
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32