Return the id of the rule having the specified value if such a rule exists, and a negative value otherwise.
Synopsis
Declared in <ball_ruleset.h>
int
ruleId(Rule const& value) const;
Description
Note that if there are multiple rules having value, the id of the first one found will be returned and the order in which rules are searched is implementation dependent.
Return Value
non‐negative id if found, or a negative value otherwise
Parameters
Name |
Description |
value |
rule whose id is sought |
Created with MrDocs