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 "../component_descriptor.hpp"
7#include "../result.hpp"
8
9#include <cstdint>
10#include <memory>
11
12namespace arrow {
13 /// \private
14 template <typename T>
15 class NumericBuilder;
16
17 class Array;
18 class DataType;
19 class UInt8Type;
20 using UInt8Builder = NumericBuilder<UInt8Type>;
21} // namespace arrow
22
23namespace rerun::components {
24 /// **Component**: Specifies if a graph has directed or undirected edges.
25 enum class GraphType : uint8_t {
26
27 /// The graph has undirected edges.
28 Undirected = 1,
29
30 /// The graph has directed edges.
31 Directed = 2,
32 };
33} // namespace rerun::components
34
35namespace rerun {
36 template <typename T>
37 struct Loggable;
38
39 /// \private
40 template <>
41 struct Loggable<components::GraphType> {
42 static constexpr ComponentDescriptor Descriptor = "rerun.components.GraphType";
43
44 /// Returns the arrow data type this type corresponds to.
45 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
46
47 /// Serializes an array of `rerun::components::GraphType` into an arrow array.
48 static Result<std::shared_ptr<arrow::Array>> to_arrow(
49 const components::GraphType* instances, size_t num_instances
50 );
51
52 /// Fills an arrow array builder with an array of this type.
53 static rerun::Error fill_arrow_array_builder(
54 arrow::UInt8Builder* builder, const components::GraphType* elements, size_t num_elements
55 );
56 };
57} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:80
GraphType
Component: Specifies if a graph has directed or undirected edges.
Definition graph_type.hpp:25
@ 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