MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Yantra::OperationConfig Struct Reference

Base of every operation's config struct. More...

#include <ComputeOperation.hpp>

Inheritance diagram for MayaFlux::Yantra::OperationConfig:
Collaboration diagram for MayaFlux::Yantra::OperationConfig:

Public Member Functions

template<typename Op>
void apply_to (Op &operation) const
 Apply retained concrete settings to an operation through its parent contract.
template<typename T>
const T * get () const
 The struct of this type, or nullptr when absent.
 OperationConfig ()=default
template<typename Config>
requires (!std::same_as<std::remove_cvref_t<Config>, OperationConfig> && std::derived_from<std::remove_cvref_t<Config>, OperationConfig>)
 OperationConfig (Config &&config)
 Retain a concrete config whole when placed in a parent-config collection.
 OperationConfig (const OperationConfig &)=default
 OperationConfig (OperationConfig &&) noexcept=default
OperationConfig & operator= (const OperationConfig &)=default
OperationConfig & operator= (OperationConfig &&) noexcept=default
template<typename T>
void set (T value)
 Stores a struct under its type identity.

Private Attributes

Facets m_facets

Detailed Description

Base of every operation's config struct.

Config structs derive from it and are stored whole by ComputeOperation::set_config, keyed by their own type. No string keys are used. MF_DESCRIBE on a config is only needed to read it member by member.

Definition at line 19 of file ComputeOperation.hpp.


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