[#BloombergLP-ball-AttributeCollectorRegistry]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::AttributeCollectorRegistry
:relfileprefix: ../../
:mrdocs:

This component maintains a registry of named functors (&quot;collectors&quot;) that are used to transform opaque user data into a set of `ball&colon;&colon;Attribute` objects&period;

== Synopsis

Declared in `&lt;ball&lowbar;attributecollectorregistry&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class AttributeCollectorRegistry;
----

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/ball/AttributeCollectorRegistry/Collector.adoc[`Collector`] 
| `Collector` is the type of a user&hyphen;supplied attribute collector functor&period;
| xref:BloombergLP/ball/AttributeCollectorRegistry/Visitor.adoc[`Visitor`] 
| `Visitor` is the type of a user&hyphen;supplied visit functor&period;
| xref:BloombergLP/ball/AttributeCollectorRegistry/allocator_type.adoc[`allocator&lowbar;type`] 
| This `typedef` is an alias for the allocator used by this object&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/ball/AttributeCollectorRegistry/2constructor-0d.adoc[`AttributeCollectorRegistry`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/ball/AttributeCollectorRegistry/2destructor.adoc[`&#126;AttributeCollectorRegistry`] [.small]#[destructor]#
| Destroy this registry&period;
| xref:BloombergLP/ball/AttributeCollectorRegistry/addCollector.adoc[`addCollector`] 
| Add the specified `collector` with the specified `name` to this registry&period;
| xref:BloombergLP/ball/AttributeCollectorRegistry/collect.adoc[`collect`] 
| Invoke all registered collectors with the specified `visitor` functor&period;
| xref:BloombergLP/ball/AttributeCollectorRegistry/get_allocator.adoc[`get&lowbar;allocator`] 
| Return the allocator used by this object to supply memory&period;
| xref:BloombergLP/ball/AttributeCollectorRegistry/hasCollector.adoc[`hasCollector`] 
| Return whether a collector having the specified `name` is registered&period;
| xref:BloombergLP/ball/AttributeCollectorRegistry/numCollectors.adoc[`numCollectors`] 
| Return the number of collectors registered with this object&period;
| xref:BloombergLP/ball/AttributeCollectorRegistry/removeAll.adoc[`removeAll`] 
| Remove all collectors from this registry&period;
| xref:BloombergLP/ball/AttributeCollectorRegistry/removeCollector.adoc[`removeCollector`] 
| Remove the collector having the specified `name` from this registry&period;
| xref:BloombergLP/ball/AttributeCollectorRegistry/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;AttributeCollectorRegistry, UsesBslmaAllocator&gt;`] 
| Declare that this type uses a `bslma` allocator&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
