Rerun C++ SDK
Loading...
Searching...
No Matches
graph_type.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/components/graph_type.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 UInt8Type;
19 using UInt8Builder = NumericBuilder<UInt8Type>;
20} // namespace arrow
21
22namespace rerun::components {
23 /// **Component**: Specifies if a graph has directed or undirected edges.
24 enum class GraphType : uint8_t {
25
26 /// The graph has undirected edges.
27 Undirected = 1,
28
29 /// The graph has directed edges.
30 Directed = 2,
31 };
32} // namespace rerun::components
33
34namespace rerun {
35 template <typename T>
36 struct Loggable;
37
38 /// \private
39 template <>
40 struct Loggable<components::GraphType> {
41 static constexpr std::string_view ComponentType = "rerun.components.GraphType";
42
43 /// Returns the arrow data type this type corresponds to.
44 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
45
46 /// Serializes an array of `rerun::components::GraphType` into an arrow array.
47 static Result<std::shared_ptr<arrow::Array>> to_arrow(
48 const components::GraphType* instances, size_t num_instances
49 );
50
51 /// Fills an arrow array builder with an array of this type.
52 static rerun::Error fill_arrow_array_builder(
53 arrow::UInt8Builder* builder, const components::GraphType* elements, size_t num_elements
54 );
55 };
56} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:99
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:79
GraphType
Component: Specifies if a graph has directed or undirected edges.
Definition graph_type.hpp:24
@ Undirected
The graph has undirected edges.
@ Directed
The graph has directed edges.
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23