|
Rerun C++ SDK
|
Thread-safe registry for component types. More...
#include <rerun/component_type_registry.hpp>
Public Member Functions | |
| 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. | |
Thread-safe registry for component types.
Ensures that each component descriptor is only registered once.
| Result< ComponentTypeHandle > rerun::ComponentTypeRegistry::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.
Registers the component type when first encountered.