5#include <unordered_map>
7#include "component_descriptor.hpp"
8#include "component_type.hpp"
30 const std::shared_ptr<arrow::DataType>& arrow_datatype
34 std::shared_mutex mutex_;
35 std::unordered_map<ComponentDescriptorHash, ComponentTypeHandle> comp_types_per_descr_;
Thread-safe registry for component types.
Definition component_type_registry.hpp:21
Result< ComponentTypeHandle > get_or_register(const ComponentDescriptor &descriptor, const std::shared_ptr< arrow::DataType > &arrow_datatype)
Returns the handle to the registered component type for the given descriptor.
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:23
A ComponentDescriptor fully describes the semantics of a column of data.
Definition component_descriptor.hpp:16