Rerun C++ SDK
Loading...
Searching...
No Matches
query_expressions.hpp
1// DO NOT EDIT! This file was auto-generated by crates/re_types_builder/src/codegen/cpp/mod.rs
2// Based on "crates/re_types/definitions/rerun/blueprint/query_expressions.fbs".
3
4#pragma once
5
6#include "../collection.hpp"
7#include "../result.hpp"
8
9#include <cstdint>
10#include <memory>
11#include <string>
12#include <utility>
13
14namespace arrow {
15 class Array;
16 class DataType;
17 class StructBuilder;
18} // namespace arrow
19
20namespace rerun::blueprint {
21 /// **Blueprint**: A set of expressions used for a `DataQueryBlueprint`.
22 ///
23 /// Unstable. Used for the ongoing blueprint experimentations.
25 /// A set of strings that can be parsed as `EntityPathExpression`s.
27
28 public:
29 QueryExpressions() = default;
30
32 : expressions(std::move(expressions_)) {}
33
34 QueryExpressions& operator=(rerun::Collection<std::string> expressions_) {
35 expressions = std::move(expressions_);
36 return *this;
37 }
38 };
39} // namespace rerun::blueprint
40
41namespace rerun {
42 template <typename T>
43 struct Loggable;
44
45 /// \private
46 template <>
47 struct Loggable<blueprint::QueryExpressions> {
48 static constexpr const char Name[] = "rerun.blueprint.QueryExpressions";
49
50 /// Returns the arrow data type this type corresponds to.
51 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
52
53 /// Fills an arrow array builder with an array of this type.
54 static rerun::Error fill_arrow_array_builder(
55 arrow::StructBuilder* builder, const blueprint::QueryExpressions* elements,
56 size_t num_elements
57 );
58
59 /// Serializes an array of `rerun::blueprint::QueryExpressions` into an arrow array.
60 static Result<std::shared_ptr<arrow::Array>> to_arrow(
61 const blueprint::QueryExpressions* instances, size_t num_instances
62 );
63 };
64} // namespace rerun
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:47
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
All blueprint types. This is still experimental and subject to change!
Definition rerun.hpp:75
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Blueprint: A set of expressions used for a DataQueryBlueprint.
Definition query_expressions.hpp:24
rerun::Collection< std::string > expressions
A set of strings that can be parsed as EntityPathExpressions.
Definition query_expressions.hpp:26