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

◆ validate_fields()

bool MayaFlux::Buffers::NetworkStateFieldProcessor::validate_fields ( )
private

Check every named state field exists on the attached buffer.

Returns
True if the cached buffer satisfies the binding table.

Definition at line 117 of file SpatialHashProcessor.cpp.

118{
119 return std::ranges::all_of(m_bindings, [this](const FieldBinding& entry) {
120 if (entry.field.empty()) {
121 return true;
122 }
123 if (!m_buffer->has_state(entry.field)) {
124 MF_ERROR(Journal::Component::Buffers, Journal::Context::BufferProcessing,
125 "NetworkStateFieldProcessor: buffer has no state field '{}' for binding '{}'",
126 entry.field, entry.name);
127 return false;
128 }
129 return true;
130 });
131}
std::shared_ptr< NetworkGeometryBuffer > m_buffer

References MayaFlux::Buffers::NetworkStateFieldProcessor::FieldBinding::field, m_bindings, and m_buffer.

Referenced by on_attach().

+ Here is the caller graph for this function: