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

◆ GetNodeByKey()

NodePath System.Data.RBTree< K >.GetNodeByKey ( K key)
inlineprivate

Definition at line 1062 of file RBTree.cs.

1063 {
1064 int num = SearchSubTree(0, key);
1065 if (Next(num) != 0)
1066 {
1067 return new NodePath(SearchSubTree(Next(num), key), num);
1068 }
1069 if (!Key(num).Equals(key))
1070 {
1071 num = 0;
1072 }
1073 return new NodePath(num, 0);
1074 }
K Key(int nodeId)
Definition RBTree.cs:1407
int SearchSubTree(int root_id, K key)
Definition RBTree.cs:1028
int Next(int nodeId)
Definition RBTree.cs:1397

References System.Data.RBTree< K >.Key(), System.key, System.Data.RBTree< K >.Next(), and System.Data.RBTree< K >.SearchSubTree().

Referenced by System.Data.RBTree< K >.GetIndexByKey(), and System.Data.RBTree< K >.UpdateNodeKey().