MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Nodes::Generator::PolynomialContext Class Reference

#include <Polynomial.hpp>

+ Inheritance diagram for MayaFlux::Nodes::Generator::PolynomialContext:
+ Collaboration diagram for MayaFlux::Nodes::Generator::PolynomialContext:

Public Member Functions

 PolynomialContext (double value, PolynomialMode mode, size_t buffer_size, const std::deque< double > &input_buffer, const std::deque< double > &output_buffer, const std::vector< double > &coefficients)
 Constructs a PolynomialContext.
 
PolynomialMode get_mode () const
 Gets the current polynomial mode.
 
size_t get_buffer_size () const
 Gets the buffer size.
 
const std::deque< double > & get_input_buffer () const
 Gets the input buffer.
 
const std::deque< double > & get_output_buffer () const
 Gets the output buffer.
 
const std::vector< double > & get_coefficients () const
 Gets the polynomial coefficients.
 
- Public Member Functions inherited from MayaFlux::Nodes::NodeContext
virtual ~NodeContext ()=default
 
template<typename T >
T * as ()
 Safely cast to a derived context type.
 

Private Attributes

PolynomialMode m_mode
 Current processing mode.
 
size_t m_buffer_size
 Size of the buffers.
 
std::deque< double > m_input_buffer
 Copy of input buffer.
 
std::deque< double > m_output_buffer
 Copy of output buffer.
 
std::vector< double > m_coefficients
 Copy of polynomial coefficients.
 
std::unordered_map< std::string, std::any > m_attributes
 Named attributes for callbacks.
 

Additional Inherited Members

- Public Attributes inherited from MayaFlux::Nodes::NodeContext
double value
 Current sample value.
 
std::string type_id
 Type identifier for runtime type checking.
 
- Protected Member Functions inherited from MayaFlux::Nodes::NodeContext
 NodeContext (double value, const std::string &type)
 Protected constructor for NodeContext.
 

Detailed Description

Definition at line 17 of file Polynomial.hpp.


The documentation for this class was generated from the following file: