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/build/re_type_definitions/rerun/blueprint/encodings/tensor_dimension_index_slider.def.rs".
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::encodings {
18 /// **Encoding**: Defines a slider for the index of some dimension.
19 ///
20 /// ⚠ **This type is _unstable_ and may change significantly in a way that the data won't be backwards compatible.**
21 ///
23 /// The dimension number.
24 uint32_t dimension;
25
26 public:
28
29 TensorDimensionIndexSlider(uint32_t dimension_) : dimension(dimension_) {}
30
31 TensorDimensionIndexSlider& operator=(uint32_t dimension_) {
32 dimension = dimension_;
33 return *this;
34 }
35 };
36} // namespace rerun::blueprint::encodings
37
38namespace rerun {
39 template <typename T>
40 struct Loggable;
41
42 /// \private
43 template <>
44 struct Loggable<blueprint::encodings::TensorDimensionIndexSlider> {
45 static constexpr std::string_view ComponentType =
46 "rerun.blueprint.encodings.TensorDimensionIndexSlider";
47
48 /// Returns the arrow data type this type corresponds to.
49 static const std::shared_ptr<arrow::DataType>& arrow_data_type();
50
51 /// Serializes an array of `rerun::blueprint:: encodings::TensorDimensionIndexSlider` into an arrow array.
52 static Result<std::shared_ptr<arrow::Array>> to_arrow(
53 const blueprint::encodings::TensorDimensionIndexSlider* instances, size_t num_instances
54 );
55
56 /// Fills an arrow array builder with an array of this type.
57 static rerun::Error fill_arrow_array_builder(
58 arrow::StructBuilder* builder,
59 const blueprint::encodings::TensorDimensionIndexSlider* elements, size_t num_elements
60 );
61 };
62} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:103
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:26
Encoding: Defines a slider for the index of some dimension.
Definition tensor_dimension_index_slider.hpp:22
uint32_t dimension
The dimension number.
Definition tensor_dimension_index_slider.hpp:24