Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Successor() [1/2]

int System.Data.RBTree< K >.Successor ( int x_id)
inlineprivate

Definition at line 400 of file RBTree.cs.

401 {
402 if (Right(x_id) != 0)
403 {
404 return Minimum(Right(x_id));
405 }
406 int num = Parent(x_id);
407 while (num != 0 && x_id == Right(num))
408 {
409 x_id = num;
410 num = Parent(num);
411 }
412 return num;
413 }
int Minimum(int x_id)
Definition RBTree.cs:447

References System.Data.RBTree< K >.Minimum(), System.Data.Parent, and System.Data.Right.

Referenced by System.Data.RBTree< K >.CopyTo(), System.Data.RBTree< K >.CopyTo(), System.Data.RBTree< K >.RBDeleteX(), and System.Data.RBTree< K >.Successor().