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

#include <Logic.hpp>

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

Public Member Functions

 LogicContext (double value, LogicMode mode, LogicOperator operator_type, const std::deque< bool > &history, double threshold, bool edge_detected=false, EdgeType edge_type=EdgeType::BOTH, const std::vector< double > &inputs={})
 Constructs a LogicContext with complete state information.
 
LogicMode get_mode () const
 
LogicOperator get_operator () const
 
const std::deque< bool > & get_history () const
 
double get_threshold () const
 
bool is_edge_detected () const
 
EdgeType get_edge_type () const
 
const std::vector< double > & get_inputs () const
 
const double & get_value () const
 
bool as_bool () const
 
- 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

LogicMode m_mode
 Current computational model.
 
LogicOperator m_operator
 Current boolean operator.
 
std::deque< bool > m_history
 History of boolean states.
 
double m_threshold
 Decision boundary for binary quantization.
 
bool m_edge_detected
 Whether a state transition was detected.
 
EdgeType m_edge_type
 Type of transition being monitored.
 
std::vector< double > m_inputs
 Current input values (for multi-input mode)
 
double m_input
 Current input value for multi-input mode.
 

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 60 of file Logic.hpp.


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