Lines Matching defs:set_b
46 // Returns true is set_a is a subset of set_b; Otherwise returns false.
48 bool Options::IsASubset(const OptionSet &set_a, const OptionSet &set_b) {
53 // set_a is a subset of set_b if every member of set_a is also a member of
54 // set_b
57 pos_b = set_b.find(*pos_a);
58 if (pos_b == set_b.end())
65 // Returns the set difference set_a - set_b, i.e. { x | ElementOf (x, set_a) &&
66 // !ElementOf (x, set_b) }
68 size_t Options::OptionsSetDiff(const OptionSet &set_a, const OptionSet &set_b,
75 pos_b = set_b.find(*pos_a);
76 if (pos_b == set_b.end()) {
85 // Returns the union of set_a and set_b. Does not put duplicate members into
88 void Options::OptionsSetUnion(const OptionSet &set_a, const OptionSet &set_b,
98 // Put all the elements of set_b that are not already there into the union.
99 for (pos = set_b.begin(); pos != set_b.end(); ++pos) {