예제 #1
0
 public static PortSet FindAllPorts(IEnumerable<Signal> rootSignals, Predicate<Port> match, bool ignoreHold)
 {
     ConditionalCollectVisitor visitor = new ConditionalCollectVisitor(match);
     AllPortsStrategy.Instance.Traverse(rootSignals, visitor, ignoreHold);
     return visitor.Ports;
 }
예제 #2
0
 public static SignalSet FindAllSignals(Port rootPort, Predicate<Signal> match, bool ignoreHold)
 {
     ConditionalCollectVisitor visitor = new ConditionalCollectVisitor(match);
     AllSignalsStrategy.Instance.Traverse(rootPort, visitor, ignoreHold);
     return visitor.Signals;
 }