public class CompareList extends java.lang.Object implements java.lang.Iterable<CellContext>
Constructor and Description |
---|
CompareList(Cell cell,
com.sun.electric.tool.ncc.basic.CellUsage use1,
com.sun.electric.tool.ncc.basic.CellUsage use2,
java.util.Set<Cell.CellGroup> visitedGroups)
Collect all Cells in cell's CellGroup that are used by our designs.
|
Modifier and Type | Method and Description |
---|---|
boolean |
empty()
Say whether or not there are any CellContexts in CompareList.
|
boolean |
isSafeToCheckSizes()
Say whether or not transistors sizes can be accurately determined
for this CompareList.
|
java.util.Iterator<CellContext> |
iterator()
Get all the CellContexts in this CompareList.
|
void |
printCells()
printCells is useful for debugging
|
public CompareList(Cell cell, com.sun.electric.tool.ncc.basic.CellUsage use1, com.sun.electric.tool.ncc.basic.CellUsage use2, java.util.Set<Cell.CellGroup> visitedGroups)
Since Java-Electric's CellGroups can't span libraries, simulate the addition of Cells (e.g. from other libraries) to a CellGroup using the joinGroup annotation.
Tricky: If a Cell is used in two layouts or two schematics then that Cell will occur twice in returned List, each with a different VarContext. This has advantages and pitfalls.
public void printCells()
public java.util.Iterator<CellContext> iterator()
iterator
in interface java.lang.Iterable<CellContext>
public boolean empty()
public boolean isSafeToCheckSizes()