|
DGtal 2.0.0
|
Aim: model of CConstBidirectionalRangeFromPoint and CBidirectionalRangeWithWritableIteratorFromPoint that adapts the domain of an image in order to iterate over the values associated to its domain points (in a read-only as well as a write-only manner). More...
#include <DGtal/images/DefaultImageRange.h>
Public Types | |
| typedef TImage::Domain | Domain |
| typedef TImage::Point | Point |
| typedef TImage::Value | Value |
| typedef ConstIteratorAdapter< typename Domain::ConstIterator, TImage, Value > | ConstIterator |
| typedef boost::reverse_iterator< ConstIterator > | ConstReverseIterator |
| typedef SetValueIterator< TImage > | OutputIterator |
| output iterator types | |
| typedef SetValueIterator< TImage, typename Domain::ConstReverseIterator > | ReverseOutputIterator |
Public Member Functions | |
| BOOST_CONCEPT_ASSERT ((concepts::CTrivialImage< TImage >)) | |
| BOOST_CONCEPT_ASSERT ((concepts::CDomain< Domain >)) | |
| constant iterator types | |
| DefaultImageRange (TImage &aImage) | |
| DefaultImageRange (const DefaultImageRange &other) | |
| DefaultImageRange & | operator= (const DefaultImageRange &other) |
| ~DefaultImageRange () | |
| bool | isValid () const |
| ConstIterator | begin () const |
| ConstIterator | begin (const Point &aPoint) const |
| ConstIterator | end () const |
| ConstReverseIterator | rbegin () const |
| ConstReverseIterator | rbegin (const Point &aPoint) const |
| ConstReverseIterator | rend () const |
| OutputIterator | outputIterator () const |
| OutputIterator | outputIterator (const Point &aPoint) const |
| ReverseOutputIterator | routputIterator () const |
| ReverseOutputIterator | routputIterator (const Point &aPoint) const |
Private Attributes | |
| TImage * | myImagePtr |
Aim: model of CConstBidirectionalRangeFromPoint and CBidirectionalRangeWithWritableIteratorFromPoint that adapts the domain of an image in order to iterate over the values associated to its domain points (in a read-only as well as a write-only manner).
| TImage | a model of CImage mapping points to values |
NB: the underlying image is stored as an aliasing pointer in order to avoid copies. As a consequence the pointed object must exist and must not be deleted during the use of any instance of this class.
TODO: inherits from DefaultConstImageRange
Definition at line 77 of file DefaultImageRange.h.
| typedef ConstIteratorAdapter<typename Domain::ConstIterator,TImage,Value> DGtal::DefaultImageRange< TImage >::ConstIterator |
Definition at line 91 of file DefaultImageRange.h.
| typedef boost::reverse_iterator<ConstIterator> DGtal::DefaultImageRange< TImage >::ConstReverseIterator |
Definition at line 92 of file DefaultImageRange.h.
| typedef TImage::Domain DGtal::DefaultImageRange< TImage >::Domain |
Definition at line 85 of file DefaultImageRange.h.
| typedef SetValueIterator<TImage> DGtal::DefaultImageRange< TImage >::OutputIterator |
output iterator types
Definition at line 95 of file DefaultImageRange.h.
| typedef TImage::Point DGtal::DefaultImageRange< TImage >::Point |
Definition at line 86 of file DefaultImageRange.h.
| typedef SetValueIterator<TImage, typename Domain::ConstReverseIterator> DGtal::DefaultImageRange< TImage >::ReverseOutputIterator |
Definition at line 96 of file DefaultImageRange.h.
| typedef TImage::Value DGtal::DefaultImageRange< TImage >::Value |
Definition at line 87 of file DefaultImageRange.h.
|
inline |
Standard constructor from an image.
| aImage | any image. |
Definition at line 105 of file DefaultImageRange.h.
|
inline |
Copy constructor.
| other | the iterator to clone. |
Definition at line 112 of file DefaultImageRange.h.
|
inline |
|
inline |
Iterator service.
Definition at line 156 of file DefaultImageRange.h.
Referenced by DGtal::DefaultImageRange< Self >::rend().
|
inline |
Iterator service.
| aPoint | any point |
Definition at line 166 of file DefaultImageRange.h.
| DGtal::DefaultImageRange< TImage >::BOOST_CONCEPT_ASSERT | ( | (concepts::CDomain< Domain >) | ) |
constant iterator types
| DGtal::DefaultImageRange< TImage >::BOOST_CONCEPT_ASSERT | ( | (concepts::CTrivialImage< TImage >) | ) |
|
inline |
Iterator service.
Definition at line 175 of file DefaultImageRange.h.
Referenced by DGtal::DefaultImageRange< Self >::rbegin().
|
inline |
Checks the validity/consistency of the object.
Definition at line 138 of file DefaultImageRange.h.
|
inline |
Assignment.
| other | the iterator to copy. |
Definition at line 120 of file DefaultImageRange.h.
|
inline |
Iterator service.
Definition at line 215 of file DefaultImageRange.h.
|
inline |
Iterator service.
| aPoint | any point |
Definition at line 225 of file DefaultImageRange.h.
|
inline |
Iterator service.
Definition at line 184 of file DefaultImageRange.h.
|
inline |
Iterator service.
| aPoint | any point |
Definition at line 193 of file DefaultImageRange.h.
|
inline |
|
inline |
Iterator service.
Definition at line 234 of file DefaultImageRange.h.
|
inline |
Iterator service.
| aPoint | any point |
Definition at line 244 of file DefaultImageRange.h.
|
private |
Aliasing pointer on the underlying image
Definition at line 147 of file DefaultImageRange.h.
Referenced by DGtal::DefaultImageRange< Self >::operator=().