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; }
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; }