| 265 | } |
| 266 | |
| 267 | void cPopulationInterface::GetNeighborhoodCellIDs(Apto::Array<int>& list) |
| 268 | { |
| 269 | cPopulationCell& cell = m_world->GetPopulation().GetCell(m_cell_id); |
| 270 | assert(cell.IsOccupied()); |
| 271 | |
| 272 | list.Resize(cell.ConnectionList().GetSize()); |
| 273 | tConstListIterator<cPopulationCell> it(cell.ConnectionList()); |
| 274 | int i = 0; |
| 275 | while (it.Next() != NULL) list[i++] = it.Get()->GetID(); |
| 276 | } |
| 277 | |
| 278 | void cPopulationInterface::GetAVNeighborhoodCellIDs(Apto::Array<int>& list, int av_num) |
| 279 | { |
no test coverage detected