Rerun C++ SDK
Loading...
Searching...
No Matches
rerun::ComponentTypeRegistry Class Reference

Thread-safe registry for component types. More...

#include <rerun/component_type_registry.hpp>

Public Member Functions

Result< ComponentTypeHandleget_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.
 

Detailed Description

Thread-safe registry for component types.

Ensures that each component descriptor is only registered once.

Member Function Documentation

◆ get_or_register()

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.


The documentation for this class was generated from the following file: