35#ifndef MNA_OP_REGISTRY_H
36#define MNA_OP_REGISTRY_H
72 using OpFunc = std::function<QVariantMap(
const QVariantMap& inputs,
73 const QVariantMap& attributes)>;
88 bool hasOp(
const QString& opType)
const;
126 QStringList
missingOps(
const QStringList& pipelineTools)
const;
131 QMap<QString, MnaOpSchema> m_schemas;
132 QMap<QString, OpFunc> m_funcs;
mna library export/import macros.
MnaOpSchema class declaration — contract for graph operations.
MNE Analysis Container Format (mna/mnx).
static MnaOpRegistry & instance()
OpFunc opFunc(const QString &opType) const
QStringList registeredOps() const
bool hasOp(const QString &opType) const
void registerOpFunc(const QString &opType, OpFunc func)
void registerOp(const MnaOpSchema &schema)
MnaOpSchema schema(const QString &opType) const
QStringList missingOps(const QStringList &pipelineTools) const
std::function< QVariantMap(const QVariantMap &inputs, const QVariantMap &attributes)> OpFunc
Operation implementation callback type.
Operation schema for graph validation.