|
1 |
| -namespace DataStructures.AATree |
| 1 | +namespace DataStructures.AATree; |
| 2 | + |
| 3 | +/// <summary> |
| 4 | +/// Generic node class for AATree. |
| 5 | +/// </summary> |
| 6 | +/// <typeparam name="TKey">Type of key for node.</typeparam> |
| 7 | +public class AaTreeNode<TKey> |
2 | 8 | {
|
3 | 9 | /// <summary>
|
4 |
| - /// Generic node class for AATree. |
| 10 | + /// Initializes a new instance of the <see cref="AaTreeNode{TKey}" /> class. |
5 | 11 | /// </summary>
|
6 |
| - /// <typeparam name="TKey">Type of key for node.</typeparam> |
7 |
| - public class AaTreeNode<TKey> |
| 12 | + /// <param name="key">The initial key of this node.</param> |
| 13 | + /// <param name="level">The level of this node. See <see cref="AaTree{TKey}" /> for more details.</param> |
| 14 | + public AaTreeNode(TKey key, int level) |
8 | 15 | {
|
9 |
| - /// <summary> |
10 |
| - /// Initializes a new instance of the <see cref="AaTreeNode{TKey}" /> class. |
11 |
| - /// </summary> |
12 |
| - /// <param name="key">The initial key of this node.</param> |
13 |
| - /// <param name="level">The level of this node. See <see cref="AaTree{TKey}" /> for more details.</param> |
14 |
| - public AaTreeNode(TKey key, int level) |
15 |
| - { |
16 |
| - Key = key; |
17 |
| - Level = level; |
18 |
| - } |
| 16 | + Key = key; |
| 17 | + Level = level; |
| 18 | + } |
19 | 19 |
|
20 |
| - /// <summary> |
21 |
| - /// Gets or Sets key for this node. |
22 |
| - /// </summary> |
23 |
| - public TKey Key { get; set; } |
| 20 | + /// <summary> |
| 21 | + /// Gets or Sets key for this node. |
| 22 | + /// </summary> |
| 23 | + public TKey Key { get; set; } |
24 | 24 |
|
25 |
| - /// <summary> |
26 |
| - /// Gets or Sets level for this node. |
27 |
| - /// </summary> |
28 |
| - public int Level { get; set; } |
| 25 | + /// <summary> |
| 26 | + /// Gets or Sets level for this node. |
| 27 | + /// </summary> |
| 28 | + public int Level { get; set; } |
29 | 29 |
|
30 |
| - /// <summary> |
31 |
| - /// Gets or sets the left subtree of this node. |
32 |
| - /// </summary> |
33 |
| - public AaTreeNode<TKey>? Left { get; set; } |
| 30 | + /// <summary> |
| 31 | + /// Gets or sets the left subtree of this node. |
| 32 | + /// </summary> |
| 33 | + public AaTreeNode<TKey>? Left { get; set; } |
34 | 34 |
|
35 |
| - /// <summary> |
36 |
| - /// Gets or sets the right subtree of this node. |
37 |
| - /// </summary> |
38 |
| - public AaTreeNode<TKey>? Right { get; set; } |
39 |
| - } |
| 35 | + /// <summary> |
| 36 | + /// Gets or sets the right subtree of this node. |
| 37 | + /// </summary> |
| 38 | + public AaTreeNode<TKey>? Right { get; set; } |
40 | 39 | }
|
0 commit comments