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 612 of file bitset.inl.
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 625 of file bitset.inl.
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 663 of file bitset.inl.
template<typename TInterface, TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM, bool isReverse>
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 771 of file bitset.inl.
template<typename TInterface, TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM, bool isReverse>
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 778 of file bitset.inl.
template<typename TInterface, TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM, bool isReverse>
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 785 of file bitset.inl.
template<typename TInterface, TInterface TEnd, TInterface TBegin = 0>
template<typename TBitSetCM, bool isReverse>
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 792 of file bitset.inl.
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 630 of file bitset.inl.