Add iterator function to LazyModule to iterate over all nodes
This commit is contained in:
parent
f1cb06142e
commit
59eb7c24ee
@ -85,6 +85,11 @@ abstract class LazyModule()(implicit val p: Parameters)
|
||||
} }
|
||||
children.filter(!_.omitGraphML).foreach { c => c.edgesGraphML(buf, pad) }
|
||||
}
|
||||
|
||||
def nodeIterator(iterfunc: (LazyModule) => Unit): Unit = {
|
||||
iterfunc(this)
|
||||
children.foreach( _.nodeIterator(iterfunc) )
|
||||
}
|
||||
}
|
||||
|
||||
object LazyModule
|
||||
|
Loading…
Reference in New Issue
Block a user