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