Neuralyzer::TypeTraits
Neuralyzer::TypeTraits
Classes
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