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

Base context class for node callbacks. More...

#include <Node.hpp>

+ Inheritance diagram for MayaFlux::Nodes::NodeContext:
+ Collaboration diagram for MayaFlux::Nodes::NodeContext:

Public Member Functions

virtual ~NodeContext ()=default
 
template<typename T >
T * as ()
 Safely cast to a derived context type.
 

Public Attributes

double value
 Current sample value.
 
std::string type_id
 Type identifier for runtime type checking.
 

Protected Member Functions

 NodeContext (double value, const std::string &type)
 Protected constructor for NodeContext.
 

Detailed Description

Base context class for node callbacks.

Provides basic context information for callbacks and can be extended by specific node types to include additional context. The NodeContext serves as a container for node state information that is passed to callback functions, allowing callbacks to access relevant node data during execution.

Node implementations can extend this class to provide type-specific context information, which can be safely accessed using the as<T>() method.

Definition at line 30 of file Node.hpp.


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