add const BufferIterator::Buffer& buffer() method
This commit is contained in:
parent
19123186d7
commit
39f12a1766
|
@ -19,6 +19,12 @@ BufferIterator::BufferIterator(const Buffer& buffer, BufferPos position) : m_buf
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const Buffer& BufferIterator::buffer() const
|
||||||
|
{
|
||||||
|
assert(m_buffer);
|
||||||
|
return *m_buffer;
|
||||||
|
}
|
||||||
|
|
||||||
BufferIterator& BufferIterator::operator=(const BufferIterator& iterator)
|
BufferIterator& BufferIterator::operator=(const BufferIterator& iterator)
|
||||||
{
|
{
|
||||||
m_buffer == iterator.m_buffer;
|
m_buffer == iterator.m_buffer;
|
||||||
|
|
|
@ -55,6 +55,8 @@ public:
|
||||||
bool is_begin() const;
|
bool is_begin() const;
|
||||||
bool is_end() const;
|
bool is_end() const;
|
||||||
|
|
||||||
|
const Buffer& buffer() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const Buffer* m_buffer;
|
const Buffer* m_buffer;
|
||||||
BufferPos m_position;
|
BufferPos m_position;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user