MayaFlux 1.0.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 432 of file VolumeGridBuffer.cpp.

434{
435 auto it = m_fields.find(name);
436 if (it == m_fields.end()) {
438 "VolumeGridBuffer::{}: no field named '{}'", context, name);
439 return nullptr;
440 }
441 return &it->second;
442}
#define MF_ERROR(comp, ctx,...)
std::string name
Definition VKDevice.cpp:123
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, MF_ERROR, and name.

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

+ Here is the caller graph for this function: