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

◆ find_field()

const VolumeGridBuffer::Field * MayaFlux::Buffers::VolumeGridBuffer::find_field ( const std::string &  name,
const char *  context 
) const
private

Resolve a field by name.

Parameters
nameField name.
contextCaller identifier used in the error path.
Returns
Pointer to the field, or nullptr with an error logged.

Definition at line 390 of file VolumeGridBuffer.cpp.

392{
393 auto it = m_fields.find(name);
394 if (it == m_fields.end()) {
396 "VolumeGridBuffer::{}: no field named '{}'", context, name);
397 return nullptr;
398 }
399 return &it->second;
400}
#define MF_ERROR(comp, ctx,...)
std::unordered_map< std::string, Field > m_fields
@ BufferManagement
Buffer Management (Buffers::BufferManager, creating buffers)
@ Buffers
Buffers, Managers, processors and processing chains.

References MayaFlux::Journal::BufferManagement, MayaFlux::Journal::Buffers, m_fields, and MF_ERROR.

Referenced by accumulate(), read_field(), read_handle(), seed(), seed_raw(), and write_handle().

+ Here is the caller graph for this function: