Loading...
Searching...
No Matches
registry.h File Reference
#include <string>#include <functional>#include <memory>#include <stdexcept>#include <unordered_map>#include <utility>#include <vector>#include <format>Go to the source code of this file.
Classes | |
| class | opennn::Registry< T > |
Namespaces | |
| namespace | opennn |
Macros | |
| #define | REGISTER(BASE, CLASS, NAME) |
Functions | |
| void | opennn::register_classes () |
Macro Definition Documentation
◆ REGISTER
| #define REGISTER | ( | BASE, | |
| CLASS, | |||
| NAME ) |
Value:
namespace { \
const bool CLASS##_registered = []() { \
Registry<BASE>::instance().register_component(NAME, []() { \
return make_unique<CLASS>(); \
}); \
return true; \
}(); \
}