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

◆ extract_with_scope()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = InputType>
OutputType MayaFlux::Yantra::UniversalExtractor< InputType, OutputType >::extract_with_scope ( const InputType &  data,
ExtractionScope  scope 
)
inline

Extract with specific scope.

Parameters
dataInput data
scopeExtraction scope to use
Returns
Extracted output data

Definition at line 154 of file UniversalExtractor.hpp.

155 {
156 auto original_scope = m_scope;
157 m_scope = scope;
158 auto result = extract_data(data);
159 m_scope = original_scope;
160 return result;
161 }
OutputType extract_data(const InputType &data)
Type-safe extraction method.