Nui
Public Member Functions | Protected Attributes | Friends | List of all members
Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator > Class Template Reference

Iterator that ignores items that are selected. More...

#include <selectables_registry.hpp>

Inheritance diagram for Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >:
Inheritance graph
[legend]

Public Member Functions

 IteratorBase (WrappedIterator wrapped, WrappedIterator begin, WrappedIterator end)
 
 IteratorBase (IteratorBase const &)=default
 
 IteratorBase (IteratorBase &&)=default
 
IteratorBaseoperator= (IteratorBase const &)=default
 
IteratorBaseoperator= (IteratorBase &&)=default
 
 ~IteratorBase ()=default
 
IteratorBaseoperator++ ()
 
IteratorBase operator++ (int)
 
IteratorBaseoperator-- ()
 
IteratorBase operator-- (int)
 
IteratorBase operator+ (std::size_t offset) const
 
IteratorBase operator- (std::size_t offset) const
 
IteratorBaseoperator+= (std::size_t offset)
 
IteratorBaseoperator-= (std::size_t offset)
 
bool isEnd () const
 

Protected Attributes

WrappedIterator wrappedIterator_
 
WrappedIterator beginIterator_
 
WrappedIterator endIterator_
 

Friends

bool operator== (const IteratorBase &lhs, const IteratorBase &rhs)
 
bool operator!= (const IteratorBase &lhs, const IteratorBase &rhs)
 

Detailed Description

template<typename T>
template<typename WrappedIterator>
class Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >

Iterator that ignores items that are selected.

This iterator is also a safe iterator, performing range checking, which is required but also adds overhead.

Template Parameters
WrappedIteratorThe underlying iterator type.

Constructor & Destructor Documentation

◆ IteratorBase() [1/3]

template<typename T >
template<typename WrappedIterator >
Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::IteratorBase ( WrappedIterator  wrapped,
WrappedIterator  begin,
WrappedIterator  end 
)
inline

◆ IteratorBase() [2/3]

template<typename T >
template<typename WrappedIterator >
Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::IteratorBase ( IteratorBase< WrappedIterator > const &  )
default

◆ IteratorBase() [3/3]

template<typename T >
template<typename WrappedIterator >
Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::IteratorBase ( IteratorBase< WrappedIterator > &&  )
default

◆ ~IteratorBase()

template<typename T >
template<typename WrappedIterator >
Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::~IteratorBase ( )
default

Member Function Documentation

◆ isEnd()

template<typename T >
template<typename WrappedIterator >
bool Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::isEnd ( ) const
inline

◆ operator+()

template<typename T >
template<typename WrappedIterator >
IteratorBase Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::operator+ ( std::size_t  offset) const
inline

◆ operator++() [1/2]

template<typename T >
template<typename WrappedIterator >
IteratorBase& Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::operator++ ( )
inline

◆ operator++() [2/2]

template<typename T >
template<typename WrappedIterator >
IteratorBase Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::operator++ ( int  )
inline

◆ operator+=()

template<typename T >
template<typename WrappedIterator >
IteratorBase& Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::operator+= ( std::size_t  offset)
inline

◆ operator-()

template<typename T >
template<typename WrappedIterator >
IteratorBase Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::operator- ( std::size_t  offset) const
inline

◆ operator--() [1/2]

template<typename T >
template<typename WrappedIterator >
IteratorBase& Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::operator-- ( )
inline

◆ operator--() [2/2]

template<typename T >
template<typename WrappedIterator >
IteratorBase Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::operator-- ( int  )
inline

◆ operator-=()

template<typename T >
template<typename WrappedIterator >
IteratorBase& Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::operator-= ( std::size_t  offset)
inline

◆ operator=() [1/2]

template<typename T >
template<typename WrappedIterator >
IteratorBase& Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::operator= ( IteratorBase< WrappedIterator > &&  )
default

◆ operator=() [2/2]

template<typename T >
template<typename WrappedIterator >
IteratorBase& Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::operator= ( IteratorBase< WrappedIterator > const &  )
default

Friends And Related Function Documentation

◆ operator!=

template<typename T >
template<typename WrappedIterator >
bool operator!= ( const IteratorBase< WrappedIterator > &  lhs,
const IteratorBase< WrappedIterator > &  rhs 
)
friend

◆ operator==

template<typename T >
template<typename WrappedIterator >
bool operator== ( const IteratorBase< WrappedIterator > &  lhs,
const IteratorBase< WrappedIterator > &  rhs 
)
friend

Member Data Documentation

◆ beginIterator_

template<typename T >
template<typename WrappedIterator >
WrappedIterator Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::beginIterator_
protected

◆ endIterator_

template<typename T >
template<typename WrappedIterator >
WrappedIterator Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::endIterator_
protected

◆ wrappedIterator_

template<typename T >
template<typename WrappedIterator >
WrappedIterator Nui::SelectablesRegistry< T >::IteratorBase< WrappedIterator >::wrappedIterator_
protected

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