Sha256: d1b1a1d63e71059b4c1056c46f4a2125217734266c6ae4601755e601d2a14401

Contents?: true

Size: 1.97 KB

Versions: 7

Compression:

Stored size: 1.97 KB

Contents

#import "YapDatabaseViewMappings.h"

/**
 * This header file is PRIVATE, and is only to be used by the YapDatabaseView classes.
**/

@interface YapDatabaseViewMappings ()

/**
 * For UNIT TESTING only.
**/
- (void)updateWithCounts:(NSDictionary *)counts;

/**
 * Returns a mutable copy of the count dictionary, where:
 * key = group
 * value = NSNumber of count of items
**/
- (NSMutableDictionary *)counts;

/**
 * fullCountForGroup    => Count from view.group (excluding rangeOptions)
 * visibleCountForGroup => Subset count          (including rangeOptions)
**/
- (NSUInteger)fullCountForGroup:(NSString *)group;
- (NSUInteger)visibleCountForGroup:(NSString *)group;

/**
 * Returns a copy of the rangeOptions dictionary, where:
 * key = group
 * value = YapDatabaseViewMappingsRangeOptions
**/
- (NSDictionary *)rangeOptions;

/**
 * This method is used by YapDatabaseViewChange.
 * 
 * After processing changeset(s), the length and/or offset may change.
 * The new length and/or offsets are properly calculated,
 * and then this method is used to avoid duplicating the calculations.
 * 
 * Note: After invoking this method, be sure to invoke updateVisibility (after all groups have been updated).
**/
- (void)updateRangeOptionsForGroup:(NSString *)group
                     withNewLength:(NSUInteger)newLength
                         newOffset:(NSUInteger)newOffset;

/**
 * Normally this method is called automatically.
 * But needs to be called manually if you use updateRangeOptionsForGroup:withNewLength:newOffset:
**/
- (void)updateVisibility;

/**
 * Returns a copy of the dependencies dictionary, where:
 * key = group
 * value = NSSet of cellDrawingDependency offsets
**/
- (NSDictionary *)dependencies;

/**
 * Returns a copy of the reverse set, which contains groups that are to be reversed.
**/
- (NSSet *)reverse;

/**
 * During processing we need to disable the the isUsingConsolidatedGroup flag
 * in order to access the raw mappings.
**/
- (void)setAutoConsolidatingDisabled:(BOOL)disabled;

@end

Version data entries

7 entries across 3 versions & 1 rubygems

Version Path
motion-yapper-0.0.3 vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewMappingsPrivate.h
motion-yapper-0.0.3 vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewMappingsPrivate.h
motion-yapper-0.0.2 vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewMappingsPrivate.h
motion-yapper-0.0.2 vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewMappingsPrivate.h
motion-yapper-0.0.1 vendor/Pods/Headers/YapDatabase/YapDatabaseViewMappingsPrivate.h
motion-yapper-0.0.1 vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewMappingsPrivate.h
motion-yapper-0.0.1 vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewMappingsPrivate.h