Rerun C++ SDK
Loading...
Searching...
No Matches
tensor_dimension_index_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**: Indexing a specific tensor dimension.
19 ///
20 /// Selecting `dimension=2` and `index=42` is similar to doing `tensor[:, :, 42, :, :, …]` in numpy.
22 /// The dimension number to select.
23 uint32_t dimension;
24
25 /// The index along the dimension to use.
26 uint64_t index;
27
28 public:
30 };
31} // namespace rerun::datatypes
32
33namespace rerun {
34 template <typename T>
35 struct Loggable;
36
37 /// \private
38 template <>
39 struct Loggable<datatypes::TensorDimensionIndexSelection> {
40 static constexpr const char Name[] = "rerun.datatypes.TensorDimensionIndexSelection";
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::TensorDimensionIndexSelection` into an arrow array.
47 const datatypes::TensorDimensionIndexSelection* 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::TensorDimensionIndexSelection* elements,
53 size_t num_elements
54 );
55 };
56} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:91
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:78
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: Indexing a specific tensor dimension.
Definition tensor_dimension_index_selection.hpp:21
uint64_t index
The index along the dimension to use.
Definition tensor_dimension_index_selection.hpp:26
uint32_t dimension
The dimension number to select.
Definition tensor_dimension_index_selection.hpp:23