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

◆ DECLARE_OPERATION_TRAITS

#define DECLARE_OPERATION_TRAITS (   CATEGORY)
Value:
static constexpr OperationType operation_category = OperationType::CATEGORY; \
using base_input_type = typename base_type::input_type; \
using base_output_type = typename base_type::output_type; \
static constexpr const char* operation_name = #CATEGORY;

Macro to declare operation traits for automatic registration.

This macro should be used in operation classes to provide intrinsic type information that the registry can use for automatic categorization.

Usage: class MyAnalyzer : public UniversalAnalyzer<...> { public: DECLARE_OPERATION_TRAITS(ANALYZER) // ... rest of implementation };

Definition at line 20 of file ComputeRegistry.hpp.