35#if defined(DigitalSetBySTLSet_RECURSES)
36#error Recursive header files inclusion detected in DigitalSetBySTLSet.h
39#define DigitalSetBySTLSet_RECURSES
41#if !defined DigitalSetBySTLSet_h
43#define DigitalSetBySTLSet_h
50#include "DGtal/base/Common.h"
51#include "DGtal/base/CowPtr.h"
52#include "DGtal/base/Clone.h"
53#include "DGtal/base/Alias.h"
54#include "DGtal/base/ConstAlias.h"
55#include "DGtal/kernel/domains/CDomain.h"
83 template <
typename TDomain,
typename TCompare = std::less<
typename TDomain::Po
int> >
94 typedef typename std::set<Point>::iterator
Iterator;
169 template <
typename Po
intInputIterator>
170 void insert( PointInputIterator first, PointInputIterator last );
193 template <
typename Po
intInputIterator>
194 void insertNew( PointInputIterator first, PointInputIterator last );
293 template<
typename TOutputIterator >
383 template <
typename Domain,
typename Compare>
392#include "DGtal/kernel/sets/DigitalSetBySTLSet.ih"
399#undef DigitalSetBySTLSet_RECURSES
Aim: This class encapsulates its parameter class to indicate that the given parameter is required to ...
Aim: Copy on write shared pointer.
Aim: A container class for storing sets of digital points within some given domain.
void selfDisplay(std::ostream &out) const
std::set< Point, Compare > mySet
void insert(const Point &p)
DigitalSetBySTLSet(Clone< Domain > d, const Compare &c=Compare())
const Container & container() const
CowPtr< Domain > domainPointer() const
const Domain & domain() const
void computeComplement(TOutputIterator &ito) const
DigitalSetBySTLSet & operator=(const DigitalSetBySTLSet &other)
ConstIterator end() const
bool operator()(const Point &p) const
CowPtr< Domain > myDomain
void insertNew(const Point &p)
void assignFromComplement(const DigitalSetBySTLSet< Domain, Compare > &other_set)
ConstIterator find(const Point &p) const
std::set< Point > Container
void insertNew(PointInputIterator first, PointInputIterator last)
Size erase(const Point &p)
void computeBoundingBox(Point &lower, Point &upper) const
void insert(PointInputIterator first, PointInputIterator last)
Iterator find(const Point &p)
std::set< Point >::iterator Iterator
BOOST_CONCEPT_ASSERT((concepts::CDomain< TDomain >))
Concept checks.
std::string className() const
DigitalSetBySTLSet< Domain, Compare > Self
std::set< Point >::const_iterator ConstIterator
DigitalSetBySTLSet(const DigitalSetBySTLSet &other)
void erase(Iterator first, Iterator last)
ConstIterator begin() const
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
Aim: This concept represents a digital domain, i.e. a non mutable subset of points of the given digit...
Vector lower(const Vector &z, unsigned int k)
Vector upper(const Vector &z, unsigned int k)