Rerun C++ SDK
Loading...
Searching...
No Matches
clear_is_recursive.hpp
1// DO NOT EDIT! This file was auto-generated by crates/re_types_builder/src/codegen/cpp/mod.rs
2// Based on "crates/re_types/definitions/rerun/components/clear_is_recursive.fbs".
3
4#pragma once
5
6#include "../result.hpp"
7
8#include <cstdint>
9#include <memory>
10
11namespace arrow {
12 class Array;
13 class BooleanBuilder;
14 class DataType;
15} // namespace arrow
16
17namespace rerun::components {
18 /// **Component**: Configures how a clear operation should behave - recursive or not.
20 /// If true, also clears all recursive children entities.
22
23 public:
24 ClearIsRecursive() = default;
25
26 ClearIsRecursive(bool recursive_) : recursive(recursive_) {}
27
28 ClearIsRecursive& operator=(bool recursive_) {
29 recursive = recursive_;
30 return *this;
31 }
32 };
33} // namespace rerun::components
34
35namespace rerun {
36 template <typename T>
37 struct Loggable;
38
39 /// \private
40 template <>
41 struct Loggable<components::ClearIsRecursive> {
42 static constexpr const char Name[] = "rerun.components.ClearIsRecursive";
43
44 /// Returns the arrow data type this type corresponds to.
45 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
46
47 /// Fills an arrow array builder with an array of this type.
48 static rerun::Error fill_arrow_array_builder(
49 arrow::BooleanBuilder* builder, const components::ClearIsRecursive* elements,
50 size_t num_elements
51 );
52
53 /// Serializes an array of `rerun::components::ClearIsRecursive` into an arrow array.
54 static Result<std::shared_ptr<arrow::Array>> to_arrow(
55 const components::ClearIsRecursive* instances, size_t num_instances
56 );
57 };
58} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:69
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Component: Configures how a clear operation should behave - recursive or not.
Definition clear_is_recursive.hpp:19
bool recursive
If true, also clears all recursive children entities.
Definition clear_is_recursive.hpp:21