Rerun C++ SDK
Loading...
Searching...
No Matches
visible_time_range.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/visible_time_range.fbs".
3
4#pragma once
5
6#include "../../datatypes/visible_time_range.hpp"
7#include "../../result.hpp"
8
9#include <cstdint>
10#include <memory>
11#include <utility>
12
13namespace rerun::blueprint::components {
14 /// **Component**: The range of values on a given timeline that will be included in a view's query.
15 ///
16 /// Refer to `VisibleTimeRanges` archetype for more information.
19
20 public:
21 VisibleTimeRange() = default;
22
23 VisibleTimeRange(rerun::datatypes::VisibleTimeRange value_) : value(std::move(value_)) {}
24
26 value = std::move(value_);
27 return *this;
28 }
29
30 /// Cast to the underlying VisibleTimeRange datatype
32 return value;
33 }
34 };
35} // namespace rerun::blueprint::components
36
37namespace rerun {
38 static_assert(
41 );
42
43 /// \private
44 template <>
45 struct Loggable<blueprint::components::VisibleTimeRange> {
46 static constexpr const char Name[] = "rerun.blueprint.components.VisibleTimeRange";
47
48 /// Returns the arrow data type this type corresponds to.
49 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
51 }
52
53 /// Serializes an array of `rerun::blueprint:: components::VisibleTimeRange` into an arrow array.
54 static Result<std::shared_ptr<arrow::Array>> to_arrow(
55 const blueprint::components::VisibleTimeRange* instances, size_t num_instances
56 ) {
57 if (num_instances == 0) {
58 return Loggable<rerun::datatypes::VisibleTimeRange>::to_arrow(nullptr, 0);
59 } else if (instances == nullptr) {
60 return rerun::Error(
61 ErrorCode::UnexpectedNullArgument,
62 "Passed array instances is null when num_elements> 0."
63 );
64 } else {
65 return Loggable<rerun::datatypes::VisibleTimeRange>::to_arrow(
66 &instances->value,
67 num_instances
68 );
69 }
70 }
71 };
72} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Component: The range of values on a given timeline that will be included in a view's query.
Definition visible_time_range.hpp:17
Datatype: Visible time range bounds for a specific timeline.
Definition visible_time_range.hpp:21