immutable class PQMIN{T < $IS_LT{T}} < $IS_LT{PQMIN{T}}
****
Wrapper that inverts the < behavior, so that the priority queue will be sorted based on the > relationship i.e. minimal elements will be extracted first
_


Ancestors
$IS_LT{_} $IS_EQ



Public


Readable Attributes
attr element: T;

Writable Attributes
attr element: T;

Features
create(e: T): SAME
is_eq(e: SAME): BOOL
is_eq(arg: $OB): BOOL .. Included as is_eq
**** Overloaded version of the is_eq routine that works with an argument of any type. If the type of the 'arg' is not the same as they type of 'self' then return false. Otherwise, deletegate to the 'real' is_eq(SAME):BOOL routine
is_lt(e:SAME):BOOL
**** Return true is self is GREATER than "e" i.e. invert the relationship
str(e: T): STR

The Sather Home Page