Class Node<T>
A node of a Bintree.
Inherited Members
Namespace: NetTopologySuite.Index.Bintree
Assembly: NetTopologySuite.dll
Syntax
[Serializable]
public class Node<T> : NodeBase<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
| Edit this page View SourceNode(Interval, int)
Creates a new node instance
Declaration
public Node(Interval interval, int level)
Parameters
| Type | Name | Description |
|---|---|---|
| Interval | interval | The node's interval |
| int | level | The node's level |
Properties
| Edit this page View SourceInterval
Gets the node's Interval
Declaration
public Interval Interval { get; }
Property Value
| Type | Description |
|---|---|
| Interval |
Methods
| Edit this page View SourceCreateExpanded(Node<T>, Interval)
Creates a larger node, that contains both node.Interval.Interval and addInterval
If node is null, a node for addInterval is created.
Declaration
public static Node<T> CreateExpanded(Node<T> node, Interval addInterval)
Parameters
| Type | Name | Description |
|---|---|---|
| Node<T> | node | The original node |
| Interval | addInterval | The additional interval |
Returns
| Type | Description |
|---|---|
| Node<T> | A new node |
CreateNode(Interval)
Creates a node
Declaration
public static Node<T> CreateNode(Interval itemInterval)
Parameters
| Type | Name | Description |
|---|---|---|
| Interval | itemInterval | The interval of the node item |
Returns
| Type | Description |
|---|---|
| Node<T> | A new node |
Find(Interval)
Returns the smallest existing node containing the envelope.
Declaration
public NodeBase<T> Find(Interval searchInterval)
Parameters
| Type | Name | Description |
|---|---|---|
| Interval | searchInterval |
Returns
| Type | Description |
|---|---|
| NodeBase<T> |
GetNode(Interval)
Returns the subnode containing the envelope. Creates the node if it does not already exist.
Declaration
public Node<T> GetNode(Interval searchInterval)
Parameters
| Type | Name | Description |
|---|---|---|
| Interval | searchInterval |
Returns
| Type | Description |
|---|---|
| Node<T> |
Insert(Node<T>)
Declaration
public void Insert(Node<T> node)
Parameters
| Type | Name | Description |
|---|---|---|
| Node<T> | node |
IsSearchMatch(Interval)
Declaration
protected override bool IsSearchMatch(Interval itemInterval)
Parameters
| Type | Name | Description |
|---|---|---|
| Interval | itemInterval |
Returns
| Type | Description |
|---|---|
| bool |