GBAlatro
A Demake of Balatro for the GBA
Loading...
Searching...
No Matches
BitsetItr Struct Reference

An iterator into a Bitset. More...

#include <bitset.h>

Data Fields

const Bitsetbitset
 Bitset this is iterating through
 
int word
 Current word the iterator is on.
 
int bit
 Current bit the iterator is on.
 
int itr
 Number of bits that have been iterated through in total.
 

Detailed Description

An iterator into a Bitset.

This iterator will parse and find the next index to a '1' bit as efficiently as possible.

There is no implementation of the following (yet):

  • Reverse iteration
  • Bit-by-bit iteration
  • Iterating on offsets to '0' bits

Definition at line 72 of file bitset.h.

Field Documentation

◆ bit

int bit

Current bit the iterator is on.

Definition at line 87 of file bitset.h.

◆ bitset

const Bitset* bitset

Bitset this is iterating through

Definition at line 77 of file bitset.h.

◆ itr

int itr

Number of bits that have been iterated through in total.

Definition at line 92 of file bitset.h.

◆ word

int word

Current word the iterator is on.

Definition at line 82 of file bitset.h.


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