class tuple_comparator#( type T = tuple ) extends comparator#(T)
singleton Provides strategies to compare tuples.
| T | optional The type of a tuple object to be compared. The default is tuple (with its default parameters). |
| tuple_comparator | singleton Provides strategies to compare tuples. |
| Types | |
| this_type | The shorthand of pair_comparator #(T). |
| Functions | |
| new | protected Creates a new comparator. |
| get_instance | static Returns the singleton instance of this comparator. |
| eq | virtual Returns 1 if two tuples are equal. |
| lt | virtual Returns 1 if x is less than y. |
typedef tuple_comparator#( T ) this_type
The shorthand of pair_comparator #(T).
singleton Provides strategies to compare tuples.
class tuple_comparator#( type T = tuple ) extends comparator#(T)
Provides a tuple that carries up to ten values, which can be different types.
class tuple#( type T1 = int, type T2 = int, type T3 = int, type T4 = int, type T5 = int, type T6 = int, type T7 = int, type T8 = int, type T9 = int, type T10 = int )
The shorthand of pair_comparator #(T).
typedef tuple_comparator#( T ) this_type
singleton Provides strategies to compare pairs.
class pair_comparator#( type T = pair ) extends comparator#(T)
protected Creates a new comparator.
protected function new()
static Returns the singleton instance of this comparator.
static function this_type get_instance()
virtual Returns 1 if two tuples are equal.
virtual function bit eq( T x, T y )
virtual Returns 1 if x is less than y.
virtual function bit lt( T x, T y )