Couchbase Lite
Objective-C API for iOS and Mac OS
CBLModelArray.h
Go to the documentation of this file.
1 //
2 // CBLModelArray.h
3 // CouchbaseLite
4 //
5 // Created by Jens Alfke on 6/12/13.
6 // Copyright (c) 2013 Couchbase, Inc. All rights reserved.
7 //
8 
9 #import "CBLBase.h"
10 @class CBLModel;
11 
13 
18 @interface CBLModelArray : NSArray
19 
22 - (instancetype) initWithOwner: (CBLModel*)owner
23  property: (nullable NSString*)property
24  itemClass: (nullable Class)itemClass
25  docIDs: (CBLArrayOf(NSString*)*)docIDs;
26 
28 - (instancetype) initWithOwner: (CBLModel*)owner
29  property: (nullable NSString*)property
30  itemClass: (nullable Class)itemClass
31  models: (CBLArrayOf(CBLModel*)*)models;
32 
33 @property (readonly) CBLArrayOf(NSString*)* docIDs;
34 
35 @end
36 
37 
#define NS_ASSUME_NONNULL_BEGIN
Definition: CBLBase.h:20
#define nullable
Definition: CBLBase.h:22
An array of CBLModel objects, that's actually backed by document IDs.
Definition: CBLModelArray.h:18
#define NS_ASSUME_NONNULL_END
Definition: CBLBase.h:21
Generic model class for CouchbaseLite documents.
Definition: CBLModel.h:24
CBLArrayOf(NSNumber *) *CBLGeoPointToCoordPair(CBLGeoPoint pt)
Converts a point to a JSON-compatible array of two coordinates.