Rerun C++ SDK
Loading...
Searching...
No Matches
utf8list.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/utf8_list.fbs".
3
4#pragma once
5
6#include "../../collection.hpp"
7#include "../../result.hpp"
8
9#include <cstdint>
10#include <memory>
11#include <string>
12#include <utility>
13
14namespace arrow {
15 class Array;
16 class DataType;
17 class ListBuilder;
18} // namespace arrow
19
20namespace rerun::blueprint::datatypes {
21 /// **Datatype**: A list of strings of text, encoded as UTF-8.
22 struct Utf8List {
24
25 public:
26 Utf8List() = default;
27
28 Utf8List(rerun::Collection<std::string> value_) : value(std::move(value_)) {}
29
30 Utf8List& operator=(rerun::Collection<std::string> value_) {
31 value = std::move(value_);
32 return *this;
33 }
34 };
35} // namespace rerun::blueprint::datatypes
36
37namespace rerun {
38 template <typename T>
39 struct Loggable;
40
41 /// \private
42 template <>
43 struct Loggable<blueprint::datatypes::Utf8List> {
44 static constexpr const char Name[] = "rerun.blueprint.datatypes.Utf8List";
45
46 /// Returns the arrow data type this type corresponds to.
47 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
48
49 /// Serializes an array of `rerun::blueprint:: datatypes::Utf8List` into an arrow array.
51 const blueprint::datatypes::Utf8List* instances, size_t num_instances
52 );
53
54 /// Fills an arrow array builder with an array of this type.
55 static rerun::Error fill_arrow_array_builder(
56 arrow::ListBuilder* builder, const blueprint::datatypes::Utf8List* elements,
57 size_t num_elements
58 );
59 };
60} // namespace rerun
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:91
A class for representing either a usable value, or an error.
Definition result.hpp:14
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Datatype: A list of strings of text, encoded as UTF-8.
Definition utf8list.hpp:22