Rerun C++ SDK
Loading...
Searching...
No Matches
channel_message_counts.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/components/channel_message_counts.fbs".
3
4#pragma once
5
6#include "../collection.hpp"
7#include "../datatypes/channel_count_pair.hpp"
8#include "../result.hpp"
9
10#include <cstdint>
11#include <memory>
12#include <utility>
13
14namespace arrow {
15 class Array;
16 class DataType;
17 class ListBuilder;
18} // namespace arrow
19
20namespace rerun::components {
21 /// **Component**: A mapping of channel IDs to their respective message counts.
22 ///
23 /// Used in MCAP statistics to track how many messages were recorded per channel.
24 ///
25 /// ⚠ **This type is _unstable_ and may change significantly in a way that the data won't be backwards compatible.**
26 ///
28 /// The channel ID to message count pairs.
30
31 public:
32 ChannelMessageCounts() = default;
33
35 : counts(std::move(counts_)) {}
36
37 ChannelMessageCounts& operator=(
39 ) {
40 counts = std::move(counts_);
41 return *this;
42 }
43 };
44} // namespace rerun::components
45
46namespace rerun {
47 template <typename T>
48 struct Loggable;
49
50 /// \private
51 template <>
52 struct Loggable<components::ChannelMessageCounts> {
53 static constexpr std::string_view ComponentType = "rerun.components.ChannelMessageCounts";
54
55 /// Returns the arrow data type this type corresponds to.
56 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
57
58 /// Serializes an array of `rerun::components::ChannelMessageCounts` into an arrow array.
59 static Result<std::shared_ptr<arrow::Array>> to_arrow(
60 const components::ChannelMessageCounts* instances, size_t num_instances
61 );
62
63 /// Fills an arrow array builder with an array of this type.
64 static rerun::Error fill_arrow_array_builder(
65 arrow::ListBuilder* builder, const components::ChannelMessageCounts* elements,
66 size_t num_elements
67 );
68 };
69} // namespace rerun
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:103
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:79
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Component: A mapping of channel IDs to their respective message counts.
Definition channel_message_counts.hpp:27
rerun::Collection< rerun::datatypes::ChannelCountPair > counts
The channel ID to message count pairs.
Definition channel_message_counts.hpp:29