|
DGtal 1.4.2
|
Aim: The archetype of a container class for storing sets of digital points within some given domain. More...
#include <DGtal/kernel/sets/CDigitalSetArchetype.h>
Public Types | |
| typedef TDomain | Domain |
| typedef Domain::Point | Point |
| typedef Domain::Size | Size |
| typedef CSinglePassIteratorArchetype< Point > | Iterator |
| typedef Iterator | ConstIterator |
Public Member Functions | |
| ~CDigitalSetArchetype () | |
| CDigitalSetArchetype (const Domain &d) | |
| CDigitalSetArchetype (const CDigitalSetArchetype &other) | |
| CDigitalSetArchetype & | operator= (const CDigitalSetArchetype &other) |
| const Domain & | domain () const |
| CowPtr< Domain > | domainPointer () const |
| Size | size () const |
| bool | empty () const |
| void | insert (const Point &p) |
| template<typename PointInputIterator > | |
| void | insert (PointInputIterator first, PointInputIterator last) |
| void | insertNew (const Point &p) |
| template<typename PointInputIterator > | |
| void | insertNew (PointInputIterator first, PointInputIterator last) |
| Size | erase (const Point &p) |
| void | erase (Iterator it) |
| void | erase (Iterator first, Iterator last) |
| void | clear () |
| ConstIterator | find (const Point &p) const |
| Iterator | find (const Point &p) |
| ConstIterator | begin () const |
| ConstIterator | end () const |
| Iterator | begin () |
| Iterator | end () |
| CDigitalSetArchetype< Domain > & | operator+= (const CDigitalSetArchetype< Domain > &aSet) |
| bool | operator() (const Point &p) const |
| template<typename TOutputIterator > | |
| void | computeComplement (TOutputIterator &ito) const |
| void | assignFromComplement (const CDigitalSetArchetype< Domain > &other_set) |
| void | computeBoundingBox (Point &lower, Point &upper) const |
| void | selfDisplay (std::ostream &out) const |
| bool | isValid () const |
Aim: The archetype of a container class for storing sets of digital points within some given domain.
Description of template class 'CDigitalSetArchetype'
Archetype of CDigitalSet.
Definition at line 72 of file CDigitalSetArchetype.h.
| Iterator DGtal::concepts::CDigitalSetArchetype< TDomain >::ConstIterator |
Definition at line 80 of file CDigitalSetArchetype.h.
| TDomain DGtal::concepts::CDigitalSetArchetype< TDomain >::Domain |
Definition at line 75 of file CDigitalSetArchetype.h.
| CSinglePassIteratorArchetype<Point> DGtal::concepts::CDigitalSetArchetype< TDomain >::Iterator |
Definition at line 79 of file CDigitalSetArchetype.h.
| Domain::Point DGtal::concepts::CDigitalSetArchetype< TDomain >::Point |
Definition at line 76 of file CDigitalSetArchetype.h.
| Domain::Size DGtal::concepts::CDigitalSetArchetype< TDomain >::Size |
Definition at line 77 of file CDigitalSetArchetype.h.
|
inline |
|
inline |
Constructor. Creates the empty set in the domain [d].
| d | any domain. |
Definition at line 96 of file CDigitalSetArchetype.h.
|
inline |
Copy constructor.
| other | the object to clone. |
Definition at line 102 of file CDigitalSetArchetype.h.
|
inline |
Builds the complement in the domain of the set [other_set] in this.
| other_set | defines the set whose complement is assigned to 'this'. |
Definition at line 281 of file CDigitalSetArchetype.h.
|
inline |
Definition at line 237 of file CDigitalSetArchetype.h.
|
inline |
Definition at line 225 of file CDigitalSetArchetype.h.
|
inline |
Clears the set.
Definition at line 207 of file CDigitalSetArchetype.h.
|
inline |
Computes the bounding box of this set.
| lower | the first point of the bounding box (lowest in all directions). |
| upper | the last point of the bounding box (highest in all directions). |
Definition at line 292 of file CDigitalSetArchetype.h.
|
inline |
Computes the complement in the domain of this set
| ito | an output iterator |
| TOutputIterator | a model of output iterator |
Definition at line 273 of file CDigitalSetArchetype.h.
|
inline |
Definition at line 115 of file CDigitalSetArchetype.h.
|
inline |
Definition at line 120 of file CDigitalSetArchetype.h.
|
inline |
Definition at line 133 of file CDigitalSetArchetype.h.
|
inline |
Definition at line 243 of file CDigitalSetArchetype.h.
|
inline |
Definition at line 231 of file CDigitalSetArchetype.h.
|
inline |
Removes point [p] from the set.
| p | the point to remove. |
Definition at line 184 of file CDigitalSetArchetype.h.
|
inline |
Removes the collection of points specified by the two iterators from this set.
| first | the start point in this set. |
| last | the last point in this set. |
Definition at line 201 of file CDigitalSetArchetype.h.
|
inline |
Removes the point pointed by [it] from the set.
| it | an iterator on this set. Note: generally faster than giving just the point. |
Definition at line 192 of file CDigitalSetArchetype.h.
|
inline |
| p | any digital point. |
Definition at line 219 of file CDigitalSetArchetype.h.
|
inline |
| p | any digital point. |
Definition at line 212 of file CDigitalSetArchetype.h.
|
inline |
Adds point [p] to this set.
| p | any digital point. |
Definition at line 141 of file CDigitalSetArchetype.h.
|
inline |
Adds the collection of points specified by the two iterators to this set.
| first | the start point in the collection of Point. |
| last | the last point in the collection of Point. |
Definition at line 152 of file CDigitalSetArchetype.h.
|
inline |
Adds point [p] to this set if the point is not already in the set.
| p | any digital point. |
Definition at line 163 of file CDigitalSetArchetype.h.
|
inline |
Adds the collection of points specified by the two iterators to this set.
| first | the start point in the collection of Point. |
| last | the last point in the collection of Point. |
Definition at line 176 of file CDigitalSetArchetype.h.
|
inline |
Checks the validity/consistency of the object.
Definition at line 308 of file CDigitalSetArchetype.h.
|
inline |
| p | any point. |
Definition at line 261 of file CDigitalSetArchetype.h.
|
inline |
set union to left.
| aSet | any other set. |
Definition at line 250 of file CDigitalSetArchetype.h.
|
inline |
Assignment.
| other | the object to copy. |
Definition at line 109 of file CDigitalSetArchetype.h.
|
inline |
Writes/Displays the object on an output stream.
| out | the output stream where the object is written. |
Definition at line 302 of file CDigitalSetArchetype.h.
|
inline |
Definition at line 128 of file CDigitalSetArchetype.h.