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

◆ GetIndexByNode()

int System.Data.RBTree< K >.GetIndexByNode ( int node)
inline

Definition at line 1087 of file RBTree.cs.

1088 {
1089 if (_inUseSatelliteTreeCount == 0)
1090 {
1091 return ComputeIndexByNode(node);
1092 }
1093 if (Next(node) != 0)
1094 {
1096 }
1097 int num = SearchSubTree(0, Key(node));
1098 if (num == node)
1099 {
1101 }
1103 }
K Key(int nodeId)
Definition RBTree.cs:1407
int ComputeIndexWithSatelliteByNode(int nodeId)
Definition RBTree.cs:1133
int SearchSubTree(int root_id, K key)
Definition RBTree.cs:1028
int _inUseSatelliteTreeCount
Definition RBTree.cs:215
int Next(int nodeId)
Definition RBTree.cs:1397
int ComputeIndexByNode(int nodeId)
Definition RBTree.cs:1118

References System.Data.RBTree< K >._inUseSatelliteTreeCount, System.Data.RBTree< K >.ComputeIndexByNode(), System.Data.RBTree< K >.ComputeIndexWithSatelliteByNode(), System.Data.RBTree< K >.Key(), System.Data.RBTree< K >.Next(), and System.Data.RBTree< K >.SearchSubTree().

Referenced by System.Data.Index.FindRecord(), System.Data.Index.FindRecordByKey(), System.Data.Index.FindRecordByKey(), System.Data.Index.GetRangeFromNode(), System.Data.RBTree< K >.IndexOf(), and System.Data.Index.InsertRecord().