29 template <const
char Name[]>
35 template <const
char Name_[]>
36 struct Loggable<components::IndicatorComponent<Name_>> {
38 static constexpr const char* Name = Name_;
41 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
46 static Result<std::shared_ptr<arrow::Array>> to_arrow(
47 const components::IndicatorComponent<Name_>*,
size_t num_instances
50 if (num_instances == 1) {
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:75
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:22
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:30