DGtal 1.4.0
|
Aim: model of CConstBidirectionalRangeFromPoint 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/DefaultConstImageRange.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 |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CTrivialConstImage< TImage >)) | |
BOOST_CONCEPT_ASSERT ((concepts::CDomain< Domain >)) | |
constant iterator types | |
DefaultConstImageRange (ConstAlias< TImage > aImage) | |
DefaultConstImageRange (const DefaultConstImageRange &other) | |
DefaultConstImageRange & | operator= (const DefaultConstImageRange &other) |
~DefaultConstImageRange () | |
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 |
Private Attributes | |
const TImage * | myImagePtr |
Aim: model of CConstBidirectionalRangeFromPoint 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 CConstImage 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.
Definition at line 76 of file DefaultConstImageRange.h.
typedef ConstIteratorAdapter<typename Domain::ConstIterator,TImage,Value> DGtal::DefaultConstImageRange< TImage >::ConstIterator |
Definition at line 90 of file DefaultConstImageRange.h.
typedef std::reverse_iterator<ConstIterator> DGtal::DefaultConstImageRange< TImage >::ConstReverseIterator |
Definition at line 91 of file DefaultConstImageRange.h.
typedef TImage::Domain DGtal::DefaultConstImageRange< TImage >::Domain |
Definition at line 84 of file DefaultConstImageRange.h.
typedef TImage::Point DGtal::DefaultConstImageRange< TImage >::Point |
Definition at line 85 of file DefaultConstImageRange.h.
typedef TImage::Value DGtal::DefaultConstImageRange< TImage >::Value |
Definition at line 86 of file DefaultConstImageRange.h.
|
inline |
Standard constructor from an image.
aImage | any image. |
Definition at line 100 of file DefaultConstImageRange.h.
|
inline |
Copy constructor.
other | the iterator to clone. |
Definition at line 107 of file DefaultConstImageRange.h.
|
inline |
|
inline |
Iterator service.
Definition at line 151 of file DefaultConstImageRange.h.
References DGtal::DefaultConstImageRange< TImage >::myImagePtr.
Referenced by DGtal::DefaultConstImageRange< TImage >::rend().
|
inline |
Iterator service.
aPoint | any point |
Definition at line 161 of file DefaultConstImageRange.h.
References aPoint(), and DGtal::DefaultConstImageRange< TImage >::myImagePtr.
DGtal::DefaultConstImageRange< TImage >::BOOST_CONCEPT_ASSERT | ( | (concepts::CDomain< Domain >) | ) |
constant iterator types
DGtal::DefaultConstImageRange< TImage >::BOOST_CONCEPT_ASSERT | ( | (concepts::CTrivialConstImage< TImage >) | ) |
|
inline |
Iterator service.
Definition at line 170 of file DefaultConstImageRange.h.
References DGtal::DefaultConstImageRange< TImage >::myImagePtr.
Referenced by DGtal::DefaultConstImageRange< TImage >::rbegin().
|
inline |
Checks the validity/consistency of the object.
Definition at line 133 of file DefaultConstImageRange.h.
|
inline |
Assignment.
other | the iterator to copy. |
Definition at line 115 of file DefaultConstImageRange.h.
References DGtal::DefaultConstImageRange< TImage >::myImagePtr.
|
inline |
Iterator service.
Definition at line 179 of file DefaultConstImageRange.h.
References DGtal::DefaultConstImageRange< TImage >::end().
|
inline |
Iterator service.
aPoint | any point |
Definition at line 188 of file DefaultConstImageRange.h.
References aPoint(), and DGtal::DefaultConstImageRange< TImage >::myImagePtr.
|
inline |
Iterator service.
Definition at line 200 of file DefaultConstImageRange.h.
References DGtal::DefaultConstImageRange< TImage >::begin().
|
private |
Aliasing pointer on the underlying image
Definition at line 142 of file DefaultConstImageRange.h.
Referenced by DGtal::DefaultConstImageRange< TImage >::begin(), DGtal::DefaultConstImageRange< TImage >::begin(), DGtal::DefaultConstImageRange< TImage >::end(), DGtal::DefaultConstImageRange< TImage >::operator=(), and DGtal::DefaultConstImageRange< TImage >::rbegin().