| 58 | |
| 59 | |
| 60 | void BasePointTable::addSpatialReference(const SpatialReference& spatialRef) |
| 61 | { |
| 62 | auto it = std::find(m_spatialRefs.begin(), m_spatialRefs.end(), spatialRef); |
| 63 | |
| 64 | // If not found, add to the beginning. |
| 65 | if (it == m_spatialRefs.end()) |
| 66 | m_spatialRefs.push_front(spatialRef); |
| 67 | // If not the first element, move the found element to the front. |
| 68 | else if (it != m_spatialRefs.begin()) |
| 69 | m_spatialRefs.splice(m_spatialRefs.begin(), m_spatialRefs, it); |
| 70 | } |
| 71 | |
| 72 | |
| 73 | ArtifactManager& BasePointTable::artifactManager() |