Rerun C++ SDK
Loading...
Searching...
No Matches
tensor_dimension_selection.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/datatypes/tensor_dimension_selection.fbs".
3
4#pragma once
5
6#include "../component_descriptor.hpp"
7#include "../result.hpp"
8
9#include <cstdint>
10#include <memory>
11
12namespace arrow {
13 class Array;
14 class DataType;
15 class StructBuilder;
16} // namespace arrow
17
18namespace rerun::datatypes {
19 /// **Datatype**: Selection of a single tensor dimension.
21 /// The dimension number to select.
22 uint32_t dimension;
23
24 /// Invert the direction of the dimension.
25 bool invert;
26
27 public:
28 TensorDimensionSelection() = default;
29 };
30} // namespace rerun::datatypes
31
32namespace rerun {
33 template <typename T>
34 struct Loggable;
35
36 /// \private
37 template <>
38 struct Loggable<datatypes::TensorDimensionSelection> {
39 static constexpr ComponentDescriptor Descriptor =
40 "rerun.datatypes.TensorDimensionSelection";
41
42 /// Returns the arrow data type this type corresponds to.
43 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
44
45 /// Serializes an array of `rerun::datatypes::TensorDimensionSelection` into an arrow array.
47 const datatypes::TensorDimensionSelection* instances, size_t num_instances
48 );
49
50 /// Fills an arrow array builder with an array of this type.
51 static rerun::Error fill_arrow_array_builder(
52 arrow::StructBuilder* builder, const datatypes::TensorDimensionSelection* elements,
53 size_t num_elements
54 );
55 };
56} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
A class for representing either a usable value, or an error.
Definition result.hpp:14
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:83
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
Datatype: Selection of a single tensor dimension.
Definition tensor_dimension_selection.hpp:20
bool invert
Invert the direction of the dimension.
Definition tensor_dimension_selection.hpp:25
uint32_t dimension
The dimension number to select.
Definition tensor_dimension_selection.hpp:22