|
algorithms
2.2.0
Framework-independent algorithms for the EIC
|
#include <algorithms/service.h>
Public Types | |
| using | ServiceMapType = std::map<std::string_view, ServiceBase*> |
Public Member Functions | |
| template<class Svc> | |
| void | add (ServiceBase *svc, const std::function< void(Svc &)> &init=[](Svc &s) { s.init();}) |
| template<class Svc> | |
| void | registerService (ServiceBase *svc, const std::function< void(Svc &)> &init=[](Svc &s) { s.init();}) |
| template<class Svc> | |
| void | initStraggler () |
| template<class Svc> | |
| bool | has () const |
| template<class Svc> | |
| void | setInit (const std::function< void(Svc &)> &init) |
| void | init () |
| template<class Svc> | |
| void | initSingle () |
| template<class Svc = ServiceBase> | |
| Svc * | service (std::string_view name) const |
| void | validate () const |
| const auto & | services () const |
| bool | ready () const |
| ServiceSvc (const ServiceSvc &)=delete | |
| void | operator= (const ServiceSvc &)=delete |
| Public Member Functions inherited from algorithms::NameMixin | |
| NameMixin (std::string_view name, std::string_view description) | |
| std::string_view | name () const |
| std::string_view | description () const |
Static Public Member Functions | |
| static ServiceSvc & | instance () |
| using algorithms::ServiceSvc::ServiceMapType = std::map<std::string_view, ServiceBase*> |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |