Rerun C++ SDK
Loading...
Searching...
No Matches
dataframe_query.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/dataframe_query.fbs".
3
4#pragma once
5
6#include "../../blueprint/components/apply_latest_at.hpp"
7#include "../../blueprint/components/filter_by_range.hpp"
8#include "../../blueprint/components/filter_is_not_null.hpp"
9#include "../../blueprint/components/selected_columns.hpp"
10#include "../../blueprint/components/timeline_name.hpp"
11#include "../../collection.hpp"
12#include "../../compiler_utils.hpp"
13#include "../../component_batch.hpp"
14#include "../../indicator_component.hpp"
15#include "../../result.hpp"
16
17#include <cstdint>
18#include <optional>
19#include <utility>
20#include <vector>
21
22namespace rerun::blueprint::archetypes {
23 /// **Archetype**: The query for the dataframe view.
25 /// The timeline for this query.
26 ///
27 /// If unset, the timeline currently active on the time panel is used.
28 std::optional<rerun::blueprint::components::TimelineName> timeline;
29
30 /// If provided, only rows whose timestamp is within this range will be shown.
31 ///
32 /// Note: will be unset as soon as `timeline` is changed.
33 std::optional<rerun::blueprint::components::FilterByRange> filter_by_range;
34
35 /// If provided, only show rows which contains a logged event for the specified component.
36 std::optional<rerun::blueprint::components::FilterIsNotNull> filter_is_not_null;
37
38 /// Should empty cells be filled with latest-at queries?
39 std::optional<rerun::blueprint::components::ApplyLatestAt> apply_latest_at;
40
41 /// Selected columns. If unset, all columns are selected.
42 std::optional<rerun::blueprint::components::SelectedColumns> select;
43
44 public:
45 static constexpr const char IndicatorComponentName[] =
46 "rerun.blueprint.components.DataframeQueryIndicator";
47
48 /// Indicator component, used to identify the archetype when converting to a list of components.
50
51 public:
52 DataframeQuery() = default;
53 DataframeQuery(DataframeQuery&& other) = default;
54
55 /// The timeline for this query.
56 ///
57 /// If unset, the timeline currently active on the time panel is used.
59 timeline = std::move(_timeline);
60 // See: https://github.com/rerun-io/rerun/issues/4027
61 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(return std::move(*this);)
62 }
63
64 /// If provided, only rows whose timestamp is within this range will be shown.
65 ///
66 /// Note: will be unset as soon as `timeline` is changed.
69 ) && {
70 filter_by_range = std::move(_filter_by_range);
71 // See: https://github.com/rerun-io/rerun/issues/4027
72 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(return std::move(*this);)
73 }
74
75 /// If provided, only show rows which contains a logged event for the specified component.
78 ) && {
79 filter_is_not_null = std::move(_filter_is_not_null);
80 // See: https://github.com/rerun-io/rerun/issues/4027
81 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(return std::move(*this);)
82 }
83
84 /// Should empty cells be filled with latest-at queries?
87 ) && {
88 apply_latest_at = std::move(_apply_latest_at);
89 // See: https://github.com/rerun-io/rerun/issues/4027
90 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(return std::move(*this);)
91 }
92
93 /// Selected columns. If unset, all columns are selected.
95 select = std::move(_select);
96 // See: https://github.com/rerun-io/rerun/issues/4027
97 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(return std::move(*this);)
98 }
99 };
100
101} // namespace rerun::blueprint::archetypes
102
103namespace rerun {
104 /// \private
105 template <typename T>
106 struct AsComponents;
107
108 /// \private
109 template <>
110 struct AsComponents<blueprint::archetypes::DataframeQuery> {
111 /// Serialize all set component batches.
112 static Result<std::vector<ComponentBatch>> serialize(
114 );
115 };
116} // 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: The query for the dataframe view.
Definition dataframe_query.hpp:24
DataframeQuery with_timeline(rerun::blueprint::components::TimelineName _timeline) &&
The timeline for this query.
Definition dataframe_query.hpp:58
std::optional< rerun::blueprint::components::SelectedColumns > select
Selected columns. If unset, all columns are selected.
Definition dataframe_query.hpp:42
DataframeQuery with_select(rerun::blueprint::components::SelectedColumns _select) &&
Selected columns. If unset, all columns are selected.
Definition dataframe_query.hpp:94
std::optional< rerun::blueprint::components::FilterByRange > filter_by_range
If provided, only rows whose timestamp is within this range will be shown.
Definition dataframe_query.hpp:33
std::optional< rerun::blueprint::components::ApplyLatestAt > apply_latest_at
Should empty cells be filled with latest-at queries?
Definition dataframe_query.hpp:39
DataframeQuery with_apply_latest_at(rerun::blueprint::components::ApplyLatestAt _apply_latest_at) &&
Should empty cells be filled with latest-at queries?
Definition dataframe_query.hpp:85
std::optional< rerun::blueprint::components::TimelineName > timeline
The timeline for this query.
Definition dataframe_query.hpp:28
DataframeQuery with_filter_by_range(rerun::blueprint::components::FilterByRange _filter_by_range) &&
If provided, only rows whose timestamp is within this range will be shown.
Definition dataframe_query.hpp:67
std::optional< rerun::blueprint::components::FilterIsNotNull > filter_is_not_null
If provided, only show rows which contains a logged event for the specified component.
Definition dataframe_query.hpp:36
DataframeQuery with_filter_is_not_null(rerun::blueprint::components::FilterIsNotNull _filter_is_not_null) &&
If provided, only show rows which contains a logged event for the specified component.
Definition dataframe_query.hpp:76
Component: Whether empty cells in a dataframe should be filled with a latest-at query.
Definition apply_latest_at.hpp:14
Component: Configuration for a filter-by-range feature of the dataframe view.
Definition filter_by_range.hpp:14
Component: Configuration for the filter is not null feature of the dataframe view.
Definition filter_is_not_null.hpp:15
Component: Describe a component column to be selected in the dataframe view.
Definition selected_columns.hpp:15
Component: A timeline identified by its name.
Definition timeline_name.hpp:16
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:30