An iterator for cards.
More...
#include <Card.hpp>
|
std::uint8_t | index |
| The index of the card.
|
|
◆ CardIterator()
Cluedo::CardUtils::CardIterator::CardIterator |
( |
std::uint8_t | i | ) |
|
|
inlineconstexpr |
Constructs an iterator that points to the card with the given index.
- Parameters
-
◆ operator!=()
bool Cluedo::CardUtils::CardIterator::operator!= |
( |
CardIterator const & | other | ) |
const |
|
inlineconstexpr |
Compares two iterators.
- Parameters
-
- Returns
true
if the iterators don't point to the same card, false
otherwise.
◆ operator*()
Card Cluedo::CardUtils::CardIterator::operator* |
( |
| ) |
const |
|
inlineconstexpr |
Returns the card that the iterator points to.
- Returns
- The card that the iterator points to.
The documentation for this struct was generated from the following file: