Archived
1
0
Fork 0
forked from Mirror/Ryujinx

Make RBTree node fields internal again

Prevents someone from accidentaly messing with them and leaving the tree in a invalid state
This commit is contained in:
gdk 2022-06-23 04:08:01 -03:00 committed by Mary-nyan
parent 22214ac664
commit 6a07f80b76

View file

@ -5,10 +5,10 @@ namespace Ryujinx.Common.Collections
/// </summary> /// </summary>
public class IntrusiveRedBlackTreeNode<T> where T : IntrusiveRedBlackTreeNode<T> public class IntrusiveRedBlackTreeNode<T> where T : IntrusiveRedBlackTreeNode<T>
{ {
public bool Color = true; internal bool Color = true;
public T Left; internal T Left;
public T Right; internal T Right;
public T Parent; internal T Parent;
public T Predecessor => IntrusiveRedBlackTreeImpl<T>.PredecessorOf((T)this); public T Predecessor => IntrusiveRedBlackTreeImpl<T>.PredecessorOf((T)this);
public T Successor => IntrusiveRedBlackTreeImpl<T>.SuccessorOf((T)this); public T Successor => IntrusiveRedBlackTreeImpl<T>.SuccessorOf((T)this);