template<typename TInterface, TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM, bool isReverse>
class alib::lang::TBitSet< TInterface, TEnd, TBegin >::TBidiIterator< TBitSetCM, isReverse >
Implementation of std::iterator_traits
for class TBitSet. As the name of the class indicates, this iterator satisfies the C++ standard library concept of bidirectional iterators. The template parameters allow this type to act as a const
or mutable as well as a forward or backward iterator.
The public available type definitions which specify the template parameters and are returned from the various begin()
and end()
variants of the outer class are:
- Template Parameters
-
TBitSetCM | A constant or mutable TBitSet. |
isReverse | If set, this iterator is a swaps ++ and – operators. |
Definition at line 635 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM , bool isReverse>
Implementation of std::iterator_traits
.
Definition at line 640 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM , bool isReverse>
Implementation of std::iterator_traits
.
Definition at line 638 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM , bool isReverse>
Implementation of std::iterator_traits
.
Definition at line 641 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM , bool isReverse>
Implementation of std::iterator_traits
.
Definition at line 639 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM , bool isReverse>
The bit this iterator currently addresses. This is true for forward and reverse iterators. (Because this is not using the std::reverse_iterator<
which would implement an reverse iterator that points 'before' the current element.
Definition at line 648 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM , bool isReverse>
Searches and moves this iterator to the next lower bit is. In case no lower bit is found, the iterator will points to illegal bit number -1
.
- Returns
- A reference to this object.
Definition at line 686 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM , bool isReverse>
Retrieves a reference to the internal Reference member that this iterator uses.
- Returns
- The reference to the bit this iterator is currently addressing.
Definition at line 766 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM , bool isReverse>
Prefix increment operator.
- Returns
- A reference to this object.
Definition at line 731 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM , bool isReverse>
Postfix increment operator.
- Returns
- An iterator value that is not increased, yet.
Definition at line 739 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM , bool isReverse>
Prefix decrement operator.
- Returns
- A reference to this object.
Definition at line 774 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM , bool isReverse>
Postfix decrement operator.
- Returns
- The iterator value prior the decrement operation.
Definition at line 782 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM , bool isReverse>
bool operator< |
( |
TBidiIterator< TBitSetCM, isReverse > | other | ) |
const |
|
inline |
Compares this iterator with the given one.
- Parameters
-
other | The iterator to compare |
- Returns
true
if this iterator is smaller than other, false
otherwise.
Definition at line 794 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM , bool isReverse>
bool operator<= |
( |
TBidiIterator< TBitSetCM, isReverse > | other | ) |
const |
|
inline |
Compares this iterator with the given one.
- Parameters
-
other | The iterator to compare |
- Returns
true
if this iterator is smaller than or equal to other, false
otherwise.
Definition at line 801 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM , bool isReverse>
bool operator> |
( |
TBidiIterator< TBitSetCM, isReverse > | other | ) |
const |
|
inline |
Compares this iterator with the given one.
- Parameters
-
other | The iterator to compare |
- Returns
true
if this iterator is greater than other, false
otherwise.
Definition at line 808 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM , bool isReverse>
bool operator>= |
( |
TBidiIterator< TBitSetCM, isReverse > | other | ) |
const |
|
inline |
Compares this iterator with the given one.
- Parameters
-
other | The iterator to compare |
- Returns
true
if this iterator is greater than or equal to other, false
otherwise.
Definition at line 815 of file bitset.hpp.
template<typename TInterface , TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM , bool isReverse>
Searches and moves this iterator to the next higher bit is. In case no further bit is found, the iterator will points to illegal bit number TBitSet::Capacity
- Returns
- A reference to this object.
Definition at line 653 of file bitset.hpp.