Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanline iterator RLEImage macOS #63

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions include/itkRLEImageScanlineConstIterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,18 @@ class ImageScanlineConstIterator<RLEImage<TPixel, VImageDimension, CounterType>>
return *this;
}
};

// Deduction guide for class template argument deduction (CTAD).
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>>;

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>>;

} // end namespace itk

#endif // itkRLEImageScanlineConstIterator_h
7 changes: 7 additions & 0 deletions include/itkRLEImageScanlineIterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ class ImageScanlineIterator<RLEImage<TPixel, VImageDimension, CounterType>>
return *this;
}
};

// Deduction guide for class template argument deduction (CTAD).
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>>;

dzenanz marked this conversation as resolved.
Show resolved Hide resolved
} // end namespace itk

#endif // itkRLEImageScanlineIterator_h
Loading