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;
125 bool isAdjacentTo(
const Point & p1,
const Point & p2 );
152 Size
degree(
const Vertex & v );
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) static bool isAdjacentTo(const Point &p1, const Point &p2)
std::map< Vertex, Value > Type
static void selfDisplay(std::ostream &out)
MetricAdjacency & operator=(const MetricAdjacency &other)
DGtal::uint32_t Dimension
std::set< Vertex > VertexSet
Aim: Describes digital adjacencies in digital spaces that are defined with the 1-norm and the infinit...
static bool isProperlyAdjacentTo(const Point &p1, const Point &p2)
BOOST_CONCEPT_ASSERT((concepts::CSpace< TSpace >))
static void writeNeighbors(OutputIterator &it, const Vertex &v)
MetricAdjacency< Space, maxNorm1, dimension > Adjacency
Aim: Defines the concept describing a digital space, ie a cartesian product of integer lines...
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
static Size computeCapacity()
DGtal is the top-level namespace which contains all DGtal functions and types.
static Size degree(const Vertex &v)
UnsignedInteger Size
Type used to represent sizes in the digital space.
static Size bestCapacity()