Contents

isEqualTo(const OSDictionary *, const OSCollection *)

Tests the equality of two OSDictionary objects over a subset of keys.

Declaration

virtual bool isEqualTo( 
 const OSDictionary *aDictionary, 
 const OSCollection *keys) const;

Parameters

  • aDictionary:

    The dictionary to be compared against the receiver.

  • keys:

    An OSArray or OSDictionary containing the keys (as OSString or Ossymbol) describing the intersection for the comparison.

Return Value

true if the intersections of the two dictionaries are equal.

Overview

Two OSDictionary objects are considered equal by this function if both have objects stored for all keys provided, and if the objects stored in each under a given key compare as equal using isEqualTo.

See Also

Miscellaneous