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

◆ add_child_buffer_direct()

template<typename BufferType >
void MayaFlux::Buffers::RootBuffer< BufferType >::add_child_buffer_direct ( std::shared_ptr< BufferType >  buffer)
inlineprotected

Definition at line 224 of file RootBuffer.hpp.

225 {
226 std::string rejection_reason;
227 if (!is_buffer_acceptable(buffer, &rejection_reason)) {
228 throw std::runtime_error("Cannot add child buffer: " + rejection_reason);
229 }
230
231 m_child_buffers.push_back(buffer);
232
233 if (!buffer->get_processing_chain() && this->get_processing_chain()) {
234 buffer->set_processing_chain(this->get_processing_chain());
235 }
236 }
bool is_buffer_acceptable(std::shared_ptr< BufferType > buffer, std::string *rejection_reason=nullptr) const
Validates if a buffer is acceptable based on current token enforcement strategy.
std::vector< std::shared_ptr< BufferType > > m_child_buffers
Vector of tributary buffers that contribute to this root buffer.