[#BloombergLP-balxml-NamespaceRegistry]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::NamespaceRegistry
:relfileprefix: ../../
:mrdocs:

Mapping that associates a unique integer with each registered namespace URI&period;

== Synopsis

Declared in `&lt;balxml&lowbar;namespaceregistry&period;h&gt;`

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

== Enums

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balxml/NamespaceRegistry/_04enum.adoc[`Unnamed enum`] 
| Preregistered namespace identifiers&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balxml/NamespaceRegistry/2constructor-03.adoc[`NamespaceRegistry`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/balxml/NamespaceRegistry/2destructor.adoc[`&#126;NamespaceRegistry`] [.small]#[destructor]#
| Destroy this object&period; Release all memory to the allocator used at construction&period;
| xref:BloombergLP/balxml/NamespaceRegistry/operator_assign.adoc[`operator&equals;`] 
| Discard the contents of this registry and assign it the contents of the specified `rhs` registry&period;
| xref:BloombergLP/balxml/NamespaceRegistry/lookup-05.adoc[`lookup`] 
| `lookup` overloads
| xref:BloombergLP/balxml/NamespaceRegistry/lookupOrRegister.adoc[`lookupOrRegister`] 
| Return the integer ID for the specified `namespaceUri`, registering it if necessary&period;
| xref:BloombergLP/balxml/NamespaceRegistry/print.adoc[`print`] 
| Print the contents of this object to the specified `stream` in human&hyphen;readable form&period;
| xref:BloombergLP/balxml/NamespaceRegistry/reset.adoc[`reset`] 
| Removes all registered namespaces&period; Preregistered namespaces are not removed&period;
| xref:BloombergLP/balxml/NamespaceRegistry/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;NamespaceRegistry, UsesBslmaAllocator&gt;`] 
| `NamespaceRegistry` uses a `bslma&colon;&colon;Allocator` to supply memory&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/balxml/operator_eq-0ed.adoc[BloombergLP::balxml::operator&equals;&equals;]`
| Must be a friend for engineering reasons&period; Unlike most value&hyphen;semantic types, there is no efficient way to read the entire value of a namespace registry object&period;
|===

== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balxml/operator_not_eq-006.adoc[`operator!&equals;`]
| Return `true` if the specified `lhs` and `rhs` registries do not have the same value&period;
|===


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