37 std::optional<std::string_view> archetype_name_,
38 std::optional<std::string_view> archetype_field_name_, std::string_view component_name_
45 const char* archetype_name_,
const char* archetype_field_name_,
46 const char* component_name_
52 constexpr ComponentDescriptor(std::string_view component_name_)
55 constexpr ComponentDescriptor(
const char* component_name_)
59 std::size_t archetype_name_h =
60 std::hash<std::optional<std::string_view>>{}(this->
archetype_name);
61 std::size_t component_name_h = std::hash<std::string_view>{}(this->
component_name);
62 std::size_t archetype_field_name_h =
64 return archetype_name_h ^ component_name_h ^ archetype_field_name_h;
84 std::optional<std::string_view> archetype_field_name_
101 if (this->archetype_field_name.has_value()) {
111 if (this->archetype_field_name.has_value()) {
121 std::optional<std::string_view> archetype_field_name_
123 if (this->archetype_field_name.has_value()) {
133 if (this->archetype_field_name.has_value()) {
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
uint64_t ComponentDescriptorHash
See ComponentDescriptor::hashed.
Definition component_descriptor.hpp:8
A ComponentDescriptor fully describes the semantics of a column of data.
Definition component_descriptor.hpp:13
ComponentDescriptor with_archetype_field_name(const char *archetype_field_name_) const
Unconditionally sets archetype_field_name to the given one.
Definition component_descriptor.hpp:92
ComponentDescriptor or_with_archetype_field_name(std::optional< std::string_view > archetype_field_name_) const
Sets archetype_field_name to the given one iff it's not already set.
Definition component_descriptor.hpp:120
std::optional< std::string_view > archetype_field_name
Optional name of the field within Archetype associated with this data.
Definition component_descriptor.hpp:26
std::optional< std::string_view > archetype_name
Optional name of the Archetype associated with this data.
Definition component_descriptor.hpp:19
ComponentDescriptor with_archetype_field_name(std::optional< std::string_view > archetype_field_name_) const
Unconditionally sets archetype_field_name to the given one.
Definition component_descriptor.hpp:83
std::string_view component_name
Semantic name associated with this data.
Definition component_descriptor.hpp:34
ComponentDescriptor with_archetype_name(std::optional< std::string_view > archetype_name_) const
Unconditionally sets archetype_name to the given one.
Definition component_descriptor.hpp:68
ComponentDescriptor or_with_archetype_field_name(const char *archetype_field_name_) const
Sets archetype_field_name to the given one iff it's not already set.
Definition component_descriptor.hpp:132
ComponentDescriptor or_with_archetype_name(const char *archetype_name_) const
Sets archetype_name to the given one iff it's not already set.
Definition component_descriptor.hpp:110
ComponentDescriptor or_with_archetype_name(std::optional< std::string_view > archetype_name_) const
Sets archetype_name to the given one iff it's not already set.
Definition component_descriptor.hpp:99
ComponentDescriptor with_archetype_name(const char *archetype_name_) const
Unconditionally sets archetype_name to the given one.
Definition component_descriptor.hpp:76