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

◆ window_to_nddata()

template<FieldArray Array>
template<typename ValueT >
requires requires(const Array& array, std::string_view name) { array.slice(size_t {}, size_t {})->template to_nddata<ValueT>(name); }
auto MayaFlux::Kakshya::DataFieldTraversal< Array >::window_to_nddata ( std::string_view  field_name) const
inline

Derive homogeneous NDData from one field in the current window.

Template Parameters
ValueTExact field value type supported by the slice.
Parameters
field_nameField to project.
Returns
The slice's owning projection result, or an empty result when the current slice cannot be obtained.

Definition at line 129 of file DataFieldTraversal.hpp.

130 {
131 array.slice(size_t {}, size_t {})->template to_nddata<ValueT>(name);
132 }
133 {
134 auto window = current();
135 using Result = decltype(window->template to_nddata<ValueT>(field_name));
136 return window ? window->template to_nddata<ValueT>(field_name) : Result {};
137 }
std::weak_ptr< Core::Window > window
Definition Picker.cpp:23
std::string name
Definition VKDevice.cpp:123
auto current() const
Borrow the current window, including a short final window.

References name.