Rerun C++ SDK
Loading...
Searching...
No Matches
absolute_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/datatypes/time_range.fbs".
3
4#pragma once
5
6#include "../result.hpp"
7#include "time_int.hpp"
8
9#include <cstdint>
10#include <memory>
11
12namespace arrow {
13 class Array;
14 class DataType;
15 class StructBuilder;
16} // namespace arrow
17
18namespace rerun::datatypes {
19 /// **Datatype**: Two `datatypes::TimeInt` describing a range of time.
21 /// Start of the range.
23
24 /// End of the range (inclusive).
26
27 public:
28 AbsoluteTimeRange() = default;
29 };
30} // namespace rerun::datatypes
31
32namespace rerun {
33 template <typename T>
34 struct Loggable;
35
36 /// \private
37 template <>
38 struct Loggable<datatypes::AbsoluteTimeRange> {
39 static constexpr std::string_view ComponentType = "rerun.datatypes.AbsoluteTimeRange";
40
41 /// Returns the arrow data type this type corresponds to.
42 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
43
44 /// Serializes an array of `rerun::datatypes::AbsoluteTimeRange` into an arrow array.
46 const datatypes::AbsoluteTimeRange* instances, size_t num_instances
47 );
48
49 /// Fills an arrow array builder with an array of this type.
50 static rerun::Error fill_arrow_array_builder(
51 arrow::StructBuilder* builder, const datatypes::AbsoluteTimeRange* elements,
52 size_t num_elements
53 );
54 };
55} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:103
A class for representing either a usable value, or an error.
Definition result.hpp:14
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:82
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
A type of component that can be registered.
Definition component_type.hpp:19
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Datatype: Two datatypes::TimeInt describing a range of time.
Definition absolute_time_range.hpp:20
rerun::datatypes::TimeInt max
End of the range (inclusive).
Definition absolute_time_range.hpp:25
rerun::datatypes::TimeInt min
Start of the range.
Definition absolute_time_range.hpp:22
Datatype: A 64-bit number describing either nanoseconds OR sequence numbers.
Definition time_int.hpp:24