![]() |
Quetzal-CoaTL
The Coalescence Template Library
|
#include <quetzal/utils/PointWithId.hpp>
Class to associate an indexing semantics to a collection of points.
it is mainly used when geographic coordinates are stored in a vector and that a pairwise matrix has to be computed: PointWithId class make easy to switch between geographic and indexing semantics.
Point | the class for which an indexing semantics is needed, usually GeographicCoordinates |
Public Member Functions | |
PointWithId (std::vector< Point > const &vect, size_t index) | |
Constructor. | |
PointWithId (std::vector< Point > const &vect, Point const &p) | |
Constructor. | |
Point | getPoint () const |
Getter. | |
size_t | getId () const |
Getter. | |
bool | operator== (PointWithId const &other) const |
Comparator. | |
bool | operator!= (PointWithId const &other) const |
Comparator. | |
|
inline |
Constructor.
vect | reference to the vector of coordinates |
index | index of the point in the vector |
|
inline |
Constructor.
vect | reference to the vector of coordinates |
p | point |
|
inline |
Getter.
|
inline |
Getter.
|
inline |
Comparator.
|
inline |
Comparator.