The Gaudi Framework  v33r1 (b1225454)
ServiceManager::ServiceItem Struct Referencefinal

#include <src/ApplicationMgr/ServiceManager.h>

Collaboration diagram for ServiceManager::ServiceItem:

Public Member Functions

 ServiceItem (IService *s, long p=0, bool act=false)
 
bool operator== (std::string_view name) const
 
bool operator== (const IService *ptr) const
 
bool operator< (const ServiceItem &rhs) const
 

Public Attributes

SmartIF< IServiceservice
 
long priority
 
bool active
 

Detailed Description

Definition at line 48 of file ServiceManager.h.

Constructor & Destructor Documentation

◆ ServiceItem()

ServiceManager::ServiceItem::ServiceItem ( IService s,
long  p = 0,
bool  act = false 
)
inline

Definition at line 49 of file ServiceManager.h.

Member Function Documentation

◆ operator<()

bool ServiceManager::ServiceItem::operator< ( const ServiceItem rhs) const
inline

Definition at line 55 of file ServiceManager.h.

55 { return priority < rhs.priority; }

◆ operator==() [1/2]

bool ServiceManager::ServiceItem::operator== ( std::string_view  name) const
inline

Definition at line 53 of file ServiceManager.h.

53 { return service->name() == name; }
const std::string & name() const override
Return the name of the manager (implementation of INamedInterface)
SmartIF< IService > service

◆ operator==() [2/2]

bool ServiceManager::ServiceItem::operator== ( const IService ptr) const
inline

Definition at line 54 of file ServiceManager.h.

54 { return service.get() == ptr; }
TYPE * get() const
Get interface pointer.
Definition: SmartIF.h:86
SmartIF< IService > service

Member Data Documentation

◆ active

bool ServiceManager::ServiceItem::active

Definition at line 52 of file ServiceManager.h.

◆ priority

long ServiceManager::ServiceItem::priority

Definition at line 51 of file ServiceManager.h.

◆ service

SmartIF<IService> ServiceManager::ServiceItem::service

Definition at line 50 of file ServiceManager.h.


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