MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ value_element_type()

template<typename T >
virtual std::type_index MayaFlux::Kakshya::NDDataContainer< T >::value_element_type ( ) const
pure virtual

Runtime query for the native scalar element type of this container.

Mirrors FrameView::element_type(). Typical return values:

  • typeid(uint8_t) – 8-bit image / video / window
  • typeid(uint16_t) – 16-bit image
  • typeid(float) – HDR image
  • typeid(double) – audio / plot

Use this to branch once before calling get_value_at<ValueT>() when the container's native type is not statically known at the call site.

Implemented in MayaFlux::Kakshya::CompositeContainer, MayaFlux::Kakshya::PlotContainer, MayaFlux::Kakshya::SoundStreamContainer, MayaFlux::Kakshya::TextureContainer, MayaFlux::Kakshya::VideoStreamContainer, and MayaFlux::Kakshya::WindowContainer.