DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
tpglibs
include
tpglibs
AVXFactory.hpp
Go to the documentation of this file.
1
8
9
#ifndef TPGLIBS_AVXFACTORY_HPP_
10
#define TPGLIBS_AVXFACTORY_HPP_
11
12
#include "
tpglibs/AVXProcessor.hpp
"
13
#include "
tpglibs/AbstractFactory.hpp
"
14
15
#include <memory>
16
18
#define REGISTER_AVXPROCESSOR_CREATOR(processor_name, processor_class) \
19
static struct processor_class##Registrar \
20
{ \
21
processor_class##Registrar() \
22
{ \
23
tpglibs::AVXFactory::register_creator(processor_name, []() -> std::shared_ptr<tpglibs::AVXProcessor> { \
24
return std::make_shared<processor_class>(); \
25
}); \
26
} \
27
} processor_class##_registrar;
28
29
namespace
tpglibs
{
30
32
class
AVXFactory
:
public
AbstractFactory
<AVXProcessor>
33
{};
34
35
}
// namespace tpglibs
36
37
#endif
// TPGLIBS_AVXFACTORY_HPP_
AVXProcessor.hpp
tpglibs::AVXFactory
AVX typed abstract factory.
Definition
AVXFactory.hpp:33
tpglibs::AbstractFactory< AVXProcessor >::AbstractFactory
AbstractFactory()
Definition
AbstractFactory.hpp:34
tpglibs
Definition
AbstractFactory.hpp:20
AbstractFactory.hpp
Generated on
for DUNE-DAQ by
1.18.0