Rerun C++ SDK
Loading...
Searching...
No Matches
tensor_dimension_index_slider.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/datatypes/tensor_dimension_index_slider.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::blueprint::datatypes {
18 /// **Datatype**: Defines a slider for the index of some dimension.
20 /// The dimension number.
21 uint32_t dimension;
22
23 public:
25
26 TensorDimensionIndexSlider(uint32_t dimension_) : dimension(dimension_) {}
27
28 TensorDimensionIndexSlider& operator=(uint32_t dimension_) {
29 dimension = dimension_;
30 return *this;
31 }
32 };
33} // namespace rerun::blueprint::datatypes
34
35namespace rerun {
36 template <typename T>
37 struct Loggable;
38
39 /// \private
40 template <>
41 struct Loggable<blueprint::datatypes::TensorDimensionIndexSlider> {
42 static constexpr const char Name[] = "rerun.blueprint.datatypes.TensorDimensionIndexSlider";
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::blueprint:: datatypes::TensorDimensionIndexSlider` into an arrow array.
48 static Result<std::shared_ptr<arrow::Array>> to_arrow(
49 const blueprint::datatypes::TensorDimensionIndexSlider* 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,
55 const blueprint::datatypes::TensorDimensionIndexSlider* elements, size_t num_elements
56 );
57 };
58} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:91
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
Datatype: Defines a slider for the index of some dimension.
Definition tensor_dimension_index_slider.hpp:19
uint32_t dimension
The dimension number.
Definition tensor_dimension_index_slider.hpp:21