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 "../../component_descriptor.hpp"
8#include "../../result.hpp"
9
10#include <cstdint>
11#include <memory>
12#include <string>
13#include <utility>
14
15namespace arrow {
16 class Array;
17 class DataType;
18 class ListBuilder;
19} // namespace arrow
20
21namespace rerun::blueprint::datatypes {
22 /// **Datatype**: A list of strings of text, encoded as UTF-8.
23 struct Utf8List {
25
26 public:
27 Utf8List() = default;
28
29 Utf8List(rerun::Collection<std::string> value_) : value(std::move(value_)) {}
30
31 Utf8List& operator=(rerun::Collection<std::string> value_) {
32 value = std::move(value_);
33 return *this;
34 }
35 };
36} // namespace rerun::blueprint::datatypes
37
38namespace rerun {
39 template <typename T>
40 struct Loggable;
41
42 /// \private
43 template <>
44 struct Loggable<blueprint::datatypes::Utf8List> {
45 static constexpr ComponentDescriptor Descriptor = "rerun.blueprint.datatypes.Utf8List";
46
47 /// Returns the arrow data type this type corresponds to.
48 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
49
50 /// Serializes an array of `rerun::blueprint:: datatypes::Utf8List` into an arrow array.
52 const blueprint::datatypes::Utf8List* instances, size_t num_instances
53 );
54
55 /// Fills an arrow array builder with an array of this type.
56 static rerun::Error fill_arrow_array_builder(
57 arrow::ListBuilder* builder, const blueprint::datatypes::Utf8List* elements,
58 size_t num_elements
59 );
60 };
61} // 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:95
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: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 list of strings of text, encoded as UTF-8.
Definition utf8list.hpp:23