31 #if defined(MetricAdjacency_RECURSES)
32 #error Recursive header files inclusion detected in MetricAdjacency.h
33 #else // defined(MetricAdjacency_RECURSES)
35 #define MetricAdjacency_RECURSES
37 #if !defined MetricAdjacency_h
39 #define MetricAdjacency_h
46 #include "DGtal/base/Common.h"
47 #include "DGtal/kernel/CSpace.h"
48 #include "DGtal/kernel/SpaceND.h"
49 #include "DGtal/kernel/BasicPointPredicates.h"
77 template <
typename TSpace,
Dimension maxNorm1,
97 typedef typename std::map<Vertex, Value>
Type;
165 template <
typename OutputIterator>
187 template <
typename OutputIterator,
typename VertexPredicate>
192 const VertexPredicate & pred);
248 template <
typename TSpace, Dimension maxNorm1>
252 TSpace::dimension > &
object );
259 #include "DGtal/topology/MetricAdjacency.ih"
264 #endif // !defined MetricAdjacency_h
266 #undef MetricAdjacency_RECURSES
267 #endif // else defined(MetricAdjacency_RECURSES)
Aim: Defines the concept describing a digital space, ie a cartesian product of integer lines.
UnsignedInteger Size
Type used to represent sizes in the digital space.
DGtal::uint32_t Dimension
static Size bestCapacity()
Aim: Describes digital adjacencies in digital spaces that are defined with the 1-norm and the infinit...
DGtal is the top-level namespace which contains all DGtal functions and types.
static Size degree(const Vertex &v)
MetricAdjacency & operator=(const MetricAdjacency &other)
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
std::set< Vertex > VertexSet
static bool isAdjacentTo(const Point &p1, const Point &p2)
MetricAdjacency< Space, maxNorm1, dimension > Adjacency
std::map< Vertex, Value > Type
static void writeNeighbors(OutputIterator &it, const Vertex &v, const VertexPredicate &pred)
static Size computeCapacity()
MetricAdjacency(const MetricAdjacency &other)
BOOST_CONCEPT_ASSERT((concepts::CSpace< TSpace >))
static void selfDisplay(std::ostream &out)
static bool isProperlyAdjacentTo(const Point &p1, const Point &p2)
static void writeNeighbors(OutputIterator &it, const Vertex &v)