tlx
unguarded_iterator< RandomAccessIterator, Comparator > Class Template Reference

#include <multiway_merge.hpp>

Public Types

using self_type = unguarded_iterator< RandomAccessIterator, Comparator >
 Our own type. More...
 
using value_type = typename std::iterator_traits< RandomAccessIterator >::value_type
 Value type of the iterator. More...
 

Public Member Functions

 unguarded_iterator (RandomAccessIterator begin, RandomAccessIterator, Comparator &comp)
 Constructor. More...
 
self_typeoperator++ ()
 Pre-increment operator. More...
 
value_typeoperator* ()
 Dereference operator. More...
 
RandomAccessIterator & iterator ()
 Convert to wrapped iterator. More...
 

Protected Attributes

RandomAccessIterator current
 Current iterator position. More...
 
Comparator & comp_
 Comparator. More...
 

Friends

bool operator< (self_type &bi1, self_type &bi2)
 Compare two elements referenced by unguarded iterators. More...
 
bool operator<= (self_type &bi1, self_type &bi2)
 Compare two elements referenced by unguarded iterators. More...
 

Detailed Description

template<typename RandomAccessIterator, typename Comparator>
class tlx::multiway_merge_detail::unguarded_iterator< RandomAccessIterator, Comparator >

Definition at line 140 of file multiway_merge.hpp.

Member Typedef Documentation

using self_type = unguarded_iterator<RandomAccessIterator, Comparator>

Our own type.

Definition at line 144 of file multiway_merge.hpp.

using value_type = typename std::iterator_traits<RandomAccessIterator>::value_type

Value type of the iterator.

Definition at line 148 of file multiway_merge.hpp.

Constructor & Destructor Documentation

unguarded_iterator ( RandomAccessIterator  begin,
RandomAccessIterator  ,
Comparator &  comp 
)
inline

Constructor.

Sets iterator to beginning of sequence.

Parameters
beginBegin iterator of sequence. param end Unused, only for compatibility.
compUnused, only for compatibility.

Definition at line 163 of file multiway_merge.hpp.

Member Function Documentation

RandomAccessIterator& iterator ( )
inline

Convert to wrapped iterator.

Returns
Wrapped iterator.

Definition at line 190 of file multiway_merge.hpp.

value_type& operator* ( )
inline

Dereference operator.

Returns
Referenced element.

Definition at line 182 of file multiway_merge.hpp.

self_type& operator++ ( )
inline

Pre-increment operator.

Returns
This.

Definition at line 173 of file multiway_merge.hpp.

Friends And Related Function Documentation

bool operator< ( self_type bi1,
self_type bi2 
)
friend

Compare two elements referenced by unguarded iterators.

Parameters
bi1First iterator.
bi2Second iterator.
Returns
True if less.

Definition at line 200 of file multiway_merge.hpp.

bool operator<= ( self_type bi1,
self_type bi2 
)
friend

Compare two elements referenced by unguarded iterators.

Parameters
bi1First iterator.
bi2Second iterator.
Returns
True if less equal.

Definition at line 210 of file multiway_merge.hpp.

Member Data Documentation

Comparator& comp_
protected

Comparator.

Definition at line 154 of file multiway_merge.hpp.

RandomAccessIterator current
protected

Current iterator position.

Definition at line 152 of file multiway_merge.hpp.


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