protectedintm_max_size;protectedintm_max_value;externfunctionvoidcalculate_max_widths();endclass//------------------------------------------------------------------------------//// Class: uvm_tree_printer//// By overriding various methods of the <uvm_printer> super class,// the tree printer prints output in a tree format.//// The following shows sample output from the tree printer.////| c1: (container@1013) {//| d1: (mydata@1022) {
classuvm_tree_printerextendsuvm_printer;stringnewline="\n";// Variable: new//// Creates a new instance of ~uvm_tree_printer~.externfunctionnew();// Function: emit//// Formats the collected information from prior calls to ~print_*~// into hierarchical tree format.//externvirtualfunctionstringemit();endclass
// @uvm-ieee 1800.2-2020 auto 16.2.11.1classuvm_tree_printerextendsuvm_printer;protectedstringm_newline="\n";protectedstringm_linefeed;// @uvm-ieee 1800.2-2020 auto 16.2.11.2.2`uvm_object_utils(uvm_tree_printer)// Variable -- NODOCS -- new//// Creates a new instance of ~uvm_tree_printer~.// @uvm-ieee 1800.2-2020 auto 16.2.11.2.1externfunctionnew(stringname="");// @uvm-ieee 1800.2-2020 auto 16.2.11.2.3externstaticfunctionvoidset_default(uvm_tree_printerprinter);// @uvm-ieee 1800.2-2020 auto 16.2.11.2.4