Skip to main content

Neuralyzer::TypeTraits

Neuralyzer::TypeTraits

Classes

Name
struct Neuralyzer::TypeTraits::ContainerFor
Maps element types to their default container types.
struct Neuralyzer::TypeTraits::ContainerFor< Mask2D >
struct Neuralyzer::TypeTraits::ContainerFor< Line2D >
struct Neuralyzer::TypeTraits::ContainerFor< Point2D< float > >
struct Neuralyzer::TypeTraits::ContainerFor< float >
struct Neuralyzer::TypeTraits::ContainerFor< ClockTicks >
ClockTicks maps to DigitalEventSeries (entity ids via DataTraits::has_entity_ids).
struct Neuralyzer::TypeTraits::ElementFor
Maps container types to their element types.
struct Neuralyzer::TypeTraits::ElementFor< Container >
struct Neuralyzer::TypeTraits::ElementForSafe
SFINAE-safe ElementFor; yields void for unsupported containers.
struct Neuralyzer::TypeTraits::ElementForSafe< Container, std::void_t< typename ElementFor< Container >::type > >
class Neuralyzer::TypeTraits::TypeIndexMapper
Runtime mapping between element/container types, strings, and raggedness.
struct Neuralyzer::TypeTraits::DataTypeTraitsBase
Base trait structure for data container types.
struct Neuralyzer::TypeTraits::TraitsOf
Helper to access traits (with SFINAE for types without traits).

Types

Name
template <typename Element >
using typename ContainerFor< Element >::type
ContainerFor_t
template <typename Element >
using typename ContainerFor< Element >::container_ptr
ContainerPtr_t
template <typename Container >
using typename ElementFor< Container >::type
ElementFor_t
template <typename Container >
using typename ElementForSafe< Container >::type
ElementForSafe_t
template <typename T >
using typename TraitsOf< T >::type
TraitsOf_t
template <typename T >
using typename TraitsOf_t< T >::element_type
element_type_t

Functions

Name
std::type_index dmDataTypeToContainerTypeIndex(DM_DataType type)
Map DM_DataType to the corresponding container std::type_index.
std::optional< DM_DataType > containerTypeIndexToDmDataType(std::type_index container_type)
Reverse map container type_index to DM_DataType when unambiguous.

Attributes

Name
bool has_element_type_v
True when the container supports element-level transform pipelines (has elements()).
bool is_ragged_v
bool is_temporal_v
bool has_entity_ids_v
bool is_spatial_v

Types Documentation

using ContainerFor_t

template <typename Element >
using Neuralyzer::TypeTraits::ContainerFor_t =  typename ContainerFor<Element>::type;

using ContainerPtr_t

template <typename Element >
using Neuralyzer::TypeTraits::ContainerPtr_t =  typename ContainerFor<Element>::container_ptr;

using ElementFor_t

template <typename Container >
using Neuralyzer::TypeTraits::ElementFor_t =  typename ElementFor<Container>::type;

using ElementForSafe_t

template <typename Container >
using Neuralyzer::TypeTraits::ElementForSafe_t =  typename ElementForSafe<Container>::type;

using TraitsOf_t

template <typename T >
using Neuralyzer::TypeTraits::TraitsOf_t =  typename TraitsOf<T>::type;

using element_type_t

template <typename T >
using Neuralyzer::TypeTraits::element_type_t =  typename TraitsOf_t<T>::element_type;

Functions Documentation

function dmDataTypeToContainerTypeIndex

std::type_index dmDataTypeToContainerTypeIndex(
    DM_DataType type
)

Map DM_DataType to the corresponding container std::type_index.

Exceptions:

  • std::runtime_error for types that cannot be used as pipeline sources (Video, Images, Tensor, Time, Unknown).

function containerTypeIndexToDmDataType

std::optional< DM_DataType > containerTypeIndexToDmDataType(
    std::type_index container_type
)

Reverse map container type_index to DM_DataType when unambiguous.

Attributes Documentation

variable has_element_type_v

bool has_element_type_v =
        ElementForSafe<Container>::is_valid && HasElements<Container>;

True when the container supports element-level transform pipelines (has elements()).

variable is_ragged_v

bool is_ragged_v = TraitsOf_t<T>::is_ragged;

variable is_temporal_v

bool is_temporal_v = TraitsOf_t<T>::is_temporal;

variable has_entity_ids_v

bool has_entity_ids_v = TraitsOf_t<T>::has_entity_ids;

variable is_spatial_v

bool is_spatial_v = TraitsOf_t<T>::is_spatial;

Updated on 2026-11-13 at 20:25:41 +0000