BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches
chess::board::detail::BitboardIterator Struct Referencefinal

#include <libchess/board/Bitboard.hpp>

Public Types

using difference_type = std::ptrdiff_t
using element_type = value_type
using iterator_category = std::forward_iterator_tag
using iterator_concept = std::forward_iterator_tag
using pointer = value_type
using reference = value_type
using value_type = BitboardIndex

Public Member Functions

consteval BitboardIterator ()=default
constexpr BitboardIterator (const Bitboard &bitboard)
constexpr auto operator* () const noexcept -> value_type
constexpr auto operator++ () noexcept -> BitboardIterator &
constexpr auto operator++ (int) noexcept -> BitboardIterator
constexpr auto operator== (const BitboardIterator &other) const noexcept -> bool=default
constexpr auto operator== (std::default_sentinel_t sentinel) const noexcept -> bool

Detailed Description

Definition at line 400 of file Bitboard.hpp.

Member Typedef Documentation

◆ difference_type

Definition at line 406 of file Bitboard.hpp.

◆ element_type

◆ iterator_category

Definition at line 408 of file Bitboard.hpp.

◆ iterator_concept

Definition at line 409 of file Bitboard.hpp.

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ BitboardIterator() [1/2]

chess::board::detail::BitboardIterator::BitboardIterator ( )
constevaldefault

◆ BitboardIterator() [2/2]

chess::board::detail::BitboardIterator::BitboardIterator ( const Bitboard & bitboard)
inlineexplicitconstexpr

Definition at line 413 of file Bitboard.hpp.

Member Function Documentation

◆ operator*()

auto chess::board::detail::BitboardIterator::operator* ( ) const -> value_type
inlinenodiscardconstexprnoexcept

Definition at line 425 of file Bitboard.hpp.

◆ operator++() [1/2]

auto chess::board::detail::BitboardIterator::operator++ ( ) -> BitboardIterator &
inlineconstexprnoexcept

Definition at line 430 of file Bitboard.hpp.

◆ operator++() [2/2]

auto chess::board::detail::BitboardIterator::operator++ ( int ) -> BitboardIterator
inlinenodiscardconstexprnoexcept

Definition at line 439 of file Bitboard.hpp.

◆ operator==() [1/2]

auto chess::board::detail::BitboardIterator::operator== ( const BitboardIterator & other) const -> bool=default
constexprdefaultnoexcept

◆ operator==() [2/2]

auto chess::board::detail::BitboardIterator::operator== ( std::default_sentinel_t sentinel) const -> bool
inlineconstexprnoexcept

Definition at line 420 of file Bitboard.hpp.


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