Sha256: 72915545e021ca8869840288b837ec6ae95054e03615d6b42008dd25be4f81f4

Contents?: true

Size: 1.7 KB

Versions: 6

Compression:

Stored size: 1.7 KB

Contents

#import <Foundation/Foundation.h>


/**
 * The filtering block removes items from this view that are in the parent view.
 *
 * A YapDatabaseFilteredView will have the same groups and same sort order as the parent,
 * with the exception of those groups/rows that the filter block returned NO for.
 *
 * Here's how it works:
 * When you initialize a YapDatabaseFilteredView instance, it will enumerate the parentView
 * and invoke the filter block for every row in every group. So it can quickly copy a parentView as it
 * doesn't have to perform any sorting.
 * 
 * After its initialization, the filterView will automatically run for inserted / updated rows
 * after the parentView has processed them. It then gets the group from parentView,
 * and invokes the filterBlock again (if needed).
 *
 * You should choose a block type that takes the minimum number of required parameters.
 * The filterView can make various optimizations based on required parameters of the block.
**/
typedef id YapDatabaseViewFilteringBlock; // One of the YapDatabaseViewGroupingX types below.

typedef BOOL (^YapDatabaseViewFilteringWithKeyBlock)     \
                                        (NSString *group, NSString *collection, NSString *key);
typedef BOOL (^YapDatabaseViewFilteringWithObjectBlock)  \
                                        (NSString *group, NSString *collection, NSString *key, id object);
typedef BOOL (^YapDatabaseViewFilteringWithMetadataBlock)\
                                        (NSString *group, NSString *collection, NSString *key, id metadata);
typedef BOOL (^YapDatabaseViewFilteringWithRowBlock)     \
                                        (NSString *group, NSString *collection, NSString *key, id object, id metadata);

Version data entries

6 entries across 2 versions & 1 rubygems

Version Path
motion-yapper-0.0.3 vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredViewTypes.h
motion-yapper-0.0.3 vendor/Pods/Headers/YapDatabase/YapDatabaseFilteredViewTypes.h
motion-yapper-0.0.3 vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewTypes.h
motion-yapper-0.0.2 vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredViewTypes.h
motion-yapper-0.0.2 vendor/Pods/Headers/YapDatabase/YapDatabaseFilteredViewTypes.h
motion-yapper-0.0.2 vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewTypes.h