BufferIterator: add operator>{,=}
This commit is contained in:
parent
a30b7c1e9f
commit
7746c78ccc
|
@ -61,6 +61,18 @@ bool BufferIterator::operator<=(const BufferIterator& iterator) const
|
||||||
return (m_position <= iterator.m_position);
|
return (m_position <= iterator.m_position);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool BufferIterator::operator>(const BufferIterator& iterator) const
|
||||||
|
{
|
||||||
|
assert(m_buffer == iterator.m_buffer);
|
||||||
|
return (m_position > iterator.m_position);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool BufferIterator::operator>=(const BufferIterator& iterator) const
|
||||||
|
{
|
||||||
|
assert(m_buffer == iterator.m_buffer);
|
||||||
|
return (m_position >= iterator.m_position);
|
||||||
|
}
|
||||||
|
|
||||||
BufferChar BufferIterator::operator*() const
|
BufferChar BufferIterator::operator*() const
|
||||||
{
|
{
|
||||||
assert(m_buffer);
|
assert(m_buffer);
|
||||||
|
|
|
@ -42,6 +42,8 @@ public:
|
||||||
bool operator!= (const BufferIterator& iterator) const;
|
bool operator!= (const BufferIterator& iterator) const;
|
||||||
bool operator< (const BufferIterator& iterator) const;
|
bool operator< (const BufferIterator& iterator) const;
|
||||||
bool operator<= (const BufferIterator& iterator) const;
|
bool operator<= (const BufferIterator& iterator) const;
|
||||||
|
bool operator> (const BufferIterator& iterator) const;
|
||||||
|
bool operator>= (const BufferIterator& iterator) const;
|
||||||
|
|
||||||
BufferChar operator* () const;
|
BufferChar operator* () const;
|
||||||
BufferSize operator- (const BufferIterator& iterator) const;
|
BufferSize operator- (const BufferIterator& iterator) const;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user