|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef AthenaMonitoringKernel_MonitoredCollection_h
6 #define AthenaMonitoringKernel_MonitoredCollection_h
97 ObjectsCollection<T, double>
110 ObjectsCollection<T, std::string>
143 ObjectsRefCollection<T, double>
155 ObjectsRefCollection<T, std::string>
191 virtual double get([[maybe_unused]]
size_t i)
const override {
192 if constexpr (std::is_convertible_v<value_type, double>)
198 virtual std::string
getString([[maybe_unused]]
size_t i)
const override {
199 if constexpr (std::is_constructible_v<std::string, value_type>)
209 virtual size_t size()
const override {
242 virtual double get([[maybe_unused]]
size_t i)
const override {
243 if constexpr (std::is_convertible_v<value_type, double>)
249 virtual std::string
getString([[maybe_unused]]
size_t i)
const override {
250 if constexpr (std::is_constructible_v<std::string, value_type>)
260 virtual size_t size()
const override {
304 virtual double get([[maybe_unused]]
size_t i)
const override {
305 if constexpr (std::is_convertible_v<R, double>)
311 virtual std::string
getString([[maybe_unused]]
size_t i)
const override {
312 if constexpr (std::is_constructible_v<std::string, R>)
321 virtual size_t size()
const override {
369 virtual double get([[maybe_unused]]
size_t i)
const override {
370 if constexpr (std::is_convertible_v<R, double>)
376 virtual std::string
getString([[maybe_unused]]
size_t i)
const override {
377 if constexpr (std::is_constructible_v<std::string, R>)
386 virtual size_t size()
const override {
Internal class not to be used by end user.
ObjectsCollection(ObjectsCollection const &)=delete
virtual std::string getString([[maybe_unused]] size_t i) const override
const std::reference_wrapper< T > & m_collection
virtual std::string getString([[maybe_unused]] size_t i) const override
virtual double get([[maybe_unused]] size_t i) const override
friend ObjectsRefCollection< U, double > Collection(std::string name, const std::reference_wrapper< U > &collection, std::function< double(const typename ObjectsRefCollection< U, double >::const_value_type &)> accessor)
virtual std::string getString([[maybe_unused]] size_t i) const override
friend ObjectsCollection< U, double > Collection(std::string name, const U &collection, std::function< double(const typename ObjectsCollection< U, double >::const_value_type &)> accessor)
std::function< R(const const_value_type &)> m_converterToR
virtual size_t size() const override
virtual size_t size() const override
ObjectsCollection(std::string name, const T &collection, std::function< R(const const_value_type &)> converterToR)
ValuesRefCollection & operator=(ValuesRefCollection const &)=delete
ValuesCollection(std::string vname, const T &collection)
Monitoring of object collections (internal)
virtual bool hasStringRepresentation() const override
Get element type for containers.
virtual size_t size() const override
virtual double get([[maybe_unused]] size_t i) const override
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
virtual bool hasStringRepresentation() const override
ObjectsRefCollection(ObjectsRefCollection &&)=default
ValuesRefCollection(ValuesRefCollection &&)=default
ObjectsCollection(ObjectsCollection &&)=default
virtual bool hasStringRepresentation() const override
ObjectsRefCollection(ObjectsRefCollection const &)=delete
std::function< R(const const_value_type &)> m_converterToR
friend ObjectsCollection< U, std::string > Collection(std::string name, const U &collection, std::function< std::string(const typename ObjectsCollection< U, std::string >::const_value_type &)> converterToString)
Monitoring of object collection references (internal)
Generic monitoring tool for athena components.
typename detail::make_pointer_const< value_type >::type const_value_type
ValuesRefCollection(std::string vname, const std::reference_wrapper< T > &collection)
friend ObjectsRefCollection< U, std::string > Collection(std::string name, const std::reference_wrapper< U > &collection, std::function< std::string(const typename ObjectsRefCollection< U, std::string >::const_value_type &)> converterToString)
ValuesCollection(ValuesCollection const &)=delete
Internal class not to be used by end user.
const std::reference_wrapper< T > & m_collection
ObjectsCollection & operator=(ObjectsCollection const &)=delete
ObjectsRefCollection & operator=(ObjectsRefCollection const &)=delete
ValuesRefCollection(ValuesRefCollection const &)=delete
virtual std::string getString([[maybe_unused]] size_t i) const override
ValuesCollection(ValuesCollection &&)=default
ValuesCollection & operator=(ValuesCollection const &)=delete
const AccessorWrapper< T > * accessor(xAOD::JetAttribute::AttributeID id)
Returns an attribute accessor corresponding to an AttributeID.
virtual size_t size() const override
ObjectsRefCollection(std::string name, const std::reference_wrapper< T > &collection, std::function< R(const const_value_type &)> converterToR)
typename detail::make_pointer_const< value_type >::type const_value_type
virtual double get([[maybe_unused]] size_t i) const override
virtual bool hasStringRepresentation() const override
virtual double get([[maybe_unused]] size_t i) const override