gambas-source-code/main/lib/data/gb.data/.src/_PrioSet_Entry.class
Tobias Boege 77ecdfeae5 [GB.DATA]
* NEW: Heap: Change the way objects are identified in Update.
* NEW: gb.data has a part written in Gambas now.
* NEW: PrioSet is a weaker (WRT ordering) variant of a PrioQueue which
  allows operations to be reasonably more efficient.



git-svn-id: svn://localhost/gambas/trunk@6472 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-09-14 00:18:58 +00:00

17 lines
302 B
Text

' Gambas class file
Public Data As Variant
Public Prio As Integer
Public Sub _new(vData As Variant, iPrio As Integer)
Data = vData
Prio = iPrio
End
Public Sub _compare(hOther As _PrioSet_Entry) As Integer
Return Sgn(Prio - hOther.Prio)
End
Public Sub _identity() As Variant
Return Data
End