[#BloombergLP-ball-Rule-2constructor-0e36] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Rule.adoc[Rule]::Rule :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<ball_rule.h>` Create a `Rule` object whose pattern is an empty string and whose thresholds levels are all 0. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/ball/Rule/2constructor-01.adoc[Rule](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/ball/Rule/2constructor-01.adoc[_» more..._]# Create a `Rule` object that has the same value as that of the specified `original` object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/Rule/2constructor-0e39.adoc[Rule]( xref:BloombergLP/ball/Rule.adoc[Rule] const& original, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/ball/Rule/2constructor-0e39.adoc[_» more..._]# Create a `Rule` with the specified pattern and threshold levels. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/Rule/2constructor-0b.adoc[Rule]( std::string_view const& pattern, int recordLevel, int passLevel, int triggerLevel, int triggerAllLevel, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/ball/Rule/2constructor-0b.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | memory allocator; null uses the default | *original* | rule to copy | *pattern* | category‐name pattern for this rule | *recordLevel* | record threshold level | *passLevel* | pass threshold level | *triggerLevel* | trigger threshold level | *triggerAllLevel* | trigger‐all threshold level |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#