/** * Flatten the Structures into a 1D array of Structures of length getTotalNumberOfStructures(). * @return Array of Structures */ public ArrayStructure flatten() { ArrayStructureW aw = new ArrayStructureW( getStructureMembers(), new int[] {total}); for (int i=0; i<total; i++) { StructureData sdata = new StructureDataA( this, i); aw.setStructureData(sdata, i); } return aw; }
/** * Flatten the Structures into a 1D array of Structures of length getTotalNumberOfStructures(). * @return Array of Structures */ public ArrayStructure flatten() { ArrayStructureW aw = new ArrayStructureW( getStructureMembers(), new int[] {total}); for (int i=0; i<total; i++) { StructureData sdata = new StructureDataA( this, i); aw.setStructureData(sdata, i); } return aw; }
/** * Flatten the Structures into a 1D array of Structures of length getTotalNumberOfStructures(). * @return Array of Structures */ public ArrayStructure flatten() { ArrayStructureW aw = new ArrayStructureW( getStructureMembers(), new int[] {total}); for (int i=0; i<total; i++) { StructureData sdata = new StructureDataA( this, i); aw.setStructureData(sdata, i); } return aw; }