37 references to SubTreeSize
System.Data.Common (37)
System\Data\RbTree.cs (36)
321
Debug.Assert(_inUseNodeCount - 1 ==
SubTreeSize
(root), "count mismatch");
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)))));
653
int savedSize =
SubTreeSize
(z_id);
671
position =
SubTreeSize
(root); // append
680
int c = (position) - (
SubTreeSize
(Left(y_id)));
884
if (
SubTreeSize
(Next(mNode)) == 2) // Next(mNode) == root_id
886
else if (
SubTreeSize
(Next(mNode)) == 1)
975
if (mNode == NIL ||
SubTreeSize
(Next(mNode)) != 1)
983
SetSubTreeSize(satelliteRootId,
SubTreeSize
(mNode));
1037
SetSubTreeSize(y_id,
SubTreeSize
(z_id));
1408
int myRank =
SubTreeSize
(Left(nodeId));
1417
myRank += (
SubTreeSize
(Left(parent)) + 1);
1429
int myRank =
SubTreeSize
(Left(nodeId));
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)
1501
index -= rank +
SubTreeSize
(Next(x_id)) - 1;
1516
int rank =
SubTreeSize
(y_id) + 1;
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)));
System\Data\Selection.cs (1)
657
int span = _records.
SubTreeSize
(_records.Next(nodeId));