diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-10-24 14:26:21 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-10-24 14:26:21 +0000 |
| commit | d2c6ceb47b532d125c3cafffdca79fada54ee21f (patch) | |
| tree | e13757428f023d134cf0ba51bfab880a60c8ae40 /src/buffer_iterator.inl.h | |
| parent | bace526fa31f1ce9fbc89a1c468f2dc91bee8845 (diff) | |
DynamicBufferIterator: add and use in Selections
DynamicBufferIterator are a new type of BufferIterators that
automatically update themselves when their buffer is modified.
Selections now uses this type of iterators instead of plain ones
Diffstat (limited to 'src/buffer_iterator.inl.h')
| -rw-r--r-- | src/buffer_iterator.inl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buffer_iterator.inl.h b/src/buffer_iterator.inl.h index db59a8b4..feae368d 100644 --- a/src/buffer_iterator.inl.h +++ b/src/buffer_iterator.inl.h @@ -18,6 +18,11 @@ inline const Buffer& BufferIterator::buffer() const return *m_buffer; } +inline bool BufferIterator::is_valid() const +{ + return m_buffer; +} + inline BufferIterator& BufferIterator::operator=(const BufferIterator& iterator) { m_buffer = iterator.m_buffer; |
