Iterator Comparison
It is possible to obtain the distance between to BasisIterator instances by:
-
int64_t danceq::internal::BasisIterator::distance(const BasisIterator<BasisU1> &basisiterator) const
Returns distance between two BasisIterator.
- Parameters:
basisiterator – Basisiterator for comparison
- Returns:
distance
The class exhibits all relevant comparison functions:
-
bool danceq::internal::BasisIterator::operator==(const BasisIterator<BasisU1> &basisiterator) const
Compares two instances.
The comparison is done using the index.
- Parameters:
basisiterator – BasisIterator to be compared
- Returns:
true
if both instances are equal, otherwisefalse
-
bool danceq::internal::BasisIterator::operator!=(const BasisIterator<BasisU1> &basisiterator) const
Compares two instances.
The comparison is done using the index.
- Parameters:
basisiterator – BasisIterator to be compared
- Returns:
false
if both instances are equal, otherwisetrue
-
bool danceq::internal::BasisIterator::operator>(const BasisIterator<BasisU1> &basisiterator) const
Compares two instances.
The comparison is done using the index.
- Parameters:
basisiterator – BasisIterator to be compared
- Returns:
true
ifthis
is greater, otherwisefalse
-
bool danceq::internal::BasisIterator::operator<(const BasisIterator<BasisU1> &basisiterator) const
Compares two instances.
The comparison is done using the index.
- Parameters:
basisiterator – BasisIterator to be compared
- Returns:
true
ifthis
is lesser, otherwisefalse
-
bool danceq::internal::BasisIterator::operator>=(const BasisIterator<BasisU1> &basisiterator) const
Compares two instances.
The comparison is done using the index.
- Parameters:
basisiterator – BasisIterator to be compared
- Returns:
true
ifthis
is greater equal, otherwisefalse
-
bool danceq::internal::BasisIterator::operator<=(const BasisIterator<BasisU1> &basisiterator) const
Compares two instances.
The comparison is done using the index.
- Parameters:
basisiterator – BasisIterator to be compared
- Returns:
true
ifthis
is lesser equal, otherwisefalse