コード例 #1
0
 //constructor
 public HeapTreeImplementation(HeapPriorityType priorityType)
 {
     _nodeCount    = 0;
     _priorityType = priorityType;
     _rootNode     = new HeapNode <K, T>(null, priorityType);
 }
コード例 #2
0
 //constructor
 public HeapNode(HeapNode <K, T> parent, HeapPriorityType priority)
 {
     _parent   = parent;
     _priority = priority;
 }