Rerun C++ SDK
Loading...
Searching...
No Matches
included_content.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/components/included_content.fbs".
3
4
#pragma once
5
6
#include "../../datatypes/entity_path.hpp"
7
#include "../../result.hpp"
8
9
#include <cstdint>
10
#include <memory>
11
#include <string>
12
#include <utility>
13
14
namespace
rerun::blueprint::components {
15
/// **Component**: All the contents in the container.
16
struct
IncludedContent
{
17
/// List of the contents by EntityPath.
18
///
19
/// This must be a path in the blueprint store.
20
/// Typically structure as `<blueprint_registry>/<uuid>`.
21
rerun::datatypes::EntityPath
contents
;
22
23
public
:
24
IncludedContent
() =
default
;
25
26
IncludedContent
(
rerun::datatypes::EntityPath
contents_) :
contents
(std::move(contents_)) {}
27
28
IncludedContent
& operator=(
rerun::datatypes::EntityPath
contents_) {
29
contents
= std::move(contents_);
30
return
*
this
;
31
}
32
33
IncludedContent(std::string path_) :
contents
(std::move(path_)) {}
34
35
IncludedContent& operator=(std::string path_) {
36
contents
= std::move(path_);
37
return
*
this
;
38
}
39
40
/// Cast to the underlying EntityPath datatype
41
operator
rerun::datatypes::EntityPath
()
const
{
42
return
contents
;
43
}
44
};
45
}
// namespace rerun::blueprint::components
46
47
namespace
rerun
{
48
static_assert
(
49
sizeof
(
rerun::datatypes::EntityPath
) ==
sizeof
(
blueprint::components::IncludedContent
)
50
);
51
52
/// \private
53
template
<>
54
struct
Loggable
<blueprint::components::IncludedContent> {
55
static
constexpr
const
char
Name[] =
"rerun.blueprint.components.IncludedContent"
;
56
57
/// Returns the arrow data type this type corresponds to.
58
static
const
std::shared_ptr<arrow::DataType>& arrow_datatype() {
59
return
Loggable<rerun::datatypes::EntityPath>::arrow_datatype
();
60
}
61
62
/// Serializes an array of `rerun::blueprint:: components::IncludedContent` into an arrow array.
63
static
Result<std::shared_ptr<arrow::Array>> to_arrow(
64
const
blueprint::components::IncludedContent* instances,
size_t
num_instances
65
) {
66
return
Loggable<rerun::datatypes::EntityPath>::to_arrow(
67
&instances->contents,
68
num_instances
69
);
70
}
71
};
72
}
// namespace rerun
rerun
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition
rerun.hpp:22
rerun::Loggable
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition
loggable.hpp:11
rerun::blueprint::components::IncludedContent
Component: All the contents in the container.
Definition
included_content.hpp:16
rerun::blueprint::components::IncludedContent::contents
rerun::datatypes::EntityPath contents
List of the contents by EntityPath.
Definition
included_content.hpp:21
rerun::datatypes::EntityPath
Datatype: A path to an entity in the ChunkStore.
Definition
entity_path.hpp:21
rerun
blueprint
components
included_content.hpp
Generated by
1.9.7