Sha256: de704d832fdbe45aeefe8ce27d0152a615df877a211154a13f30e9a345a7ad2e
Contents?: true
Size: 1.51 KB
Versions: 9
Compression:
Stored size: 1.51 KB
Contents
#import <Foundation/Foundation.h> /** * The YapSet class can be treated more or less like a regular NSSet. * * It is designed to expose internal mutable objects to the external world. * That is, we skip all the overhead associated with making immutable copies, * and instead just use this simple wrapper class. * * In general, the external world won't interact with this class. * They are encouraged to instead use the changeset methods exposed in the connection classes. * * @see YapDatabaseConnection hasChangeForKey:inNotifications: * @see YapDatabaseConnection hasChangeForAnyKeys:inNotifications: **/ @interface YapSet : NSObject <NSFastEnumeration> - (id)initWithSet:(NSMutableSet *)set; - (id)initWithDictionary:(NSMutableDictionary *)dictionary; // NSSet methods - (BOOL)containsObject:(id)anObject; - (BOOL)intersectsSet:(NSSet *)otherSet; - (void)enumerateObjectsUsingBlock:(void (^)(id obj, BOOL *stop))block; // It's open source! // You are encouraged to add any methods you may need that are available in the NSSet API. // // Not every method from NSSet is available here because the author is lazy, // and only implemented what was needed at the time. // // If you add something, keep in mind the spirit of this class. // It is designed to expose mutable internals in a safe (immutable) manner. // It is designed to expose them in the form of a set. // // If you make improvements, feel free to submit a patch to the github project and get some good karma for it! // https://github.com/yaptv/YapDatabase @end
Version data entries
9 entries across 3 versions & 1 rubygems