aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/third_party/Immutable/FSTLLRBValueNode.h
diff options
context:
space:
mode:
authorGravatar Gil <mcg@google.com>2017-10-03 08:55:22 -0700
committerGravatar GitHub <noreply@github.com>2017-10-03 08:55:22 -0700
commitbde743ed25166a0b320ae157bfb1d68064f531c9 (patch)
tree4dd7525d9df32fa5dbdb721d4b0d4f9b87f5e884 /Firestore/third_party/Immutable/FSTLLRBValueNode.h
parentbf550507ffa8beee149383a5bf1e2363bccefbb4 (diff)
Release 4.3.0 (#327)
Initial release of Firestore at 0.8.0 Bump FirebaseCommunity to 0.1.3
Diffstat (limited to 'Firestore/third_party/Immutable/FSTLLRBValueNode.h')
-rw-r--r--Firestore/third_party/Immutable/FSTLLRBValueNode.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/Firestore/third_party/Immutable/FSTLLRBValueNode.h b/Firestore/third_party/Immutable/FSTLLRBValueNode.h
new file mode 100644
index 0000000..4a0873c
--- /dev/null
+++ b/Firestore/third_party/Immutable/FSTLLRBValueNode.h
@@ -0,0 +1,29 @@
+#import <Foundation/Foundation.h>
+
+#import "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