In a queue of a class/Transaction holding multiple variables and queues.
Is it possible to use find_index to search the second level of queues along with the first level?
Haven’t been able to find any language in the LRM that points to it, alternative is to sequentially match one step at a time.
Adding a simple example below:
class A;
int sub_q1[$];
int sub_q2[$]
endclass: A
class B;
A bad_idea_q[$];
function match(int addr1, int addr2);
int match_q[$];
match_q = bad_idea_q.find_index with ( item.sub_q1[x]==addr1 && item.sub_q2[y]==addr2);
endfunction
endclass: B