Provides access to the memory storing the point data. Though this function is public, other access methods are safer and preferred.
| 325 | /// Provides access to the memory storing the point data. Though this |
| 326 | /// function is public, other access methods are safer and preferred. |
| 327 | char *getOrAddPoint(PointId id) |
| 328 | { |
| 329 | if (id == size()) |
| 330 | { |
| 331 | m_index.push_back(m_pointTable.addPoint()); |
| 332 | ++m_size; |
| 333 | } |
| 334 | |
| 335 | return m_pointTable.getPoint(m_index.at(id)); |
| 336 | } |
| 337 | |
| 338 | MetadataNode toMetadata() const; |
| 339 |