Callbacks Classes

UVMkit » 1800.2-2017

This section defines the classes used for callback registration, management, and user-defined callbacks.

Summary
Callbacks Classes
This section defines the classes used for callback registration, management, and user-defined callbacks.

uvm_callbacks#(T, CB)

Implementation of uvm_callbacks#(T,CB) class, as defined in section 10.7.2.1.

class uvm_callbacks #(type T=uvm_object, type CB=uvm_callback)
Summary
uvm_callbacks#(T, CB)
Implementation of uvm_callbacks#(T,CB) class, as defined in section 10.7.2.1.
Methods
get_allPopulates the end of the all_callbacks queue with the list of all registered callbacks for obj (whether they are enabled or disabled).

get_all

Populates the end of the all_callbacks queue with the list of all registered callbacks for obj (whether they are enabled or disabled).

If obj is null, then all_callbacks shall be populated with all registered typewide callbacks.  If obj is not null, then all_callbacks shall be populated with both the typewide and instance callbacks (if any) registered for obj.

NOTE: This API contradicts the definition provided in section 10.7.2.5 of the P1800.2-2017 LRM.  See DEVIATIONS.md for additional details.

static function void get_all( ref CB all_callbacks[$], input T obj=null );

@uvm-contrib This API is being considered for potential contribution to 1800.2