Rerun C++ SDK
Loading...
Searching...
No Matches
sort_by.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/build/re_type_definitions/rerun/blueprint/encodings/sort_by.def.rs".
3
4#pragma once
5
6#include "../../encodings/utf8.hpp"
7#include "../../result.hpp"
8#include "sort_direction.hpp"
9
10#include <cstdint>
11#include <memory>
12#include <optional>
13
14namespace arrow {
15 class Array;
16 class DataType;
17 class StructBuilder;
18} // namespace arrow
19
20namespace rerun::blueprint::encodings {
21 /// **Encoding**: The column and direction a table's rows are sorted by.
22 ///
23 /// ⚠ **This type is _unstable_ and may change significantly in a way that the data won't be backwards compatible.**
24 ///
25 struct SortBy {
26 /// The name of the column the rows are sorted by.
27 ///
28 /// Same semantics as `components::ColumnName`.
30
31 /// The direction the rows are sorted in.
32 ///
33 /// If not set, the viewer sorts ascending.
34 std::optional<rerun::blueprint::encodings::SortDirection> direction;
35
36 public:
37 SortBy() = default;
38 };
39} // namespace rerun::blueprint::encodings
40
41namespace rerun {
42 template <typename T>
43 struct Loggable;
44
45 /// \private
46 template <>
47 struct Loggable<blueprint::encodings::SortBy> {
48 static constexpr std::string_view ComponentType = "rerun.blueprint.encodings.SortBy";
49
50 /// Returns the arrow data type this type corresponds to.
51 static const std::shared_ptr<arrow::DataType>& arrow_data_type();
52
53 /// Serializes an array of `rerun::blueprint:: encodings::SortBy` into an arrow array.
55 const blueprint::encodings::SortBy* instances, size_t num_instances
56 );
57
58 /// Fills an arrow array builder with an array of this type.
59 static rerun::Error fill_arrow_array_builder(
60 arrow::StructBuilder* builder, const blueprint::encodings::SortBy* elements,
61 size_t num_elements
62 );
63 };
64} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:104
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:26
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
Encoding: The column and direction a table's rows are sorted by.
Definition sort_by.hpp:25
rerun::encodings::Utf8 column
The name of the column the rows are sorted by.
Definition sort_by.hpp:29
std::optional< rerun::blueprint::encodings::SortDirection > direction
The direction the rows are sorted in.
Definition sort_by.hpp:34
Encoding: A string of text, encoded as UTF-8.
Definition utf8.hpp:21