DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
AVXFactory.hpp
Go to the documentation of this file.
1
9#ifndef TPGLIBS_AVXFACTORY_HPP_
10#define TPGLIBS_AVXFACTORY_HPP_
11
14
16#define REGISTER_AVXPROCESSOR_CREATOR(processor_name, processor_class) \
17 static struct processor_class##Registrar { \
18 processor_class##Registrar() { \
19 tpglibs::AVXFactory::register_creator(processor_name, []() -> std::shared_ptr<tpglibs::AVXProcessor> {return std::make_shared<processor_class>();}); \
20 } \
21 } processor_class##_registrar;
22
23namespace tpglibs {
24
26class AVXFactory : public AbstractFactory<AVXProcessor> {};
27
28} // namespace tpglibs
29
30#endif // TPGLIBS_AVXFACTORY_HPP_
AVX typed abstract factory.
General singleton, abstract factory.