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

◆ absorbed()

template<typename Executor , ComputeData DataType>
template<ComputeData OutputType>
Datum< DataType > MayaFlux::Yantra::FluentExecutor< Executor, DataType >::absorbed ( Datum< OutputType > &&  result,
const std::string &  key 
) const
inlineprivate

The current Datum with result's metadata merged in and its data stored under key.

Definition at line 676 of file OperationChain.hpp.

677 {
678 Datum<DataType> next = m_data;
679 for (auto& [k, v] : result.metadata)
680 next.metadata.insert_or_assign(k, std::move(v));
681 next.metadata.insert_or_assign(key, std::move(result.data));
682 return next;
683 }
std::unordered_map< std::string, std::string > metadata
void move(EditableText &s, int n)
Move the cursor by n codepoints.
Definition TextEdit.cpp:20
T data
The actual computation data.
Definition DataIO.hpp:27
std::unordered_map< std::string, std::any > metadata
Associated metadata.
Definition DataIO.hpp:30

References MayaFlux::Yantra::Datum< T >::metadata.