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

◆ get_value_at()

template<typename T >
template<DataVariantElement ValueT>
ValueT MayaFlux::Kakshya::NDDataContainer< T >::get_value_at ( const std::vector< uint64_t > &  coordinates) const
inline

Read a single element at the given N-dimensional coordinates.

Returns a default-constructed ValueT on coordinate out-of-range or type mismatch. No conversion is performed: ValueT must match the container's native element type (query value_element_type() first when the type is not statically known).

Template Parameters
ValueTElement type. Must satisfy DataVariantElement.
Parameters
coordinatesN-dimensional coordinate vector.
Returns
Native-typed value, zero-initialised on error.

Definition at line 376 of file NDimensionalContainer.hpp.

377 {
378 ValueT v {};
379 get_value_impl(coordinates, &v, typeid(ValueT));
380 return v;
381 }
virtual void get_value_impl(const std::vector< uint64_t > &coords, void *out, const std::type_info &type) const =0
Type-erased single-element read.