diff options
author | 2015-08-09 15:32:27 -0700 | |
---|---|---|
committer | 2015-08-09 15:32:37 -0700 | |
commit | 2f6ef537903fef76bdd52b806e98e3b999a7db28 (patch) | |
tree | 33159f537531902a4173a6ffb5a9851378a8b105 /src/objc/utils/MCOIndexSet.mm | |
parent | 0d2d5e23fcf2026b337f65272837b43f761f45f9 (diff) |
Implemented isEqual on IndexSet
Diffstat (limited to 'src/objc/utils/MCOIndexSet.mm')
-rw-r--r-- | src/objc/utils/MCOIndexSet.mm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/objc/utils/MCOIndexSet.mm b/src/objc/utils/MCOIndexSet.mm index b944b38b..3f113073 100644 --- a/src/objc/utils/MCOIndexSet.mm +++ b/src/objc/utils/MCOIndexSet.mm @@ -87,6 +87,15 @@ MCO_SYNTHESIZE_NSCODING return indexSet; } +- (BOOL) isEqual:(id)other +{ + if (other == nil) { + return NO; + } + MCOIndexSet * otherIndexSet = other; + return _indexSet->isEqual(otherIndexSet->_indexSet); +} + - (NSString *) description { return MCO_OBJC_BRIDGE_GET(description); |