Rerun C++ SDK
Loading...
Searching...
No Matches
filter_by_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/filter_by_range.fbs".
3
4#pragma once
5
6#include "../../blueprint/datatypes/filter_by_range.hpp"
7#include "../../result.hpp"
8
9#include <cstdint>
10#include <memory>
11
12namespace rerun::blueprint::components {
13 /// **Component**: Configuration for a filter-by-range feature of the dataframe view.
14 ///
15 /// ⚠ **This type is _unstable_ and may change significantly in a way that the data won't be backwards compatible.**
16 ///
19
20 public:
21 FilterByRange() = default;
22
24
26 range = range_;
27 return *this;
28 }
29
30 /// Cast to the underlying FilterByRange datatype
32 return range;
33 }
34 };
35} // namespace rerun::blueprint::components
36
37namespace rerun {
38 static_assert(
41 );
42
43 /// \private
44 template <>
45 struct Loggable<blueprint::components::FilterByRange> {
46 static constexpr std::string_view ComponentType =
47 "rerun.blueprint.components.FilterByRange";
48
49 /// Returns the arrow data type this type corresponds to.
50 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
52 }
53
54 /// Serializes an array of `rerun::blueprint:: components::FilterByRange` into an arrow array.
55 static Result<std::shared_ptr<arrow::Array>> to_arrow(
56 const blueprint::components::FilterByRange* instances, size_t num_instances
57 ) {
58 if (num_instances == 0) {
59 return Loggable<rerun::blueprint::datatypes::FilterByRange>::to_arrow(nullptr, 0);
60 } else if (instances == nullptr) {
61 return rerun::Error(
62 ErrorCode::UnexpectedNullArgument,
63 "Passed array instances is null when num_elements> 0."
64 );
65 } else {
66 return Loggable<rerun::blueprint::datatypes::FilterByRange>::to_arrow(
67 &instances->range,
68 num_instances
69 );
70 }
71 }
72 };
73} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:99
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
Component: Configuration for a filter-by-range feature of the dataframe view.
Definition filter_by_range.hpp:17
Datatype: Configuration for the filter-by-range feature of the dataframe view.
Definition filter_by_range.hpp:23