Rerun C++ SDK
Loading...
Searching...
No Matches
channel_count_pair.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/datatypes/channel_count_pair.fbs".
3
4#pragma once
5
6#include "../result.hpp"
7#include "uint16.hpp"
8#include "uint64.hpp"
9
10#include <cstdint>
11#include <memory>
12
13namespace arrow {
14 class Array;
15 class DataType;
16 class StructBuilder;
17} // namespace arrow
18
19namespace rerun::datatypes {
20 /// **Datatype**: A pair representing a channel ID and its associated message count.
22 /// The channel ID.
24
25 /// The message count for this channel.
27
28 public:
29 ChannelCountPair() = default;
30 };
31} // namespace rerun::datatypes
32
33namespace rerun {
34 template <typename T>
35 struct Loggable;
36
37 /// \private
38 template <>
39 struct Loggable<datatypes::ChannelCountPair> {
40 static constexpr std::string_view ComponentType = "rerun.datatypes.ChannelCountPair";
41
42 /// Returns the arrow data type this type corresponds to.
43 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
44
45 /// Serializes an array of `rerun::datatypes::ChannelCountPair` into an arrow array.
47 const datatypes::ChannelCountPair* instances, size_t num_instances
48 );
49
50 /// Fills an arrow array builder with an array of this type.
51 static rerun::Error fill_arrow_array_builder(
52 arrow::StructBuilder* builder, const datatypes::ChannelCountPair* elements,
53 size_t num_elements
54 );
55 };
56} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:103
A class for representing either a usable value, or an error.
Definition result.hpp:14
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:82
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
Datatype: A pair representing a channel ID and its associated message count.
Definition channel_count_pair.hpp:21
rerun::datatypes::UInt64 message_count
The message count for this channel.
Definition channel_count_pair.hpp:26
rerun::datatypes::UInt16 channel_id
The channel ID.
Definition channel_count_pair.hpp:23
Datatype: A 16bit unsigned integer.
Definition uint16.hpp:24
Datatype: A 64bit unsigned integer.
Definition uint64.hpp:24