algorithms  2.2.0
Framework-independent algorithms for the EIC
Loading...
Searching...
No Matches
algorithms::AlgorithmSvc Class Reference

#include <algorithms/algorithm.h>

Inheritance diagram for algorithms::AlgorithmSvc:
[legend]

Public Member Functions

void init ()
template<class Algo>
void add ()
template<class AlgoType>
std::unique_ptr< AlgoType > get (std::string_view name) const
template<class AlgoType>
std::vector< std::string > ls () const
Public Member Functions inherited from algorithms::Service< AlgorithmSvc >
 Service (std::string_view name)
Public Member Functions inherited from algorithms::ServiceBase
bool ready () const
void ready (bool state)
Public Member Functions inherited from algorithms::Configurable
template<typename T>
void setProperty (std::string_view name, T &&value)
template<typename T>
T getProperty (std::string_view name) const
const PropertyMap & getProperties () const
bool hasProperty (std::string_view name) const
auto missingProperties () const
void validate () const
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
Public Member Functions inherited from algorithms::LoggerMixin
 LoggerMixin (std::string_view caller, const LogLevel threshold=LogSvc::instance().defaultLevel())
 LoggerMixin (const LoggerMixin &)=delete
LoggerMixin & operator= (const LoggerMixin &)=delete
void level (const LogLevel threshold)
LogLevel level () const

Additional Inherited Members

Public Types inherited from algorithms::Configurable
using PropertyMap = std::map<std::string_view, PropertyBase&>
Static Public Member Functions inherited from algorithms::Service< AlgorithmSvc >
static AlgorithmSvc & instance ()
Protected Member Functions inherited from algorithms::LoggedService< AlgorithmSvc >
 LoggedService (std::string_view name)
Protected Member Functions inherited from algorithms::LoggerMixin
detail::LoggerStream critical () const
detail::LoggerStream error () const
detail::LoggerStream warning () const
detail::LoggerStream info () const
detail::LoggerStream debug () const
detail::LoggerStream trace () const
void critical (std::string_view msg) const
void error (std::string_view msg) const
void warning (std::string_view msg) const
void info (std::string_view msg) const
void debug (std::string_view msg) const
void trace (std::string_view msg) const
template<typename ... T>
constexpr void critical (fmt::format_string< T... > fmt, T &&... args) const
template<typename ... T>
constexpr void error (fmt::format_string< T... > fmt, T &&... args) const
template<typename ... T>
constexpr void warning (fmt::format_string< T... > fmt, T &&... args) const
template<typename ... T>
constexpr void info (fmt::format_string< T... > fmt, T &&... args) const
template<typename ... T>
constexpr void debug (fmt::format_string< T... > fmt, T &&... args) const
template<typename ... T>
constexpr void trace (fmt::format_string< T... > fmt, T &&... args) const
bool aboveCriticalThreshold () const
bool aboveErrorThreshold () const
bool aboveWarningThreshold () const
bool aboveInfoThreshold () const
bool aboveDebugThreshold () const
bool aboveTraceThreshold () const
template<class ErrorType = Error>
void raise (std::string_view msg) const
template<LogLevel l, typename ... T>
constexpr void report_fmt (fmt::format_string< T... > fmt, T &&... args) const
Static Protected Member Functions inherited from algorithms::LoggerMixin
static std::ostream & endmsg (std::ostream &os)

Detailed Description

Definition at line 109 of file algorithm.h.

Member Function Documentation

◆ add()

template<class Algo>
void algorithms::AlgorithmSvc::add ( )
inline

Definition at line 115 of file algorithm.h.

◆ get()

template<class AlgoType>
std::unique_ptr< AlgoType > algorithms::AlgorithmSvc::get ( std::string_view name) const
inline

Definition at line 126 of file algorithm.h.

◆ init()

void algorithms::AlgorithmSvc::init ( )
inline

Definition at line 111 of file algorithm.h.

◆ ls()

template<class AlgoType>
std::vector< std::string > algorithms::AlgorithmSvc::ls ( ) const
inline

Definition at line 141 of file algorithm.h.


The documentation for this class was generated from the following file: