CatDisplayCategoryTable.doFindNestedSetBounds Method

Finds an appropriate gap of the nested set values under the record so a subtree with a given number of nodes can be added under the record.

Syntax

public container doFindNestedSetBounds(int64 _nNodes)

Run On

Called

Parameters

  • _nNodes
    Type: int64
    The number of nodes the subtree has to add under the record.

Return Value

Type: container
A container of two real values, the first is the left boundary value and the second is the right boundary value.

Remarks

The gap found is just the boundary values that are already being used by existing nodes.

Hence, the caller must not use the gap directly.

Values that are in the gap may be used.

Values larger than the left boundary value and smaller than the right boundary values may be used.

Note that the returned gap is not guaranteed to be sufficiently large enough for a subtree with the given number of nodes.

See Also

Reference

CatDisplayCategoryTable Table