1
#ifndef GENERATORHELPERREGISTRY_H
2
#define GENERATORHELPERREGISTRY_H
12
typedef QRect (*calculateOutputAndMinFunction)(Halide::Internal::GeneratorBase*);
14
class GeneratorHelperRegistry
17
static GeneratorHelperRegistry* instance() {
18
static GeneratorHelperRegistry* singleton = new GeneratorHelperRegistry();
22
void add(Halide::Internal::GeneratorBase* key, calculateOutputAndMinFunction val) { m_helperMap[key] = val; }
23
calculateOutputAndMinFunction get(Halide::Internal::GeneratorBase* key) { return m_helperMap[key]; }
26
GeneratorHelperRegistry() {}
28
QMap<Halide::Internal::GeneratorBase*, calculateOutputAndMinFunction> m_helperMap;
31
#endif // GENERATORHELPERREGISTRY_H