Rerun C++ SDK
Loading...
Searching...
No Matches
keypoint_id.hpp
1// DO NOT EDIT! This file was auto-generated by crates/re_types_builder/src/codegen/cpp/mod.rs
2// Based on "crates/re_types/definitions/rerun/datatypes/keypoint_id.fbs".
3
4#pragma once
5
6#include "../result.hpp"
7
8#include <cstdint>
9#include <memory>
10
11namespace arrow {
12 /// \private
13 template <typename T>
14 class NumericBuilder;
15
16 class Array;
17 class DataType;
18 class UInt16Type;
19 using UInt16Builder = NumericBuilder<UInt16Type>;
20} // namespace arrow
21
22namespace rerun::datatypes {
23 /// **Datatype**: A 16-bit ID representing a type of semantic keypoint within a class.
24 struct KeypointId {
25 uint16_t id;
26
27 public:
28 KeypointId() = default;
29
30 KeypointId(uint16_t id_) : id(id_) {}
31
32 KeypointId& operator=(uint16_t id_) {
33 id = id_;
34 return *this;
35 }
36 };
37} // namespace rerun::datatypes
38
39namespace rerun {
40 template <typename T>
41 struct Loggable;
42
43 /// \private
44 template <>
45 struct Loggable<datatypes::KeypointId> {
46 static constexpr const char Name[] = "rerun.datatypes.KeypointId";
47
48 /// Returns the arrow data type this type corresponds to.
49 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
50
51 /// Fills an arrow array builder with an array of this type.
52 static rerun::Error fill_arrow_array_builder(
53 arrow::UInt16Builder* builder, const datatypes::KeypointId* elements,
54 size_t num_elements
55 );
56
57 /// Serializes an array of `rerun::datatypes::KeypointId` into an arrow array.
59 const datatypes::KeypointId* instances, size_t num_instances
60 );
61 };
62} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
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:72
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
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:24