1 #ifndef TIL_CONSTIMAGECLINEARITERATOR_H 2 #define TIL_CONSTIMAGECLINEARITERATOR_H 13 template <
typename T >
class ImageC;
20 template <
typename T >
47 throw std::invalid_argument(
"end is after current position");
49 m_end =
const_cast<T*
>(end);
65 INLINE bool next() {
if (m_index == m_end)
return 0; ++m_index;
return 1;}
67 bool isAtEnd()
const {
return (m_index > m_end); }
130 template <
typename T >
141 m_end = m_index + im.
size() - 1;
Belongs to package Box Do not include directly, include til/Box.h instead.
Defines empty classes that serves as labels.
void setEnd(const T *end)
reference operator*() const
INLINE bool isAllocated(const TImage &im)
Check whether smart pointer and image are allocated.
Image class using contiguous memory.
int size() const
Get total number of elements in image.