simple implementation of the Voronoi concept. More...
#include <voronoi.hpp>
Public Types | |
typedef metric_traits< Metric > ::VertexType | VertexType |
typedef std::multimap < VertexType, VertexType > | GeneratorsToVertices |
typedef std::unordered_set < VertexType, boost::hash < VertexType > > | GeneratorsSet |
typedef metric_traits< Metric > ::DistanceType | Dist |
typedef GeneratorsSet | Vertices |
Public Member Functions | |
voronoi (const GeneratorsSet &generators, Vertices vertices, const Metric &m, Dist costOfNoGenerator=std::numeric_limits< Dist >::max()) | |
Constructor. More... | |
voronoi (const voronoi &v) | |
Copy constructor. More... | |
voronoi (voronoi &&v) | |
Move constructor. More... | |
Dist | add_generator (VertexType f) |
returns diff between new cost and old cost | |
Dist | rem_generator (VertexType f) |
returns diff between new cost and old cost | |
const GeneratorsSet & | get_generators () const |
getter for generators More... | |
const Vertices & | get_vertices () const |
getter for vertices More... | |
auto | get_vertices_for_generator (VertexType g) const -> decltype(boost::as_array(m_generators_to_vertices.equal_range(g)|boost::adaptors::map_values)) |
getter for vertices assigned to specific generator More... | |
bool | operator== (const voronoi &vor) const |
operator== | |
simple implementation of the Voronoi concept.
Metric |
Definition at line 42 of file voronoi.hpp.
|
inline |
Constructor.
generators | |
vertices | |
m | |
costOfNoGenerator |
Definition at line 73 of file voronoi.hpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
getter for vertices assigned to specific generator
g |
Definition at line 188 of file voronoi.hpp.