libstdc++
__gnu_parallel::_GuardedIterator Class Reference

List of all members.

Public Member Functions

Friends


Detailed Description

_Iterator wrapper supporting an implicit supremum at the end of the sequence, dominating all comparisons.

The implicit supremum comes with a performance cost.

Deriving from _RAIter is not possible since _RAIter need not be a class.


Constructor & Destructor Documentation

__gnu_parallel::_GuardedIterator::_GuardedIterator ( _RAIter  __begin,
_RAIter  __end,
_Compare &  __comp 
) [inline]

Constructor. Sets iterator to beginning of sequence.

Parameters:
__beginBegin iterator of sequence.
__endEnd iterator of sequence.
__compComparator provided for associated overloaded compare operators.

Definition at line 84 of file multiway_merge.h.


Member Function Documentation

__gnu_parallel::_GuardedIterator::operator _RAIter ( ) [inline]

Convert to wrapped iterator.

Returns:
Wrapped iterator.

Definition at line 105 of file multiway_merge.h.

std::iterator_traits<_RAIter>::value_type& __gnu_parallel::_GuardedIterator::operator* ( ) [inline]

Dereference operator.

Returns:
Referenced element.

Definition at line 100 of file multiway_merge.h.

_GuardedIterator<_RAIter, _Compare>& __gnu_parallel::_GuardedIterator::operator++ ( ) [inline]

Pre-increment operator.

Returns:
This.

Definition at line 91 of file multiway_merge.h.


Friends And Related Function Documentation

bool operator< ( _GuardedIterator< _RAIter, _Compare > &  __bi1,
_GuardedIterator< _RAIter, _Compare > &  __bi2 
) [friend]

Compare two elements referenced by guarded iterators.

Parameters:
__bi1First iterator.
__bi2Second iterator.
Returns:
true if less.

Definition at line 113 of file multiway_merge.h.

bool operator<= ( _GuardedIterator< _RAIter, _Compare > &  __bi1,
_GuardedIterator< _RAIter, _Compare > &  __bi2 
) [friend]

Compare two elements referenced by guarded iterators.

Parameters:
__bi1First iterator.
__bi2Second iterator.
Returns:
True if less equal.

Definition at line 128 of file multiway_merge.h.


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