CellList* makeCellList(SsProject* proj) { // セルデータの出力と、全てセルデータを集約したリストを作る CellList* cellList = new std::map<const SsCell*, int>(); int cellListIndex = 0; for (size_t mapIndex = 0; mapIndex < proj->cellmapList.size(); mapIndex++) { const SsCellMap* cellMap = proj->cellmapList[mapIndex]; for (size_t cellIndex = 0; cellIndex < cellMap->cells.size(); cellIndex++) { const SsCell* cell = cellMap->cells[cellIndex]; cellList->insert(CellList::value_type(cell, cellListIndex++)); } } return cellList; }