31#if defined(DomainAdjacency_RECURSES)
32#error Recursive header files inclusion detected in DomainAdjacency.h
35#define DomainAdjacency_RECURSES
37#if !defined DomainAdjacency_h
39#define DomainAdjacency_h
45#include "DGtal/base/Common.h"
46#include "DGtal/base/ConstAlias.h"
47#include "DGtal/kernel/domains/CDomain.h"
48#include "DGtal/kernel/domains/DomainPredicate.h"
49#include "DGtal/topology/CAdjacency.h"
50#include "DGtal/kernel/sets/DigitalSetSelector.h"
72 template <
typename TDomain,
typename TAdjacency>
80 typedef typename TDomain::Space
Space;
82 typedef typename TDomain::Point
Point;
94 typedef typename std::map<Vertex, Value>
Type;
180 template <
typename OutputIterator>
201 template <
typename OutputIterator,
typename VertexPredicate>
205 const VertexPredicate & pred)
const;
267 template <
typename TDomain,
typename TAdjacency>
277#include "DGtal/topology/DomainAdjacency.ih"
284#undef DomainAdjacency_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Aim: Given a domain and an adjacency, limits the given adjacency to the specified domain for all adja...
BOOST_CONCEPT_ASSERT((concepts::CDomain< TDomain >))
functors::DomainPredicate< Domain > Predicate
void writeNeighbors(OutputIterator &it, const Vertex &v) const
DigitalSetSelector< Domain, SMALL_DS+HIGH_ITER_DS >::Type VertexSet
DomainAdjacency & operator=(const DomainAdjacency &other)
DomainAdjacency(const DomainAdjacency &other)
bool isAdjacentTo(const Point &p1, const Point &p2) const
DomainAdjacency(ConstAlias< Domain > aDomain, ConstAlias< Adjacency > adjacency)
const Domain & domain() const
const Adjacency & myAdjacency
void writeNeighbors(OutputIterator &it, const Vertex &v, const VertexPredicate &pred) const
BOOST_CONCEPT_ASSERT((concepts::CAdjacency< TAdjacency >))
const Predicate & predicate() const
Size degree(const Vertex &v) const
Size bestCapacity() const
bool isProperlyAdjacentTo(const Point &p1, const Point &p2) const
void selfDisplay(std::ostream &out) const
size_t Size
Type used to represent sizes in the digital space.
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
Aim: Automatically defines an adequate digital set type according to the hints given by the user.
std::map< Vertex, Value > Type
Aim: The concept CAdjacency defines an elementary adjacency relation between points of a digital spac...
Aim: This concept represents a digital domain, i.e. a non mutable subset of points of the given digit...