Skip to content

Commit 84d2a8e

Browse files
committed
DOC: fixing "unbalanced grouping commands" warnings
review: remove single function grouping
1 parent 136cbf3 commit 84d2a8e

File tree

224 files changed

+711
-790
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

224 files changed

+711
-790
lines changed

Modules/Core/Common/include/itkArray.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ class ITK_TEMPLATE_EXPORT Array : public vnl_vector<TValue>
100100
#endif
101101

102102
/** Constructor to initialize an array from another of any data type */
103-
/** @ITKStartGrouping */
104103
template <typename TArrayValue>
105104
Array(const Array<TArrayValue> & r)
106105
{
@@ -110,7 +109,7 @@ class ITK_TEMPLATE_EXPORT Array : public vnl_vector<TValue>
110109
this->operator[](i) = static_cast<TValue>(r[i]);
111110
}
112111
}
113-
/**@ITKEndGrouping*/
112+
114113
/** Set all the elements of the array to the specified value */
115114
void
116115
Fill(const TValue & v)

Modules/Core/Common/include/itkArray2D.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,14 @@ class ITK_TEMPLATE_EXPORT Array2D : public vnl_matrix<TValue>
7979
/** Move-assignment operator.
8080
* \note This move-assignment operator is `noexcept`, even while the move-assignment operator of its base class
8181
* (`vnl_matrix`) is not `noexcept`, because unlike `vnl_matrix`, `Array2D` always manages its own memory. */
82-
/** @ITKStartGrouping */
8382
Self &
8483
operator=(Self && array) noexcept
8584
{
8685
// Note: GCC <= 9.5 does not yet support "defaulting" (`= default`) this `noexcept` move-assignment operator.
8786
this->VnlMatrixType::operator=(std::move(array));
8887
return *this;
8988
}
90-
/**@ITKEndGrouping*/
89+
9190
/** Assigns the specified matrix to an Array2D. */
9291
Self &
9392
operator=(const VnlMatrixType & matrix);

Modules/Core/Common/include/itkAutoPointer.h

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,13 @@ class AutoPointer
5656
{}
5757

5858
/** Copy constructor. */
59-
/** @ITKStartGrouping */
6059
explicit AutoPointer(AutoPointer & p)
6160
{
6261
m_IsOwner = p.IsOwner(); // Ownership can only be taken from
6362
// another owner
6463
m_Pointer = p.ReleaseOwnership(); // release ownership if appropriate
6564
}
66-
/**@ITKEndGrouping*/
65+
6766
/** Constructor to pointer p. */
6867
explicit AutoPointer(ObjectType * p, bool takeOwnership)
6968
: m_Pointer(p)
@@ -82,7 +81,6 @@ class AutoPointer
8281

8382
/** Clear the AutoPointer. If it had a pointer the object
8483
is deleted and the pointer is set to null. */
85-
/** @ITKStartGrouping */
8684
void
8785
Reset()
8886
{
@@ -93,7 +91,7 @@ class AutoPointer
9391
m_Pointer = nullptr;
9492
m_IsOwner = false;
9593
}
96-
/**@ITKEndGrouping*/
94+
9795
/** Explicitly set the ownership */
9896
void
9997
TakeOwnership()
@@ -102,7 +100,6 @@ class AutoPointer
102100
}
103101

104102
/** Explicitly set the ownership */
105-
/** @ITKStartGrouping */
106103
void
107104
TakeOwnership(ObjectType * objectptr)
108105
{
@@ -113,9 +110,8 @@ class AutoPointer
113110
m_Pointer = objectptr;
114111
m_IsOwner = true;
115112
}
116-
/**@ITKEndGrouping*/
113+
117114
/** Explicitly reject ownership */
118-
/** @ITKStartGrouping */
119115
void
120116
TakeNoOwnership(ObjectType * objectptr)
121117
{
@@ -126,7 +122,7 @@ class AutoPointer
126122
m_Pointer = objectptr;
127123
m_IsOwner = false;
128124
}
129-
/**@ITKEndGrouping*/
125+
130126
/** Query for the ownership */
131127
bool
132128
IsOwner() const
@@ -146,14 +142,13 @@ class AutoPointer
146142
* Note that the AutoPointer still points to the object after the
147143
* ReleaseOwnership operation, but it doesn't own the object any
148144
* more. */
149-
/** @ITKStartGrouping */
150145
ObjectType *
151146
ReleaseOwnership()
152147
{
153148
m_IsOwner = false;
154149
return m_Pointer;
155150
}
156-
/**@ITKEndGrouping*/
151+
157152
/** Access function to pointer. */
158153
ObjectType *
159154
GetPointer() const
@@ -199,20 +194,18 @@ class AutoPointer
199194
}
200195

201196
/** Overload operator assignment. */
202-
/** @ITKStartGrouping */
203197
AutoPointer &
204198
operator=(AutoPointer & r)
205199
{
206200
AutoPointer(r).Swap(*this);
207201
return *this;
208202
}
209-
/**@ITKEndGrouping*/
203+
210204
/** Casting operator to boolean. This is used in conditional
211205
statements to check the content of the pointer against null */
212206
operator bool() const { return (m_Pointer != nullptr); }
213207

214208
/** Function to print object pointed to. */
215-
/** @ITKStartGrouping */
216209
/* ObjectType *Print (std::ostream& os) const
217210
{
218211
// This prints the object pointed to by the pointer
@@ -221,7 +214,7 @@ class AutoPointer
221214
return m_Pointer;
222215
}
223216
*/
224-
/**@ITKEndGrouping*/
217+
225218
private:
226219
/** Exchange the content of two AutoPointers */
227220
void
@@ -249,7 +242,6 @@ operator<<(std::ostream & os, const AutoPointer<T> p)
249242

250243
/** This templated function is intended to facilitate the
251244
transfer between AutoPointers of Derived class to Base class */
252-
/** @ITKStartGrouping */
253245
template <typename TAutoPointerBase, typename TAutoPointerDerived>
254246
void
255247
TransferAutoPointer(TAutoPointerBase & pa, TAutoPointerDerived & pb)
@@ -262,7 +254,7 @@ TransferAutoPointer(TAutoPointerBase & pa, TAutoPointerDerived & pb)
262254
pb.ReleaseOwnership(); // pb Release Ownership and clears
263255
}
264256
}
265-
/**@ITKEndGrouping*/
257+
266258
} // end namespace itk
267259

268260
#endif

Modules/Core/Common/include/itkBSplineDerivativeKernelFunction.h

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ class ITK_TEMPLATE_EXPORT BSplineDerivativeKernelFunction : public KernelFunctio
102102
}
103103

104104
/** Evaluate the function: first order spline */
105-
/** @ITKStartGrouping */
106105
static inline TRealValueType
107106
Evaluate(const Dispatch<1> &, const TRealValueType & u)
108107
{
@@ -131,9 +130,8 @@ class ITK_TEMPLATE_EXPORT BSplineDerivativeKernelFunction : public KernelFunctio
131130
return TRealValueType{ 0.0 };
132131
}
133132
}
134-
/**@ITKEndGrouping*/
133+
135134
/** Evaluate the function: second order spline. */
136-
/** @ITKStartGrouping */
137135
static inline TRealValueType
138136
Evaluate(const Dispatch<2> &, const TRealValueType & u)
139137
{
@@ -154,9 +152,8 @@ class ITK_TEMPLATE_EXPORT BSplineDerivativeKernelFunction : public KernelFunctio
154152
return TRealValueType{ 0.0 };
155153
}
156154
}
157-
/**@ITKEndGrouping*/
155+
158156
/** Evaluate the function: third order spline. */
159-
/** @ITKStartGrouping */
160157
static inline TRealValueType
161158
Evaluate(const Dispatch<3> &, const TRealValueType & u)
162159
{
@@ -181,15 +178,14 @@ class ITK_TEMPLATE_EXPORT BSplineDerivativeKernelFunction : public KernelFunctio
181178
return TRealValueType{ 0.0 };
182179
}
183180
}
184-
/**@ITKEndGrouping*/
181+
185182
/** Evaluate the function: unimplemented spline order */
186-
/** @ITKStartGrouping */
187183
static inline TRealValueType
188184
Evaluate(const DispatchBase &, const TRealValueType &)
189185
{
190186
itkGenericExceptionMacro("Evaluate not implemented for spline order " << SplineOrder);
191187
}
192-
/**@ITKEndGrouping*/
188+
193189
};
194190

195191
} // end namespace itk

Modules/Core/Common/include/itkBackwardDifferenceOperator.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,12 @@ class ITK_TEMPLATE_EXPORT BackwardDifferenceOperator : public NeighborhoodOperat
6767
GenerateCoefficients() override;
6868

6969
/** Arranges coefficients spatially in the memory buffer. */
70-
/** @ITKStartGrouping */
7170
void
7271
Fill(const CoefficientVector & coeff) override
7372
{
7473
this->FillCenteredDirectional(coeff);
7574
}
76-
/**@ITKEndGrouping*/
75+
7776
};
7877

7978
} // namespace itk

Modules/Core/Common/include/itkBufferedImageNeighborhoodPixelAccessPolicy.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,14 @@ class BufferedImageNeighborhoodPixelAccessPolicy final
103103

104104
/** Constructor called directly by the pixel proxy of ShapedImageNeighborhoodRange.
105105
* \note The parameter `pixelIndex` is assumed to be in the buffered region. */
106-
/** @ITKStartGrouping */
107106
BufferedImageNeighborhoodPixelAccessPolicy(const ImageSizeType & imageSize,
108107
const OffsetType & offsetTable,
109108
const NeighborhoodAccessorFunctorType & neighborhoodAccessor,
110109
const IndexType & pixelIndex) noexcept
111110
: m_PixelIndexValue{ CalculatePixelIndexValue(imageSize, offsetTable, pixelIndex) }
112111
, m_NeighborhoodAccessor(neighborhoodAccessor)
113112
{}
114-
/**@ITKEndGrouping*/
113+
115114
/** Retrieves the pixel value from the image buffer, at the current
116115
* index value. */
117116
PixelType
@@ -122,13 +121,12 @@ class BufferedImageNeighborhoodPixelAccessPolicy final
122121

123122
/** Sets the value of the image buffer at the current index value to the
124123
* specified value. */
125-
/** @ITKStartGrouping */
126124
void
127125
SetPixelValue(InternalPixelType * const imageBufferPointer, const PixelType & pixelValue) const noexcept
128126
{
129127
m_NeighborhoodAccessor.Set(imageBufferPointer + m_PixelIndexValue, pixelValue);
130128
}
131-
/**@ITKEndGrouping*/
129+
132130
};
133131

134132
} // namespace itk

Modules/Core/Common/include/itkByteSwapper.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,9 @@ class ITK_TEMPLATE_EXPORT ByteSwapper : public Object
120120
* can be handled. Single byte types are not swapped;
121121
* others raise an exception. The method is used to
122122
* swap to and from Big Endian. */
123-
/** @ITKStartGrouping */
124123
static void
125124
SwapWriteRangeFromSystemToBigEndian(const T * p, int num, std::ostream * fp);
126-
/**@ITKEndGrouping*/
125+
127126
/** Generic swap method handles type T. The swapping is
128127
* done in-place. 2, 4 and 8 byte swapping
129128
* can be handled. Single byte types are not swapped;
@@ -147,10 +146,9 @@ class ITK_TEMPLATE_EXPORT ByteSwapper : public Object
147146
* can be handled. Single byte types are not swapped;
148147
* others raise an exception. The method is used to
149148
* swap to and from Little Endian. */
150-
/** @ITKStartGrouping */
151149
static void
152150
SwapWriteRangeFromSystemToLittleEndian(const T * p, int num, std::ostream * fp);
153-
/**@ITKEndGrouping*/
151+
154152
protected:
155153
ByteSwapper() = default;
156154
~ByteSwapper() override = default;

Modules/Core/Common/include/itkCommand.h

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ class ITK_TEMPLATE_EXPORT MemberCommand : public Command
120120
}
121121

122122
/** Invoke the member function. */
123-
/** @ITKStartGrouping */
124123
void
125124
Execute(Object * caller, const EventObject & event) override
126125
{
@@ -129,9 +128,8 @@ class ITK_TEMPLATE_EXPORT MemberCommand : public Command
129128
(m_This->*(m_MemberFunction))(caller, event);
130129
}
131130
}
132-
/**@ITKEndGrouping*/
131+
133132
/** Invoke the member function with a const object. */
134-
/** @ITKStartGrouping */
135133
void
136134
Execute(const Object * caller, const EventObject & event) override
137135
{
@@ -140,7 +138,7 @@ class ITK_TEMPLATE_EXPORT MemberCommand : public Command
140138
(m_This->*(m_ConstMemberFunction))(caller, event);
141139
}
142140
}
143-
/**@ITKEndGrouping*/
141+
144142
protected:
145143
T * m_This{ nullptr };
146144
TMemberFunctionPointer m_MemberFunction{ nullptr };
@@ -189,7 +187,6 @@ class ITK_TEMPLATE_EXPORT ReceptorMemberCommand : public Command
189187
}
190188

191189
/** Invoke the member function. */
192-
/** @ITKStartGrouping */
193190
void
194191
Execute(Object *, const EventObject & event) override
195192
{
@@ -198,9 +195,8 @@ class ITK_TEMPLATE_EXPORT ReceptorMemberCommand : public Command
198195
(m_This->*(m_MemberFunction))(event);
199196
}
200197
}
201-
/**@ITKEndGrouping*/
198+
202199
/** Invoke the member function with a const object */
203-
/** @ITKStartGrouping */
204200
void
205201
Execute(const Object *, const EventObject & event) override
206202
{
@@ -209,7 +205,7 @@ class ITK_TEMPLATE_EXPORT ReceptorMemberCommand : public Command
209205
(m_This->*(m_MemberFunction))(event);
210206
}
211207
}
212-
/**@ITKEndGrouping*/
208+
213209
protected:
214210
T * m_This{ nullptr };
215211
TMemberFunctionPointer m_MemberFunction{ nullptr };
@@ -256,7 +252,6 @@ class ITK_TEMPLATE_EXPORT SimpleMemberCommand : public Command
256252
}
257253

258254
/** Invoke the callback function. */
259-
/** @ITKStartGrouping */
260255
void
261256
Execute(Object *, const EventObject &) override
262257
{
@@ -265,7 +260,7 @@ class ITK_TEMPLATE_EXPORT SimpleMemberCommand : public Command
265260
(m_This->*(m_MemberFunction))();
266261
}
267262
}
268-
/**@ITKEndGrouping*/
263+
269264
void
270265
Execute(const Object *, const EventObject &) override
271266
{
@@ -321,7 +316,6 @@ class ITK_TEMPLATE_EXPORT SimpleConstMemberCommand : public Command
321316
}
322317

323318
/** Invoke the const member method callback. */
324-
/** @ITKStartGrouping */
325319
void
326320
Execute(Object *, const EventObject &) override
327321
{
@@ -330,7 +324,7 @@ class ITK_TEMPLATE_EXPORT SimpleConstMemberCommand : public Command
330324
(m_This->*(m_MemberFunction))();
331325
}
332326
}
333-
/**@ITKEndGrouping*/
327+
334328
void
335329
Execute(const Object *, const EventObject &) override
336330
{

0 commit comments

Comments
 (0)