Show / Hide Table of Contents

Class Node<TK, TV>

Represents a node in a (binary) tree.

Inheritance
System.Object
Node<TK, TV>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Jometri
Assembly: Fusee.Jometri.dll
Syntax
public class Node<TK, TV>
Type Parameters
Name Description
TK

The key of the node as generic type.

TV

The payload of the node as generic type.

Constructors

Node(TK, TV)

Constructor, creates a new node.

Declaration
public Node(TK key, TV value)
Parameters
Type Name Description
TK key

The key of the new node.

TV value

Payload of the new node.

Fields

LeftNode

An item with lower value than the value of this node will become a LeftNode.

Declaration
public Node<TK, TV> LeftNode
Field Value
Type Description
Node<TK, TV>

RightNode

An item with higher value than the value of this node will become a RightNode.

Declaration
public Node<TK, TV> RightNode
Field Value
Type Description
Node<TK, TV>

Properties

Key

The key of the node - determines how a node is sorted into the tree.

Declaration
public TK Key { get; set; }
Property Value
Type Description
TK

Value

The payload of the node.

Declaration
public TV Value { get; set; }
Property Value
Type Description
TV
Generated by DocFX
GitHub Repo
Back to top