mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-03 20:27:19 +01:00
16 lines
496 B
C#
16 lines
496 B
C#
|
namespace Ryujinx.Common.Collections
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Represents a node in the Red-Black Tree.
|
||
|
/// </summary>
|
||
|
public class IntrusiveRedBlackTreeNode<T> where T : IntrusiveRedBlackTreeNode<T>
|
||
|
{
|
||
|
public bool Color = true;
|
||
|
public T Left;
|
||
|
public T Right;
|
||
|
public T Parent;
|
||
|
|
||
|
public T Predecessor => IntrusiveRedBlackTreeImpl<T>.PredecessorOf((T)this);
|
||
|
public T Successor => IntrusiveRedBlackTreeImpl<T>.SuccessorOf((T)this);
|
||
|
}
|
||
|
}
|