|
DGtal 2.0.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 boost::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 77 of file DefaultConstImageRange.h.
| typedef ConstIteratorAdapter<typename Domain::ConstIterator,TImage,Value> DGtal::DefaultConstImageRange< TImage >::ConstIterator |
Definition at line 91 of file DefaultConstImageRange.h.
| typedef boost::reverse_iterator<ConstIterator> DGtal::DefaultConstImageRange< TImage >::ConstReverseIterator |
Definition at line 92 of file DefaultConstImageRange.h.
| typedef TImage::Domain DGtal::DefaultConstImageRange< TImage >::Domain |
Definition at line 85 of file DefaultConstImageRange.h.
| typedef TImage::Point DGtal::DefaultConstImageRange< TImage >::Point |
Definition at line 86 of file DefaultConstImageRange.h.
| typedef TImage::Value DGtal::DefaultConstImageRange< TImage >::Value |
Definition at line 87 of file DefaultConstImageRange.h.
|
inline |
Standard constructor from an image.
| aImage | any image. |
Definition at line 101 of file DefaultConstImageRange.h.
|
inline |
Copy constructor.
| other | the iterator to clone. |
Definition at line 108 of file DefaultConstImageRange.h.
|
inline |
|
inline |
Iterator service.
Definition at line 152 of file DefaultConstImageRange.h.
Referenced by DGtal::DefaultConstImageRange< Self >::rend().
|
inline |
Iterator service.
| aPoint | any point |
Definition at line 162 of file DefaultConstImageRange.h.
| 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 171 of file DefaultConstImageRange.h.
Referenced by DGtal::DefaultConstImageRange< Self >::rbegin().
|
inline |
Checks the validity/consistency of the object.
Definition at line 134 of file DefaultConstImageRange.h.
|
inline |
Assignment.
| other | the iterator to copy. |
Definition at line 116 of file DefaultConstImageRange.h.
|
inline |
Iterator service.
Definition at line 180 of file DefaultConstImageRange.h.
|
inline |
Iterator service.
| aPoint | any point |
Definition at line 189 of file DefaultConstImageRange.h.
|
inline |
|
private |
Aliasing pointer on the underlying image
Definition at line 143 of file DefaultConstImageRange.h.
Referenced by DGtal::DefaultConstImageRange< Self >::operator=().