Rerun C++ SDK
Loading...
Searching...
No Matches
component_column_selector.hpp
1// DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/cpp/mod.rs
2// Based on "crates/store/re_types/definitions/rerun/blueprint/components/component_column_selector.fbs".
3
4#pragma once
5
6#include "../../blueprint/datatypes/component_column_selector.hpp"
7#include "../../component_descriptor.hpp"
8#include "../../result.hpp"
9
10#include <cstdint>
11#include <memory>
12#include <utility>
13
14namespace rerun::blueprint::components {
15 /// **Component**: Describe a component column to be selected in the dataframe view.
18
19 public:
20 ComponentColumnSelector() = default;
21
23 : selector(std::move(selector_)) {}
24
25 ComponentColumnSelector& operator=(
27 ) {
28 selector = std::move(selector_);
29 return *this;
30 }
31
32 /// Cast to the underlying ComponentColumnSelector datatype
34 return selector;
35 }
36 };
37} // namespace rerun::blueprint::components
38
39namespace rerun {
40 static_assert(
43 );
44
45 /// \private
46 template <>
47 struct Loggable<blueprint::components::ComponentColumnSelector> {
48 static constexpr ComponentDescriptor Descriptor =
49 "rerun.blueprint.components.ComponentColumnSelector";
50
51 /// Returns the arrow data type this type corresponds to.
52 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
54 }
55
56 /// Serializes an array of `rerun::blueprint:: components::ComponentColumnSelector` into an arrow array.
57 static Result<std::shared_ptr<arrow::Array>> to_arrow(
58 const blueprint::components::ComponentColumnSelector* instances, size_t num_instances
59 ) {
60 if (num_instances == 0) {
61 return Loggable<rerun::blueprint::datatypes::ComponentColumnSelector>::to_arrow(
62 nullptr,
63 0
64 );
65 } else if (instances == nullptr) {
66 return rerun::Error(
67 ErrorCode::UnexpectedNullArgument,
68 "Passed array instances is null when num_elements> 0."
69 );
70 } else {
71 return Loggable<rerun::blueprint::datatypes::ComponentColumnSelector>::to_arrow(
72 &instances->selector,
73 num_instances
74 );
75 }
76 }
77 };
78} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
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:13
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Component: Describe a component column to be selected in the dataframe view.
Definition component_column_selector.hpp:16
Datatype: Describe a component column to be selected in the dataframe view.
Definition component_column_selector.hpp:22