DGtal 1.3.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 std::reverse_iterator< ConstIterator > | ConstReverseIterator |
typedef SetValueIterator< TImage > | OutputIterator |
output iterator types More... | |
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 More... | |
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 76 of file DefaultImageRange.h.
typedef ConstIteratorAdapter<typename Domain::ConstIterator,TImage,Value> DGtal::DefaultImageRange< TImage >::ConstIterator |
Definition at line 90 of file DefaultImageRange.h.
typedef std::reverse_iterator<ConstIterator> DGtal::DefaultImageRange< TImage >::ConstReverseIterator |
Definition at line 91 of file DefaultImageRange.h.
typedef TImage::Domain DGtal::DefaultImageRange< TImage >::Domain |
Definition at line 84 of file DefaultImageRange.h.
typedef SetValueIterator<TImage> DGtal::DefaultImageRange< TImage >::OutputIterator |
output iterator types
Definition at line 94 of file DefaultImageRange.h.
typedef TImage::Point DGtal::DefaultImageRange< TImage >::Point |
Definition at line 85 of file DefaultImageRange.h.
typedef SetValueIterator<TImage, typename Domain::ConstReverseIterator> DGtal::DefaultImageRange< TImage >::ReverseOutputIterator |
Definition at line 95 of file DefaultImageRange.h.
typedef TImage::Value DGtal::DefaultImageRange< TImage >::Value |
Definition at line 86 of file DefaultImageRange.h.
|
inline |
Standard constructor from an image.
aImage | any image. |
Definition at line 104 of file DefaultImageRange.h.
|
inline |
Copy constructor.
other | the iterator to clone. |
Definition at line 111 of file DefaultImageRange.h.
|
inline |
|
inline |
Iterator service.
Definition at line 155 of file DefaultImageRange.h.
References DGtal::DefaultImageRange< TImage >::myImagePtr.
Referenced by DGtal::DefaultImageRange< TImage >::rend().
|
inline |
Iterator service.
aPoint | any point |
Definition at line 165 of file DefaultImageRange.h.
References aPoint(), and DGtal::DefaultImageRange< TImage >::myImagePtr.
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 174 of file DefaultImageRange.h.
References DGtal::DefaultImageRange< TImage >::myImagePtr.
Referenced by DGtal::DefaultImageRange< TImage >::rbegin().
|
inline |
Checks the validity/consistency of the object.
Definition at line 137 of file DefaultImageRange.h.
|
inline |
Assignment.
other | the iterator to copy. |
Definition at line 119 of file DefaultImageRange.h.
References DGtal::DefaultImageRange< TImage >::myImagePtr.
|
inline |
Iterator service.
Definition at line 214 of file DefaultImageRange.h.
References DGtal::DefaultImageRange< TImage >::myImagePtr.
|
inline |
Iterator service.
aPoint | any point |
Definition at line 224 of file DefaultImageRange.h.
References aPoint(), and DGtal::DefaultImageRange< TImage >::myImagePtr.
|
inline |
Iterator service.
Definition at line 183 of file DefaultImageRange.h.
References DGtal::DefaultImageRange< TImage >::end().
|
inline |
Iterator service.
aPoint | any point |
Definition at line 192 of file DefaultImageRange.h.
References aPoint(), and DGtal::DefaultImageRange< TImage >::myImagePtr.
|
inline |
Iterator service.
Definition at line 204 of file DefaultImageRange.h.
References DGtal::DefaultImageRange< TImage >::begin().
|
inline |
Iterator service.
Definition at line 233 of file DefaultImageRange.h.
References DGtal::DefaultImageRange< TImage >::myImagePtr.
|
inline |
Iterator service.
aPoint | any point |
Definition at line 243 of file DefaultImageRange.h.
References aPoint(), and DGtal::DefaultImageRange< TImage >::myImagePtr.
|
private |
Aliasing pointer on the underlying image
Definition at line 146 of file DefaultImageRange.h.
Referenced by DGtal::DefaultImageRange< TImage >::begin(), DGtal::DefaultImageRange< TImage >::end(), DGtal::DefaultImageRange< TImage >::operator=(), DGtal::DefaultImageRange< TImage >::outputIterator(), DGtal::DefaultImageRange< TImage >::rbegin(), and DGtal::DefaultImageRange< TImage >::routputIterator().