Defines base class for heap element. The heap element stores an interface in the heap element,
A heap is a complete binary tree where every node's value is guaranteed to be greater than its children's values. This class manages a node in the binary tree. Descendant classes override this class to provide the sorting node value.
Namespace: DataStructures
TPersistent
DataStructures.TIHeapElement
|
Delphi
|
type
TIHeapElement = class(TPersistent)
end;
|
|
Name
|
Description
|
|
Index
|
Represents property Index.
|
|
Item
|
Specifies an interface associated with the heap element. This is the interface to store in the heap, not the value that defines the heap order.
|
Top
|
|
Name
|
Description
|
|
Assign(TPersistent)
|
Represents method Assign(TPersistent).
|
|
Clear
|
Clear or resets the heap element.
|
|
Clone
|
Creates a copy of the heap element.
Note
|
It is the responsibility of the calling method to free the copy.
|
|
Top
|