37 references to SubTreeSize
System.Data (37)
fx\src\data\System\Data\RbTree.cs (36)
318
Debug.Assert(_inUseNodeCount-1 ==
SubTreeSize
(root), "count mismatch");
472
SetSubTreeSize(x_id, (
SubTreeSize
(Left(x_id)) +
SubTreeSize
(Right(x_id)) + (Next(x_id) == NIL ? 1 :
SubTreeSize
(Next(x_id)))));
476
SetSubTreeSize(y_id, (
SubTreeSize
(Left(y_id)) +
SubTreeSize
(Right(y_id)) + (Next(y_id) == NIL ? 1 :
SubTreeSize
(Next(y_id)))));
517
SetSubTreeSize(x_id, (
SubTreeSize
(Left(x_id)) +
SubTreeSize
(Right(x_id)) + (Next(x_id) == NIL ? 1 :
SubTreeSize
(Next(x_id)))));
521
SetSubTreeSize(y_id, (
SubTreeSize
(Left(y_id)) +
SubTreeSize
(Right(y_id)) + (Next(y_id) == NIL ? 1 :
SubTreeSize
(Next(y_id)))));
627
int savedSize =
SubTreeSize
(z_id);
644
position =
SubTreeSize
(root); // append
653
int c = (position) - (
SubTreeSize
(Left(y_id)));
851
if (
SubTreeSize
(Next (mNode)) == 2) // Next(mNode) == root_id
853
else if (
SubTreeSize
(Next (mNode)) == 1) {
940
if (mNode == NIL ||
SubTreeSize
(Next(mNode)) != 1) {
947
SetSubTreeSize(satelliteRootId,
SubTreeSize
(mNode));
996
SetSubTreeSize (y_id,
SubTreeSize
(z_id));
1354
int myRank =
SubTreeSize
(Left(nodeId));
1363
myRank += (
SubTreeSize
(Left(parent)) + 1);
1374
int myRank =
SubTreeSize
(Left(nodeId));
1380
myRank += (
SubTreeSize
(Left(parent)) + ((Next(parent) == NIL) ? 1 :
SubTreeSize
(Next(parent))));
1423
while (x_id != NIL && !(((rank =
SubTreeSize
(Left (x_id)) + 1) == index) && Next (x_id) == NIL))
1428
else if (Next (x_id) != NIL && index >= rank && index <= rank +
SubTreeSize
(Next (x_id)) - 1)
1440
index -= rank +
SubTreeSize
(Next (x_id)) - 1;
1453
int rank =
SubTreeSize
(y_id) + 1;
1681
int myCorrectSize =
SubTreeSize
(Left (nodeId)) +
SubTreeSize
(Right (nodeId)) + (Next (nodeId) == NIL ? 1 :
SubTreeSize
(Next (nodeId)));
1703
int myCorrectSize =
SubTreeSize
(Left(nodeId)) +
SubTreeSize
(Right(nodeId)) + (Next(nodeId) == NIL ? 1 :
SubTreeSize
(Next(nodeId)));
fx\src\data\System\Data\Selection.cs (1)
632
int span = records.
SubTreeSize
(records.Next(nodeId));