BloombergLP::ball::RuleSet::addRules

Add each rule in the specified rules to this rule set.

Synopsis

Declared in <ball_ruleset.h>

int
addRules(RuleSet const& rules);

Description

Return the number of rules added. Note that a rule in rules will be ignored if there is an existing rule having the same value or if the number of rules in the set has reached the upper limit. Also note that if not all valid rules will fit, the (possibly empty) subset of unique values that will be added is implementation dependent.

Return Value

number of rules added

Parameters

NameDescription
rulesrule set whose rules are to be added