tbx  0.7.3
Public Member Functions | List of all members
tbx::view::Selection::IteratorImpl Class Referenceabstract

Class derived from in subclasses to actually provided the iterator implementation. More...

#include <selection.h>

Inheritance diagram for tbx::view::Selection::IteratorImpl:
tbx::view::MultiSelection::MultiIteratorImpl

Public Member Functions

 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...
 
virtual IteratorImplclone ()=0
 Override this method to return a copy of the iterator implementation. More...
 
virtual unsigned int index () const =0
 Override this to get the current index. More...
 
virtual void next ()=0
 Override this method to advance the iterator to the next item.
 

Detailed Description

Class derived from in subclasses to actually provided the iterator implementation.

Member Function Documentation

virtual IteratorImpl* tbx::view::Selection::IteratorImpl::clone ( )
pure virtual

Override this method to return a copy of the iterator implementation.

Returns
copy of iterator implementation

Implemented in tbx::view::MultiSelection::MultiIteratorImpl.

virtual unsigned int tbx::view::Selection::IteratorImpl::index ( ) const
pure virtual

Override this to get the current index.

Returns
current index or NO_INDEX if at the end

Implemented in tbx::view::MultiSelection::MultiIteratorImpl.

bool tbx::view::Selection::IteratorImpl::shared ( ) const
inline

Check if the iterator implementation is being shared between two or more iterators.

Returns
true if this is shared

The documentation for this class was generated from the following file: