This component maintains a registry of named functors ("collectors") that are used to transform opaque user data into a set of ball::Attribute objects.

Synopsis

Declared in <ball_attributecollectorregistry.h>

class AttributeCollectorRegistry;

Type Aliases

Name

Description

Collector

Collector is the type of a user‐supplied attribute collector functor.

Visitor

Visitor is the type of a user‐supplied visit functor.

allocator_type

This typedef is an alias for the allocator used by this object.

Member Functions

Name

Description

AttributeCollectorRegistry [constructor]

Constructors

~AttributeCollectorRegistry [destructor]

Destroy this registry.

addCollector

Add the specified collector with the specified name to this registry.

collect

Invoke all registered collectors with the specified visitor functor.

get_allocator

Return the allocator used by this object to supply memory.

hasCollector

Return whether a collector having the specified name is registered.

numCollectors

Return the number of collectors registered with this object.

removeAll

Remove all collectors from this registry.

removeCollector

Remove the collector having the specified name from this registry.

operator BloombergLP::bslmf::NestedTraitDeclaration<AttributeCollectorRegistry, UsesBslmaAllocator>

Declare that this type uses a bslma allocator.

Created with MrDocs