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 "../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**: Indexing a specific tensor dimension.
20 ///
21 /// Selecting `dimension=2` and `index=42` is similar to doing `tensor[:, :, 42, :, :, …]` in numpy.
23 /// The dimension number to select.
24 uint32_t dimension;
25
26 /// The index along the dimension to use.
27 uint64_t index;
28
29 public:
31 };
32} // namespace rerun::datatypes
33
34namespace rerun {
35 template <typename T>
36 struct Loggable;
37
38 /// \private
39 template <>
40 struct Loggable<datatypes::TensorDimensionIndexSelection> {
41 static constexpr ComponentDescriptor Descriptor =
42 "rerun.datatypes.TensorDimensionIndexSelection";
43
44 /// Returns the arrow data type this type corresponds to.
45 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
46
47 /// Serializes an array of `rerun::datatypes::TensorDimensionIndexSelection` into an arrow array.
49 const datatypes::TensorDimensionIndexSelection* instances, size_t num_instances
50 );
51
52 /// Fills an arrow array builder with an array of this type.
53 static rerun::Error fill_arrow_array_builder(
54 arrow::StructBuilder* builder, const datatypes::TensorDimensionIndexSelection* elements,
55 size_t num_elements
56 );
57 };
58} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:99
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:23
A ComponentDescriptor fully describes the semantics of a column of data.
Definition component_descriptor.hpp:14
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:22
uint64_t index
The index along the dimension to use.
Definition tensor_dimension_index_selection.hpp:27
uint32_t dimension
The dimension number to select.
Definition tensor_dimension_index_selection.hpp:24