The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
Gaudi::Details Namespace Reference

Namespaces

namespace  Property
 

Classes

class  PropertyBase
 PropertyBase base class allowing PropertyBase* collections to be "homogeneous". More...
 
class  PropertyId
 Helper to record a property identifier as a sequence of SharedString instances. More...
 
class  SharedString
 std::string wrapper for static strings where identical values actually share the memory. More...
 
class  WeakPropertyRef
 Optional reference to a property that can be used to refer to a sting or to the string representation of a property instance value. More...
 

Functions

bool operator== (const PropertyId &lhs, const PropertyId &rhs)
 
bool getDefaultAuditorValue (ISvcLocator *loc)
 
std::ostream & operator<< (std::ostream &stream, const PropertyBase &prop)
 

Variables

template<typename T>
constexpr bool is_gaudi_property_v = false
 
template<typename TYPE, typename VERIFIER, typename HANDLERS>
constexpr bool is_gaudi_property_v< Gaudi::Property< TYPE, VERIFIER, HANDLERS > > = true
 

Function Documentation

◆ getDefaultAuditorValue()

bool Gaudi::Details::getDefaultAuditorValue ( ISvcLocator * loc)

Definition at line 44 of file Algorithm.cpp.

44 {
45 assert( loc != nullptr );
46 Gaudi::Property<bool> audit{ "AuditAlgorithms", false };
47 if ( auto appMgr = loc->service<IProperty>( "ApplicationMgr" ) ) { appMgr->getProperty( &audit ).ignore(); }
48 return audit.value();
49 }
Implementation of property with value of concrete type.
Definition PropertyFwd.h:27
const ValueType & value() const
Definition Property.h:229
The IProperty is the basic interface for all components which have properties that can be set or get.
Definition IProperty.h:32
virtual SmartIF< IService > & service(const Gaudi::Utils::TypeNameString &typeName, const bool createIf=true)=0
Returns a smart pointer to a service.

◆ operator<<()

std::ostream & Gaudi::Details::operator<< ( std::ostream & stream,
const PropertyBase & prop )
inline

Definition at line 222 of file PropertyBase.h.

222 {
223 return prop.fillStream( stream );
224 }
virtual std::ostream & fillStream(std::ostream &) const
the printout of the property value
Definition Property.cpp:45

◆ operator==()

bool Gaudi::Details::operator== ( const PropertyId & lhs,
const PropertyId & rhs )
inline

Definition at line 103 of file PropertyId.h.

103{ return lhs.m_chunks == rhs.m_chunks; }
std::vector< SharedString > m_chunks
Definition PropertyId.h:99

Variable Documentation

◆ is_gaudi_property_v

template<typename T>
bool Gaudi::Details::is_gaudi_property_v = false
constexpr

Definition at line 33 of file PropertyHolder.h.

◆ is_gaudi_property_v< Gaudi::Property< TYPE, VERIFIER, HANDLERS > >

template<typename TYPE, typename VERIFIER, typename HANDLERS>
bool Gaudi::Details::is_gaudi_property_v< Gaudi::Property< TYPE, VERIFIER, HANDLERS > > = true
constexpr

Definition at line 36 of file PropertyHolder.h.