Files
firebase-ios-sdk/Firestore/third_party/Immutable/FSTLLRBValueNode.h
T
Gil 4fbc96904f Use fully qualified imports in Firestore (#467)
This simplifies the import process back into google3 and allows us to add additional directories to the project without needing to update the project files for each directory we add. This shows up most clearly in the change to Firestore/Example/Firestore.xcodeproj/project.pbxproj: this no longer needs to list essentially every directory in the project as a header search path.

* Clang-format configuration for C++ files
* Add support C++-only sources to the podspec
* Podspec support for fully qualified imports
* xcodeproj changes for fully-qualified imports
* Use fully-qualified imports in Firestore sources
2017-11-16 20:52:01 -08:00

30 lines
1.0 KiB
Objective-C

#import <Foundation/Foundation.h>
#import "Firestore/third_party/Immutable/FSTLLRBNode.h"
NS_ASSUME_NONNULL_BEGIN
@interface FSTLLRBValueNode : NSObject <FSTLLRBNode>
- (id)init __attribute__((
unavailable("Use initWithKey:withValue:withColor:withLeft:withRight: instead.")));
- (instancetype)initWithKey:(nullable id)key
withValue:(nullable id)value
withColor:(FSTLLRBColor)color
withLeft:(nullable id<FSTLLRBNode>)left
withRight:(nullable id<FSTLLRBNode>)right NS_DESIGNATED_INITIALIZER;
@property(nonatomic, assign, readonly) FSTLLRBColor color;
@property(nonatomic, strong, readonly, nullable) id key;
@property(nonatomic, strong, readonly, nullable) id value;
@property(nonatomic, strong, readonly, nullable) id<FSTLLRBNode> right;
// This property cannot be readonly, because it is set when building the tree.
// TODO(klimt): Find a way to build the tree without mutating this.
@property(nonatomic, strong, nullable) id<FSTLLRBNode> left;
@end
NS_ASSUME_NONNULL_END