BloombergLP::ball::RuleSet::getRuleById

Return the address of the rule having the specified id if such a rule exists, and 0 otherwise.

Synopsis

Declared in <ball_ruleset.h>

Rule const*
getRuleById(int id) const;

Description

The behavior is undefined unless 0 <= id < maxNumRules(). Note that rules may be assigned non-sequential identifiers, and that there may be a valid rule whose identifier is greater than numRules() (i.e., valid rules may appear anywhere in the range 0 <= id < maxNumRules()).

Return Value

address of the rule, or 0 if none exists

Parameters

NameDescription
ididentifier of the rule to retrieve