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

◆ extract_with_scope() [1/2]

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

Extract with specific scope.

Parameters
dataInput data
scopeExtraction scope to use
Returns
Extracted output data

Definition at line 163 of file UniversalExtractor.hpp.

164 {
165 auto original_scope = m_scope;
166 m_scope = scope;
167 auto result = extract_data(data);
168 m_scope = original_scope;
169 return result;
170 }
OutputType extract_data(const input_type &data)
Type-safe extraction method.