80 lines
2.9 KiB
C++
Generated
80 lines
2.9 KiB
C++
Generated
// DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/cpp/mod.rs
|
|
// Based on "crates/store/re_sdk_types/definitions/rerun/testing/components/fuzzy.fbs".
|
|
|
|
#pragma once
|
|
|
|
#include "../datatypes/affix_fuzzer4.hpp"
|
|
#include "../datatypes/affix_fuzzer5.hpp"
|
|
|
|
#include <cstdint>
|
|
#include <memory>
|
|
#include <optional>
|
|
#include <rerun/result.hpp>
|
|
#include <utility>
|
|
|
|
namespace rerun::components {
|
|
struct AffixFuzzer19 {
|
|
rerun::datatypes::AffixFuzzer5 just_a_table_nothing_shady;
|
|
|
|
public:
|
|
AffixFuzzer19() = default;
|
|
|
|
AffixFuzzer19(rerun::datatypes::AffixFuzzer5 just_a_table_nothing_shady_)
|
|
: just_a_table_nothing_shady(std::move(just_a_table_nothing_shady_)) {}
|
|
|
|
AffixFuzzer19& operator=(rerun::datatypes::AffixFuzzer5 just_a_table_nothing_shady_) {
|
|
just_a_table_nothing_shady = std::move(just_a_table_nothing_shady_);
|
|
return *this;
|
|
}
|
|
|
|
AffixFuzzer19(std::optional<rerun::datatypes::AffixFuzzer4> single_optional_union_)
|
|
: just_a_table_nothing_shady(std::move(single_optional_union_)) {}
|
|
|
|
AffixFuzzer19& operator=(
|
|
std::optional<rerun::datatypes::AffixFuzzer4> single_optional_union_
|
|
) {
|
|
just_a_table_nothing_shady = std::move(single_optional_union_);
|
|
return *this;
|
|
}
|
|
|
|
/// Cast to the underlying AffixFuzzer5 datatype
|
|
operator rerun::datatypes::AffixFuzzer5() const {
|
|
return just_a_table_nothing_shady;
|
|
}
|
|
};
|
|
} // namespace rerun::components
|
|
|
|
namespace rerun {
|
|
static_assert(sizeof(rerun::datatypes::AffixFuzzer5) == sizeof(components::AffixFuzzer19));
|
|
|
|
/// \private
|
|
template <>
|
|
struct Loggable<components::AffixFuzzer19> {
|
|
static constexpr std::string_view ComponentType = "rerun.testing.components.AffixFuzzer19";
|
|
|
|
/// Returns the arrow data type this type corresponds to.
|
|
static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
|
|
return Loggable<rerun::datatypes::AffixFuzzer5>::arrow_datatype();
|
|
}
|
|
|
|
/// Serializes an array of `rerun::components::AffixFuzzer19` into an arrow array.
|
|
static Result<std::shared_ptr<arrow::Array>> to_arrow(
|
|
const components::AffixFuzzer19* instances, size_t num_instances
|
|
) {
|
|
if (num_instances == 0) {
|
|
return Loggable<rerun::datatypes::AffixFuzzer5>::to_arrow(nullptr, 0);
|
|
} else if (instances == nullptr) {
|
|
return rerun::Error(
|
|
ErrorCode::UnexpectedNullArgument,
|
|
"Passed array instances is null when num_elements> 0."
|
|
);
|
|
} else {
|
|
return Loggable<rerun::datatypes::AffixFuzzer5>::to_arrow(
|
|
&instances->just_a_table_nothing_shady,
|
|
num_instances
|
|
);
|
|
}
|
|
}
|
|
};
|
|
} // namespace rerun
|