For every ColPartition in the grid, finds its upper and lower neighbours.
| 1226 | |
| 1227 | // For every ColPartition in the grid, finds its upper and lower neighbours. |
| 1228 | void ColPartitionGrid::FindPartitionPartners() { |
| 1229 | ColPartitionGridSearch gsearch(this); |
| 1230 | gsearch.StartFullSearch(); |
| 1231 | ColPartition* part; |
| 1232 | while ((part = gsearch.NextFullSearch()) != NULL) { |
| 1233 | if (part->IsVerticalType()) { |
| 1234 | FindVPartitionPartners(true, part); |
| 1235 | FindVPartitionPartners(false, part); |
| 1236 | } else { |
| 1237 | FindPartitionPartners(true, part); |
| 1238 | FindPartitionPartners(false, part); |
| 1239 | } |
| 1240 | } |
| 1241 | } |
| 1242 | |
| 1243 | // Finds the best partner in the given direction for the given partition. |
| 1244 | // Stores the result with AddPartner. |
no test coverage detected