Packagech.capi.data.tree
Interfacepublic interface IHeap extends IDataStructure
ImplementorsArrayHeap

Represents a heap data structure.



Public Properties
 PropertyDefined by
 InheritednextElement : *
Defines the next element that will be removed from the data structure.
IDataStructure
  sortFunction : Function
[read-only] Defines the sort function that will be used to sort the items.
IHeap
Public Methods
 MethodDefined by
 Inherited
add(element:*):void
Add an element to the data structure.
IDataStructure
 Inherited
clear():void
Removes all the elements from the data structure.
IDataStructure
  
contains(element:*):Boolean
Retrieves if the specified element is contained into the IHeap.
IHeap
 Inherited
isEmpty():Boolean
Get if the structure is empty or not.
IDataStructure
 Inherited
remove():*
Removes an element from the data structure.
IDataStructure
Property detail
sortFunctionproperty
sortFunction:Function  [read-only]

Defines the sort function that will be used to sort the items.

Implementation
    public function get sortFunction():Function
Method detail
contains()method
public function contains(element:*):Boolean

Retrieves if the specified element is contained into the IHeap.

Parameters
element:* — The element.

Returns
Booleantrue if the element is contained into the IHeap.