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 "../result.hpp"
7
8#include <cstdint>
9#include <memory>
10
11namespace arrow {
12 class Array;
13 class DataType;
14 class StructBuilder;
15} // namespace arrow
16
17namespace rerun::datatypes {
18 /// **Datatype**: Selection of a single tensor dimension.
20 /// The dimension number to select.
21 uint32_t dimension;
22
23 /// Invert the direction of the dimension.
24 bool invert;
25
26 public:
27 TensorDimensionSelection() = default;
28 };
29} // namespace rerun::datatypes
30
31namespace rerun {
32 template <typename T>
33 struct Loggable;
34
35 /// \private
36 template <>
37 struct Loggable<datatypes::TensorDimensionSelection> {
38 static constexpr const char Name[] = "rerun.datatypes.TensorDimensionSelection";
39
40 /// Returns the arrow data type this type corresponds to.
41 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
42
43 /// Serializes an array of `rerun::datatypes::TensorDimensionSelection` into an arrow array.
45 const datatypes::TensorDimensionSelection* instances, size_t num_instances
46 );
47
48 /// Fills an arrow array builder with an array of this type.
49 static rerun::Error fill_arrow_array_builder(
50 arrow::StructBuilder* builder, const datatypes::TensorDimensionSelection* elements,
51 size_t num_elements
52 );
53 };
54} // 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:82
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
Datatype: Selection of a single tensor dimension.
Definition tensor_dimension_selection.hpp:19
bool invert
Invert the direction of the dimension.
Definition tensor_dimension_selection.hpp:24
uint32_t dimension
The dimension number to select.
Definition tensor_dimension_selection.hpp:21