Skip to content

Commit

Permalink
STYLE: Update to new ITK clang-format conformance.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjmjohnson committed Jan 25, 2025
1 parent 31a9834 commit 311c945
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
8 changes: 6 additions & 2 deletions include/itkRLEImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class RLEImage : public itk::ImageBase<VImageDimension>
itkNewMacro(Self);

/** Run-time type information (and related methods). */
itkOverrideGetNameOfClassMacro(RLEImage);
itkOverrideGetNameOfClassMacro(RLEImage);

/** Pixel type alias support. Used to declare pixel type in filters
* or other operations. */
Expand Down Expand Up @@ -202,7 +202,11 @@ class RLEImage : public itk::ImageBase<VImageDimension>

/** \brief Access a pixel. This version can only be an rvalue.
* SLOW -> Use iterators instead. */
const TPixel & operator[](const IndexType & index) const { return this->GetPixel(index); }
const TPixel &
operator[](const IndexType & index) const
{
return this->GetPixel(index);
}

unsigned int
GetNumberOfComponentsPerPixel() const override
Expand Down
2 changes: 1 addition & 1 deletion include/itkRLEImageRegionConstIterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ImageRegionConstIterator<RLEImage<TPixel, VImageDimension, CounterType>>
using PixelType = typename Superclass::PixelType;

/** Run-time type information (and related methods). */
itkOverrideGetNameOfClassMacro(ImageRegionConstIterator);
itkOverrideGetNameOfClassMacro(ImageRegionConstIterator);

/** Default constructor. Needed since we provide a cast constructor. */
ImageRegionConstIterator()
Expand Down
6 changes: 3 additions & 3 deletions include/itkRLEImageScanlineConstIterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class ImageScanlineConstIterator<RLEImage<TPixel, VImageDimension, CounterType>>
using PixelType = typename Superclass::PixelType;

/** Run-time type information (and related methods). */
itkOverrideGetNameOfClassMacro(ImageScanlineConstIterator);
itkOverrideGetNameOfClassMacro(ImageScanlineConstIterator);

/** Default constructor. Needed since we provide a cast constructor. */
ImageScanlineConstIterator()
Expand Down Expand Up @@ -183,12 +183,12 @@ class ImageScanlineConstIterator<RLEImage<TPixel, VImageDimension, CounterType>>
template <typename TPixel, unsigned int VImageDimension, typename CounterType>
ImageScanlineConstIterator(SmartPointer<const RLEImage<TPixel, VImageDimension, CounterType>>,
const typename RLEImage<TPixel, VImageDimension, CounterType>::RegionType &)
->ImageScanlineConstIterator<RLEImage<TPixel, VImageDimension, CounterType>>;
-> ImageScanlineConstIterator<RLEImage<TPixel, VImageDimension, CounterType>>;

template <typename TPixel, unsigned int VImageDimension, typename CounterType>
ImageScanlineConstIterator(const RLEImage<TPixel, VImageDimension, CounterType> *,
const typename RLEImage<TPixel, VImageDimension, CounterType>::RegionType &)
->ImageScanlineConstIterator<RLEImage<TPixel, VImageDimension, CounterType>>;
-> ImageScanlineConstIterator<RLEImage<TPixel, VImageDimension, CounterType>>;

} // end namespace itk

Expand Down
4 changes: 2 additions & 2 deletions include/itkRLEImageScanlineIterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ class ImageScanlineIterator<RLEImage<TPixel, VImageDimension, CounterType>>
template <typename TPixel, unsigned int VImageDimension, typename CounterType>
ImageScanlineIterator(SmartPointer<RLEImage<TPixel, VImageDimension, CounterType>>,
const typename RLEImage<TPixel, VImageDimension, CounterType>::RegionType &)
->ImageScanlineIterator<RLEImage<TPixel, VImageDimension, CounterType>>;
-> ImageScanlineIterator<RLEImage<TPixel, VImageDimension, CounterType>>;

// Deduction guide for class template argument deduction (CTAD).
template <typename TPixel, unsigned int VImageDimension, typename CounterType>
ImageScanlineIterator(RLEImage<TPixel, VImageDimension, CounterType> *,
const typename RLEImage<TPixel, VImageDimension, CounterType>::RegionType &)
->ImageScanlineIterator<RLEImage<TPixel, VImageDimension, CounterType>>;
-> ImageScanlineIterator<RLEImage<TPixel, VImageDimension, CounterType>>;

} // end namespace itk

Expand Down
8 changes: 4 additions & 4 deletions include/itkRLERegionOfInterestImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class RegionOfInterestImageFilter<RLEImage<TPixel, VImageDimension, CounterType>
itkNewMacro(Self);

/** Run-time type information (and related methods). */
itkOverrideGetNameOfClassMacro(RegionOfInterestImageFilter);
itkOverrideGetNameOfClassMacro(RegionOfInterestImageFilter);

/** Typedef to describe the input image region types. */
using RegionType = typename RLEImageType::RegionType;
Expand Down Expand Up @@ -158,7 +158,7 @@ class RegionOfInterestImageFilter<RLEImage<TPixelIn, VImageDimension, CounterTyp
itkNewMacro(Self);

/** Run-time type information (and related methods). */
itkOverrideGetNameOfClassMacro(RegionOfInterestImageFilter);
itkOverrideGetNameOfClassMacro(RegionOfInterestImageFilter);

/** Typedef to describe the input image region types. */
using RegionType = typename RLEImageTypeIn::RegionType;
Expand Down Expand Up @@ -261,7 +261,7 @@ class RegionOfInterestImageFilter<Image<TPixel, VImageDimension>, RLEImage<TPixe
itkNewMacro(Self);

/** Run-time type information (and related methods). */
itkOverrideGetNameOfClassMacro(RegionOfInterestImageFilter);
itkOverrideGetNameOfClassMacro(RegionOfInterestImageFilter);

/** Typedef to describe the input image region types. */
using RegionType = typename RLEImageType::RegionType;
Expand Down Expand Up @@ -347,7 +347,7 @@ class RegionOfInterestImageFilter<RLEImage<TPixel, VImageDimension, CounterType>
itkNewMacro(Self);

/** Run-time type information (and related methods). */
itkOverrideGetNameOfClassMacro(RegionOfInterestImageFilter);
itkOverrideGetNameOfClassMacro(RegionOfInterestImageFilter);

/** Typedef to describe the input image region types. */
using RegionType = typename RLEImageType::RegionType;
Expand Down

0 comments on commit 311c945

Please sign in to comment.