[#BloombergLP-ball-HierarchicalCategorySetting-2constructor-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/HierarchicalCategorySetting.adoc[HierarchicalCategorySetting]::HierarchicalCategorySetting
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Create a hierarchical category setting object having the same value as the specified `original` object, and adopting all outstanding memory allocations and the allocator associated with the `original` object&period; `original` is left in a valid but unspecified state&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/HierarchicalCategorySetting/2constructor-0f.adoc[HierarchicalCategorySetting](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;HierarchicalCategorySetting&gt;] original) noexcept;
----

[.small]#xref:BloombergLP/ball/HierarchicalCategorySetting/2constructor-0f.adoc[_» more&period;&period;&period;_]#

Create a hierarchical category setting object having the same value as the specified `original` object&period; The value of `original` is moved to the new object, and all outstanding memory allocations and the specified `allocator` are adopted if `allocator &equals;&equals; original&period;get&lowbar;allocator()`&period; `original` is left in a valid but unspecified state&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/HierarchicalCategorySetting/2constructor-00.adoc[HierarchicalCategorySetting](
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;HierarchicalCategorySetting&gt;] original,
    xref:BloombergLP/ball/HierarchicalCategorySetting/allocator_type.adoc[allocator&lowbar;type] const& allocator);
----

[.small]#xref:BloombergLP/ball/HierarchicalCategorySetting/2constructor-00.adoc[_» more&period;&period;&period;_]#

Create a hierarchical category setting object initialized to the value of the specified `original` object&period; Optionally specify an `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&semi; otherwise, the default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/HierarchicalCategorySetting/2constructor-06.adoc[HierarchicalCategorySetting](
    xref:BloombergLP/ball/HierarchicalCategorySetting.adoc[HierarchicalCategorySetting] const& original,
    xref:BloombergLP/ball/HierarchicalCategorySetting/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/HierarchicalCategorySetting/2constructor-06.adoc[_» more&period;&period;&period;_]#

Create a hierarchical category setting object having the specified `categoryPrefix` and threshold levels from the specified `levels`&period; Optionally specify an `allocator` used to supply memory&semi; otherwise, the default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/HierarchicalCategorySetting/2constructor-0d.adoc[HierarchicalCategorySetting](
    std::string&lowbar;view const& categoryPrefix,
    xref:BloombergLP/ball/ThresholdAggregate.adoc[ThresholdAggregate] const& levels,
    xref:BloombergLP/ball/HierarchicalCategorySetting/allocator_type.adoc[allocator&lowbar;type] allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/HierarchicalCategorySetting/2constructor-0d.adoc[_» more&period;&period;&period;_]#

Create a hierarchical category setting object having the specified `categoryPrefix` and the specified `recordLevel`, `passLevel`, `triggerLevel`, and `triggerAllLevel` threshold values, respectively&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The behavior is undefined unless each of the specified threshold levels is in the range `&lsqb;0 &period;&period; 255&rsqb;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/HierarchicalCategorySetting/2constructor-04.adoc[HierarchicalCategorySetting](
    std::string&lowbar;view const& categoryPrefix,
    int recordLevel,
    int passLevel,
    int triggerLevel,
    int triggerAllLevel,
    xref:BloombergLP/ball/HierarchicalCategorySetting/allocator_type.adoc[allocator&lowbar;type] allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/HierarchicalCategorySetting/2constructor-04.adoc[_» more&period;&period;&period;_]#


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