Rerun C++ SDK
Loading...
Searching...
No Matches
time_range_table_order.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/archetypes/time_range_table_order.fbs".
3
4#pragma once
5
6#include "../../blueprint/components/sort_key.hpp"
7#include "../../blueprint/components/sort_order.hpp"
8#include "../../collection.hpp"
9#include "../../compiler_utils.hpp"
10#include "../../component_batch.hpp"
11#include "../../indicator_component.hpp"
12#include "../../result.hpp"
13
14#include <cstdint>
15#include <optional>
16#include <utility>
17#include <vector>
18
19namespace rerun::blueprint::archetypes {
20 /// **Archetype**: Ordering of the time range table of the dataframe view
22 /// The primary sort key
23 std::optional<rerun::blueprint::components::SortKey> sort_key;
24
25 /// The sort order
26 std::optional<rerun::blueprint::components::SortOrder> sort_order;
27
28 public:
29 static constexpr const char IndicatorComponentName[] =
30 "rerun.blueprint.components.TimeRangeTableOrderIndicator";
31
32 /// Indicator component, used to identify the archetype when converting to a list of components.
34
35 public:
36 TimeRangeTableOrder() = default;
38
39 /// The primary sort key
40 TimeRangeTableOrder with_sort_key(rerun::blueprint::components::SortKey _sort_key) && {
41 sort_key = std::move(_sort_key);
42 // See: https://github.com/rerun-io/rerun/issues/4027
43 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(return std::move(*this);)
44 }
45
46 /// The sort order
47 TimeRangeTableOrder with_sort_order(rerun::blueprint::components::SortOrder _sort_order
48 ) && {
49 sort_order = std::move(_sort_order);
50 // See: https://github.com/rerun-io/rerun/issues/4027
51 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(return std::move(*this);)
52 }
53 };
54
55} // namespace rerun::blueprint::archetypes
56
57namespace rerun {
58 /// \private
59 template <typename T>
60 struct AsComponents;
61
62 /// \private
63 template <>
64 struct AsComponents<blueprint::archetypes::TimeRangeTableOrder> {
65 /// Serialize all set component batches.
66 static Result<std::vector<ComponentBatch>> serialize(
68 );
69 };
70} // namespace rerun
A class for representing either a usable value, or an error.
Definition result.hpp:14
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
Archetype: Ordering of the time range table of the dataframe view
Definition time_range_table_order.hpp:21
TimeRangeTableOrder with_sort_key(rerun::blueprint::components::SortKey _sort_key) &&
The primary sort key.
Definition time_range_table_order.hpp:40
std::optional< rerun::blueprint::components::SortOrder > sort_order
The sort order.
Definition time_range_table_order.hpp:26
std::optional< rerun::blueprint::components::SortKey > sort_key
The primary sort key.
Definition time_range_table_order.hpp:23
TimeRangeTableOrder with_sort_order(rerun::blueprint::components::SortOrder _sort_order) &&
The sort order.
Definition time_range_table_order.hpp:47
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:30