49 references to Next
System.Data.Common (49)
System\Data\RbTree.cs (47)
414
if (NIL !=
Next
(nodeId))
421
nodeId = Minimum(
Next
(nodeId));
484
SetSubTreeSize(x_id, (SubTreeSize(Left(x_id)) + SubTreeSize(Right(x_id)) + (
Next
(x_id) == NIL ? 1 : SubTreeSize(
Next
(x_id)))));
489
SetSubTreeSize(y_id, (SubTreeSize(Left(y_id)) + SubTreeSize(Right(y_id)) + (
Next
(y_id) == NIL ? 1 : SubTreeSize(
Next
(y_id)))));
535
SetSubTreeSize(x_id, (SubTreeSize(Left(x_id)) + SubTreeSize(Right(x_id)) + (
Next
(x_id) == NIL ? 1 : SubTreeSize(
Next
(x_id)))));
540
SetSubTreeSize(y_id, (SubTreeSize(Left(y_id)) + SubTreeSize(Right(y_id)) + (
Next
(y_id) == NIL ? 1 : SubTreeSize(
Next
(y_id)))));
609
if (
Next
(z_id) != NIL)
611
root_id = RBInsert(
Next
(z_id), x_id, z_id, -1, false); // z_id is existing mainTreeNodeID
612
SetKey(z_id, Key(
Next
(z_id)));
874
if (
Next
(z_id) != NIL)
875
return RBDeleteX(
Next
(z_id),
Next
(z_id), z_id); // delete root of satellite tree.
881
if (
Next
(mNode) != NIL)
882
root_id =
Next
(mNode);
884
if (SubTreeSize(
Next
(mNode)) == 2) // Next(mNode) == root_id
886
else if (SubTreeSize(
Next
(mNode)) == 1)
927
SetNext(z_id,
Next
(y_id)); //z.value = y.value;
930
if (
Next
(mNode) != NIL)
975
if (mNode == NIL || SubTreeSize(
Next
(mNode)) != 1)
980
int satelliteRootId =
Next
(mNode);
1015
else if (
Next
(mNode) != NIL)
1074
if (mNode != NIL &&
Next
(mNode) == z_id)
1295
if (
Next
(nodeId) != NIL)
1297
return new NodePath(SearchSubTree(
Next
(nodeId), key), nodeId);
1353
else if (NIL !=
Next
(node))
1435
myRank += (SubTreeSize(Left(parent)) + ((
Next
(parent) == NIL) ? 1 : SubTreeSize(
Next
(parent))));
1483
while (x_id != NIL && !(((rank = SubTreeSize(Left(x_id)) + 1) == index) &&
Next
(x_id) == NIL))
1489
else if (
Next
(x_id) != NIL && index >= rank && index <= rank + SubTreeSize(
Next
(x_id)) - 1)
1494
return ComputeNodeByIndex(
Next
(x_id), index); //satellite tree root
1498
if (
Next
(x_id) == NIL)
1501
index -= rank + SubTreeSize(
Next
(x_id)) - 1;
1513
Debug.Assert(NIL ==
Next
(x_id), "has unexpected satellite tree");
1540
if (
Next
(curNodeId) != NIL)
1762
int myCorrectSize = SubTreeSize(Left(nodeId)) + SubTreeSize(Right(nodeId)) + (
Next
(nodeId) == NIL ? 1 : SubTreeSize(
Next
(nodeId)));
1785
int myCorrectSize = SubTreeSize(Left(nodeId)) + SubTreeSize(Right(nodeId)) + (
Next
(nodeId) == NIL ? 1 : SubTreeSize(
Next
(nodeId)));
1912
Debug.Assert(NIL != tree.
Next
(_mainTreeNodeID), "MainTreeNodeID should have a Next");
1922
Debug.Assert(NIL == tree.
Next
(_nodeID), "NodeID should not have a Next");
1935
Debug.Assert(NIL == tree.
Next
(node), "duplicate node should not have a next");
1940
(tree.
Next
(_mainTreeNodeID) == node), "NodeID parent change doesn't align");
System\Data\Selection.cs (2)
654
if (_records.
Next
(nodeId) == IndexTree.NIL)
657
int span = _records.SubTreeSize(_records.
Next
(nodeId));