internal virtual void CopyFrom(RBTreeNodeBase <T, P> z) { if (z.mLeft != null) { z.mLeft.mParent = this; } this.mLeft = z.mLeft; if (z.mRight != null) { z.mRight.mParent = this; } this.mRight = z.mRight; if (z.mParent != null) { if (z.mParent.mLeft == z) { z.mParent.SetLeft(this); } else { z.mParent.SetRight(this); } } this.mColor = z.mColor; this.SetParent(z.mParent); }
internal override void SetParent(RBTreeNodeBase <T, RBOrderedNodeParam> value) { this.mParent = value; if (this.mParent == null) { return; } this.mParent.OnUpdateCount(); }
internal override void CopyFrom(RBTreeNodeBase <T, RBOrderedNodeParam> z) { this.mParam.mRank = z.mParam.mRank; this.mParam.mCount = z.mParam.mCount; base.CopyFrom(z); }
internal override void SetRight(RBTreeNodeBase <T, RBOrderedNodeParam> value) { this.mRight = value; this.OnUpdateCount(); }
internal virtual void SetRight(RBTreeNodeBase <T, P> value) { this.mRight = value; }
internal virtual void SetLeft(RBTreeNodeBase <T, P> value) { this.mLeft = value; }
internal virtual void SetParent(RBTreeNodeBase <T, P> value) { this.mParent = value; }