Cluedo Solver v1.0
Cluedo game solver making deductions.
Loading...
Searching...
No Matches
Cluedo::CardUtils::cards_per_category Struct Reference

Helper class for iterator on all the cards of a category. More...

#include <Card.hpp>

Public Member Functions

constexpr cards_per_category (CardCategory c)
 Constructs the helper class.
 
constexpr std::uint8_t count () const
 Returns the number of cards in the category.
 
constexpr CardIterator begin () const
 
constexpr CardIterator end () const
 

Public Attributes

CardCategory category
 The category of the cards to iterate on.
 

Detailed Description

Helper class for iterator on all the cards of a category.

Member Function Documentation

◆ begin()

CardIterator Cluedo::CardUtils::cards_per_category::begin ( ) const
inlineconstexpr

Returns an iterator that points to the first card of the category.

Returns
The iterator that points to the first card of the category.

◆ end()

CardIterator Cluedo::CardUtils::cards_per_category::end ( ) const
inlineconstexpr

Returns an iterator that points to the last card of the category.

Returns
The iterator that points to the last card of the category.

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