9#ifndef INCLUDED_BDLM_METRICSREGISTRY
10#define INCLUDED_BDLM_METRICSREGISTRY
168#include <bdlm_metricdescriptor.h>
187class MetricsRegistryRegistrationHandle;
188class MetricsRegistry_Impl;
Definition bdlm_metricdescriptor.h:142
Definition bdlm_metricsadapter.h:293
int CallbackHandle
Definition bdlm_metricsadapter.h:297
Definition bdlm_metricsregistry.h:287
void swap(MetricsRegistryRegistrationHandle &other) BSLS_KEYWORD_NOEXCEPT
Definition bdlm_metricsregistry.h:382
MetricsRegistryRegistrationHandle & operator=(bslmf::MovableRef< MetricsRegistryRegistrationHandle > original) BSLS_KEYWORD_NOEXCEPT
bool isRegistered() const
Definition bdlm_metricsregistry.h:391
MetricsRegistryRegistrationHandle()
Definition bdlm_metricsregistry.h:374
~MetricsRegistryRegistrationHandle()
MetricsRegistryRegistrationHandle(bslmf::MovableRef< MetricsRegistryRegistrationHandle > original) BSLS_KEYWORD_NOEXCEPT
Definition bdlm_metricsregistry.h:199
MetricsAdapter::Callback Callback
Definition bdlm_metricsregistry.h:206
MetricsAdapter::CallbackHandle CallbackHandle
Definition bdlm_metricsregistry.h:207
bslma::Allocator * allocator() const
Return the allocator used by this object to supply memory.
BSLMF_NESTED_TRAIT_DECLARATION(MetricsRegistry, bslma::UsesBslmaAllocator)
void registerCollectionCallback(MetricsRegistryRegistrationHandle *result, const bdlm::MetricDescriptor &descriptor, const Callback &callback)
static MetricsRegistry & defaultInstance()
Return a non-const reference to the metrics registry singleton.
void removeMetricsAdapter(MetricsAdapter *adapter)
void setMetricsAdapter(MetricsAdapter *adapter)
MetricsRegistry(bslma::Allocator *basicAllocator=0)
int numRegisteredCollectionCallbacks() const
Return the number of registered metrics collection callbacks.
Forward declaration.
Definition bslstl_function.h:934
Definition bslstl_sharedptr.h:1830
Definition bslstl_sharedptr.h:3705
bool expired() const BSLS_KEYWORD_NOEXCEPT
Definition bslstl_sharedptr.h:5934
static void swap(T *a, T *b)
Definition bslalg_swaputil.h:194
Definition bslma_allocator.h:457
Definition bslmf_movableref.h:751
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
#define BSLS_KEYWORD_DELETED
Definition bsls_keyword.h:609
#define BSLS_KEYWORD_NOEXCEPT
Definition bsls_keyword.h:632
Definition bdlm_instancecount.h:101
Definition bslma_usesbslmaallocator.h:343
Definition bslmf_movableref.h:791