441442443444445446447448449
public Ptg[] getColComponents(int colNum){ FastAddVector v = new FastAddVector(); int[] x = this.getIntLocation(); if(x[1] == colNum)v.add(this); PtgRef[] pref = new PtgRef[v.size()]; v.toArray(pref); return pref; } }
782783784785786787788789790791792
// TODO: check rc sanity here int[] x = p.getRealIntLocation(); if(x[0] == rowNum)v.add(p); } PtgRef[] pref = new PtgRef[v.size()]; v.toArray(pref); return pref; } /** * @return */
259260261262263264265266267268269
}else{ v.add(operands[i]); } } Ptg[] res = new Ptg[v.size()]; res = (Ptg[]) v.toArray(res); return res; } /* * Get all components recurses through the ptg's and returns an array
156157158159160161162163164165166
// TODO: check rc sanity here int[] x = p.getIntLocation(); if(x[1] == colNum)v.add(p); } colrefs = new PtgRef[v.size()]; v.toArray(colrefs); return colrefs; } PtgRef[] comps = null;