|
TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
|
Factory for creating daemon instances. More...
#include <tec_daemon.hpp>
Public Member Functions | |
| std::unique_ptr< Daemon > | operator() (typename Derived::Params const ¶ms) |
| Creates a unique pointer to a derived daemon instance. | |
Factory for creating daemon instances.
Provides a templated builder to create instances of derived daemon classes, hiding implementation details and ensuring type safety through static assertions.
| Derived | The derived daemon class type. |
|
inline |
Creates a unique pointer to a derived daemon instance.
Constructs a new instance of the specified Derived class using the provided parameters. Ensures Derived is a subclass of Daemon.
| params | The parameters for constructing the Derived daemon. |