5 #ifndef _DDS_CUSTOMITERATOR_H_ 6 #define _DDS_CUSTOMITERATOR_H_ 23 template <
class T,
class Ch =
char,
class Tr = std::
char_traits<Ch>,
class Dist = std::ptrdiff_t>
94 if (m_istream != 0 && !(std::getline(*m_istream, m_val)))
100 template <
class T,
class Ch,
class Tr,
class Dist>
104 return lhs.
equal(rhs);
107 template <
class T,
class Ch,
class Tr,
class Dist>
111 return !(lhs == rhs);
istream_type * m_istream
Definition: CustomIterator.h:86
bool equal(const m_it &rhs) const
Definition: CustomIterator.h:73
Tr traits_type
Definition: CustomIterator.h:29
custom_istream_iterator< T, Ch, Tr, Dist > m_it
Definition: CustomIterator.h:27
custom_istream_iterator()
Definition: CustomIterator.h:33
This custom istream iterator helps to read input line by line without breaking lines after whitespace...
Definition: CustomIterator.h:24
custom_istream_iterator operator++(int)
Definition: CustomIterator.h:65
T m_val
Definition: CustomIterator.h:87
custom_istream_iterator(istream_type &s)
Definition: CustomIterator.h:39
bool operator==(const custom_istream_iterator< T, Ch, Tr, Dist > &lhs, const custom_istream_iterator< T, Ch, Tr, Dist > &rhs)
Definition: CustomIterator.h:101
std::basic_istream< Ch, Tr > istream_type
Definition: CustomIterator.h:30
custom_istream_iterator & operator++()
Definition: CustomIterator.h:58
Ch char_type
Definition: CustomIterator.h:28
void getval()
Definition: CustomIterator.h:80
const T * operator->() const
Definition: CustomIterator.h:52
bool operator!=(const custom_istream_iterator< T, Ch, Tr, Dist > &lhs, const custom_istream_iterator< T, Ch, Tr, Dist > &rhs)
Definition: CustomIterator.h:108
const T & operator *() const
Definition: CustomIterator.h:46
Definition: BoostHelper.h:14