Rerun C++ SDK
Loading...
Searching...
No Matches
keypoint_id.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/keypoint_id.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 /// \private
14 template <typename T>
15 class NumericBuilder;
16
17 class Array;
18 class DataType;
19 class UInt16Type;
20 using UInt16Builder = NumericBuilder<UInt16Type>;
21} // namespace arrow
22
23namespace rerun::datatypes {
24 /// **Datatype**: A 16-bit ID representing a type of semantic keypoint within a class.
25 struct KeypointId {
26 uint16_t id;
27
28 public:
29 KeypointId() = default;
30
31 KeypointId(uint16_t id_) : id(id_) {}
32
33 KeypointId& operator=(uint16_t id_) {
34 id = id_;
35 return *this;
36 }
37 };
38} // namespace rerun::datatypes
39
40namespace rerun {
41 template <typename T>
42 struct Loggable;
43
44 /// \private
45 template <>
46 struct Loggable<datatypes::KeypointId> {
47 static constexpr ComponentDescriptor Descriptor = "rerun.datatypes.KeypointId";
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::datatypes::KeypointId` into an arrow array.
54 const datatypes::KeypointId* 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::UInt16Builder* builder, const datatypes::KeypointId* elements,
60 size_t num_elements
61 );
62 };
63} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
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:83
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:13
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Datatype: A 16-bit ID representing a type of semantic keypoint within a class.
Definition keypoint_id.hpp:25