[source]

Class uvm_class_comp

uvm_pkg::uvm_class_comp <T> + comp(): bit

Inheritance Diagram of uvm_class_comp

CLASS

uvm_class_comp #(T)

This policy class is used to compare two objects of the same type.

Provides a comp method that compares two objects of type T. The class T must provide the method "function bit compare(T rhs)", similar to the uvm_object::compare method.

Parameters

Name

Default value

Description

T

int

Functions

static function bit comp ( int a, int b ) [source]