Rerun C++ SDK
Loading...
Searching...
No Matches
uvec3d.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/uvec3d.fbs".
3
4#pragma once
5
6#include "../result.hpp"
7
8#include <array>
9#include <cstdint>
10#include <memory>
11
12namespace arrow {
13 class Array;
14 class DataType;
15 class FixedSizeListBuilder;
16} // namespace arrow
17
18namespace rerun::datatypes {
19 /// **Datatype**: A uint32 vector in 3D space.
20 struct UVec3D {
21 std::array<uint32_t, 3> xyz;
22
23 public:
24 UVec3D() = default;
25
26 UVec3D(std::array<uint32_t, 3> xyz_) : xyz(xyz_) {}
27
28 UVec3D& operator=(std::array<uint32_t, 3> xyz_) {
29 xyz = xyz_;
30 return *this;
31 }
32 };
33} // namespace rerun::datatypes
34
35namespace rerun {
36 template <typename T>
37 struct Loggable;
38
39 /// \private
40 template <>
41 struct Loggable<datatypes::UVec3D> {
42 static constexpr const char Name[] = "rerun.datatypes.UVec3D";
43
44 /// Returns the arrow data type this type corresponds to.
45 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
46
47 /// Fills an arrow array builder with an array of this type.
48 static rerun::Error fill_arrow_array_builder(
49 arrow::FixedSizeListBuilder* builder, const datatypes::UVec3D* elements,
50 size_t num_elements
51 );
52
53 /// Serializes an array of `rerun::datatypes::UVec3D` into an arrow array.
55 const datatypes::UVec3D* instances, size_t num_instances
56 );
57 };
58} // 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 uint32 vector in 3D space.
Definition uvec3d.hpp:20