tbx
0.7.6
|
Class derived to implement iterator. More...
#include <selection.h>
Public Member Functions | |
SingleIteratorImpl (unsigned int index) | |
Construct iterator for item with given index. More... | |
virtual IteratorImpl * | clone () |
Get copy of this iterator implentation. More... | |
virtual unsigned int | index () const |
Get the current index. More... | |
virtual void | next () |
Advance iterator. More... | |
![]() | |
IteratorImpl () | |
Construct iterator implementation. | |
virtual | ~IteratorImpl () |
Destructor does nothing. | |
void | add_ref () |
Increase reference count. | |
void | release () |
Decrease reference count and delete this if reference count becomes zero. | |
bool | shared () const |
Check if the iterator implementation is being shared between two or more iterators. More... | |
Class derived to implement iterator.
|
inline |
Construct iterator for item with given index.
index | index of selected item |
|
inlinevirtual |
Get copy of this iterator implentation.
Implements tbx::view::Selection::IteratorImpl.
|
inlinevirtual |
Get the current index.
Implements tbx::view::Selection::IteratorImpl.
|
inlinevirtual |
Advance iterator.
For the single selection model this makes the index NO_SELECTION.
Implements tbx::view::Selection::IteratorImpl.