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

◆ GetIndexByNodePath()

int System.Data.RBTree< K >.GetIndexByNodePath ( NodePath path)
inlineprivate

Definition at line 1105 of file RBTree.cs.

1106 {
1107 if (_inUseSatelliteTreeCount == 0)
1108 {
1109 return ComputeIndexByNode(path._nodeID);
1110 }
1111 if (path._mainTreeNodeID == 0)
1112 {
1113 return ComputeIndexWithSatelliteByNode(path._nodeID);
1114 }
1115 return ComputeIndexWithSatelliteByNode(path._mainTreeNodeID) + ComputeIndexByNode(path._nodeID);
1116 }
int ComputeIndexWithSatelliteByNode(int nodeId)
Definition RBTree.cs:1133
int _inUseSatelliteTreeCount
Definition RBTree.cs:215
int ComputeIndexByNode(int nodeId)
Definition RBTree.cs:1118

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

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