Add the specified rule to the unique rule set of this object.
Synopsis
Declared in <ball_categorymanager.h>
int
addRule(Rule const& ruleToAdd);
Description
Add the specified ruleToAdd to the set of (unique) rules maintained by this object. Return the number of rules added (i.e., 1 on success and 0 if a rule with the same value is already present). The behavior is undefined unless a lock is not held by this thread on the mutex returned by rulesetMutex.
Return Value
number of rules added (1 on success, 0 if already present)
Parameters
Name |
Description |
ruleToAdd |
rule to add |
Created with MrDocs