35#if defined(DigitalSetBySTLVector_RECURSES)
36#error Recursive header files inclusion detected in DigitalSetBySTLVector.h
39#define DigitalSetBySTLVector_RECURSES
41#if !defined DigitalSetBySTLVector_h
43#define DigitalSetBySTLVector_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"
79 template <
typename TDomain>
89 typedef typename std::vector<Point>::iterator
Iterator;
161 template <
typename Po
intInputIterator>
162 void insert( PointInputIterator first, PointInputIterator last );
190 template <
typename Po
intInputIterator>
191 void insertNew( PointInputIterator first, PointInputIterator last );
288 template<
typename TOutputIterator >
375 template <
typename Domain>
385#include "DGtal/kernel/sets/DigitalSetBySTLVector.ih"
392#undef DigitalSetBySTLVector_RECURSES
Aim: This class encapsulates its parameter class to indicate that the given parameter is required to ...
Aim: Copy on write shared pointer.
Aim: Realizes the concept CDigitalSet by using the STL container std::vector.
CowPtr< Domain > domainPointer() const
Size erase(const Point &p)
void insert(PointInputIterator first, PointInputIterator last)
DigitalSetBySTLVector & operator=(const DigitalSetBySTLVector &other)
void insertNew(const Point &p)
std::vector< Point >::iterator MutableIterator
void computeBoundingBox(Point &lower, Point &upper) const
std::vector< Point >::const_iterator ConstIterator
std::string className() const
bool operator()(const Point &p) const
std::vector< Point >::iterator Iterator
std::vector< Point > myVector
DigitalSetBySTLVector< Domain > Self
DigitalSetBySTLVector(Clone< Domain > d)
std::vector< Point > Container
DigitalSetBySTLVector(const DigitalSetBySTLVector &other)
void insertNew(PointInputIterator first, PointInputIterator last)
Iterator find(const Point &p)
void computeComplement(TOutputIterator &ito) const
void erase(Iterator first, Iterator last)
void insert(const Point &p)
void selfDisplay(std::ostream &out) const
ConstIterator find(const Point &p) const
ConstIterator begin() const
const Domain & domain() const
void assignFromComplement(const DigitalSetBySTLVector< Domain > &other_set)
const Container & container() const
CowPtr< Domain > myDomain
ConstIterator end() const
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
Vector lower(const Vector &z, unsigned int k)
Vector upper(const Vector &z, unsigned int k)