Skip to content

Commit 9eb1359

Browse files
N-Dekkerdzenanz
authored andcommitted
DOC: Document Iterator(image, region) constructors initializing at begin
Explicitly specify that those constructors initialize the iterator at the begin of the region.
1 parent 66e6d8b commit 9eb1359

22 files changed

+44
-44
lines changed

Modules/Core/Common/include/itkImageConstIterator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ class ITK_TEMPLATE_EXPORT ImageConstIterator
163163
m_PixelAccessorFunctor.SetBegin(m_Buffer);
164164
}
165165

166-
/** Constructor establishes an iterator to walk a particular image and a
167-
* particular region of that image. */
166+
/** Constructor establishes an iterator to walk a particular image and a particular region of that image. Initializes
167+
* the iterator at the begin of the region. */
168168
ImageConstIterator(const ImageType * ptr, const RegionType & region)
169169
{
170170
m_Image = ptr;

Modules/Core/Common/include/itkImageConstIteratorWithIndex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ class ITK_TEMPLATE_EXPORT ImageConstIteratorWithIndex
144144
* handle to the image is properly reference counted. */
145145
ImageConstIteratorWithIndex(const Self & it);
146146

147-
/** Constructor establishes an iterator to walk a particular image and a
148-
* particular region of that image. */
147+
/** Constructor establishes an iterator to walk a particular image and a particular region of that image. Initializes
148+
* the iterator at the begin of the region. */
149149
ImageConstIteratorWithIndex(const TImage * ptr, const RegionType & region);
150150

151151
/** Default Destructor. */

Modules/Core/Common/include/itkImageConstIteratorWithOnlyIndex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ class ITK_TEMPLATE_EXPORT ImageConstIteratorWithOnlyIndex
128128
* provide a copy constructor. */
129129
ImageConstIteratorWithOnlyIndex() = default;
130130

131-
/** Constructor establishes an iterator to walk a particular image and a
132-
* particular region of that image. */
131+
/** Constructor establishes an iterator to walk a particular image and a particular region of that image. Initializes
132+
* the iterator at the begin of the region. */
133133
ImageConstIteratorWithOnlyIndex(const TImage * ptr, const RegionType & region);
134134

135135
/** Default Destructor. */

Modules/Core/Common/include/itkImageIterator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ class ITK_TEMPLATE_EXPORT ImageIterator : public ImageConstIterator<TImage>
9898
/** Default Destructor */
9999
~ImageIterator() override = default;
100100

101-
/** Constructor establishes an iterator to walk a particular image and a
102-
* particular region of that image. */
101+
/** Constructor establishes an iterator to walk a particular image and a particular region of that image. Initializes
102+
* the iterator at the begin of the region. */
103103
ImageIterator(TImage * ptr, const RegionType & region);
104104

105105
/** Set the pixel value */

Modules/Core/Common/include/itkImageIteratorWithIndex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ class ITK_TEMPLATE_EXPORT ImageIteratorWithIndex : public ImageConstIteratorWith
101101
/** Default Destructor */
102102
~ImageIteratorWithIndex() override = default;
103103

104-
/** Constructor establishes an iterator to walk a particular image and a
105-
* particular region of that image. */
104+
/** Constructor establishes an iterator to walk a particular image and a particular region of that image. Initializes
105+
* the iterator at the begin of the region. */
106106
ImageIteratorWithIndex(TImage * ptr, const RegionType & region);
107107

108108
/** Set the pixel value */

Modules/Core/Common/include/itkImageLinearConstIteratorWithIndex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ class ITK_TEMPLATE_EXPORT ImageLinearConstIteratorWithIndex : public ImageConstI
135135

136136
{}
137137

138-
/** Constructor establishes an iterator to walk a particular image and a
139-
* particular region of that image. */
138+
/** Constructor establishes an iterator to walk a particular image and a particular region of that image. Initializes
139+
* the iterator at the begin of the region. */
140140
ImageLinearConstIteratorWithIndex(const ImageType * ptr, const RegionType & region);
141141

142142
/** Constructor that can be used to cast from an ImageIterator to an

Modules/Core/Common/include/itkImageLinearIteratorWithIndex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ class ITK_TEMPLATE_EXPORT ImageLinearIteratorWithIndex : public ImageLinearConst
8686
/** Default constructor. Needed since we provide a cast constructor. */
8787
ImageLinearIteratorWithIndex() = default;
8888

89-
/** Constructor establishes an iterator to walk a particular image and a
90-
* particular region of that image. */
89+
/** Constructor establishes an iterator to walk a particular image and a particular region of that image. Initializes
90+
* the iterator at the begin of the region. */
9191
ImageLinearIteratorWithIndex(ImageType * ptr, const RegionType & region);
9292

9393
/** Constructor that can be used to cast from an ImageIterator to an

Modules/Core/Common/include/itkImageRegionConstIterator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ class ITK_TEMPLATE_EXPORT ImageRegionConstIterator : public ImageConstIterator<T
146146
m_SpanEndOffset = 0;
147147
}
148148

149-
/** Constructor establishes an iterator to walk a particular image and a
150-
* particular region of that image. */
149+
/** Constructor establishes an iterator to walk a particular image and a particular region of that image. Initializes
150+
* the iterator at the begin of the region. */
151151
ImageRegionConstIterator(const ImageType * ptr, const RegionType & region)
152152
: ImageConstIterator<TImage>(ptr, region)
153153
{

Modules/Core/Common/include/itkImageRegionConstIteratorWithIndex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ class ITK_TEMPLATE_EXPORT ImageRegionConstIteratorWithIndex : public ImageConstI
155155
: ImageConstIteratorWithIndex<TImage>()
156156
{}
157157

158-
/** Constructor establishes an iterator to walk a particular image and a
159-
* particular region of that image. */
158+
/** Constructor establishes an iterator to walk a particular image and a particular region of that image. Initializes
159+
* the iterator at the begin of the region. */
160160
ImageRegionConstIteratorWithIndex(const TImage * ptr, const RegionType & region)
161161
: ImageConstIteratorWithIndex<TImage>(ptr, region)
162162
{}

Modules/Core/Common/include/itkImageRegionConstIteratorWithOnlyIndex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ class ITK_TEMPLATE_EXPORT ImageRegionConstIteratorWithOnlyIndex : public ImageCo
151151
: ImageConstIteratorWithOnlyIndex<TImage>()
152152
{}
153153

154-
/** Constructor establishes an iterator to walk a particular image and a
155-
* particular region of that image. */
154+
/** Constructor establishes an iterator to walk a particular image and a particular region of that image. Initializes
155+
* the iterator at the begin of the region. */
156156
ImageRegionConstIteratorWithOnlyIndex(const TImage * ptr, const RegionType & region)
157157
: ImageConstIteratorWithOnlyIndex<TImage>(ptr, region)
158158
{}

0 commit comments

Comments
 (0)