|
Zip and Skip Tries
|
An iterator class for traversing the characters within a BitString. More...

Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | value_type = CHAR_T |
| using | difference_type = std::ptrdiff_t |
| using | pointer = const CHAR_T * |
| using | reference = CHAR_T |
Public Member Functions | |
| Iterator (const BitString &bs, size_t index) | |
| Constructs an iterator pointing to a specific character index. | |
| CHAR_T | operator* () const noexcept |
| Dereferences the iterator to get the character at the current position. | |
| Iterator & | operator++ () noexcept |
| Pre-increments the iterator to point to the next character. | |
| Iterator | operator++ (int) noexcept |
| Post-increments the iterator. | |
| bool | operator== (const Iterator &other) const noexcept |
| Compares this iterator with another for equality. | |
Private Attributes | |
| const BitString & | m_bs |
| Reference to the BitString being iterated over. | |
| size_t | m_index |
| Current character index. | |
An iterator class for traversing the characters within a BitString.
Provides read-only, forward iteration over the characters stored in the BitString. Dereferencing yields the character value, and incrementing moves to the next character.
Definition at line 364 of file BitString.cuh.
| using BitString< CHAR_T, CHAR_SIZE_BITS >::Iterator::difference_type = std::ptrdiff_t |
Definition at line 369 of file BitString.cuh.
| using BitString< CHAR_T, CHAR_SIZE_BITS >::Iterator::iterator_category = std::forward_iterator_tag |
Definition at line 367 of file BitString.cuh.
Definition at line 370 of file BitString.cuh.
| using BitString< CHAR_T, CHAR_SIZE_BITS >::Iterator::reference = CHAR_T |
Definition at line 371 of file BitString.cuh.
| using BitString< CHAR_T, CHAR_SIZE_BITS >::Iterator::value_type = CHAR_T |
Definition at line 368 of file BitString.cuh.
|
inline |
Constructs an iterator pointing to a specific character index.
| bs | The BitString to iterate over. |
| index | The initial character index. |
Definition at line 378 of file BitString.cuh.
|
inlinenoexcept |
Dereferences the iterator to get the character at the current position.
Definition at line 388 of file BitString.cuh.
|
inlinenoexcept |
Pre-increments the iterator to point to the next character.
Definition at line 397 of file BitString.cuh.
|
inlinenoexcept |
Post-increments the iterator.
++it) when possible for efficiency. Definition at line 408 of file BitString.cuh.
|
inlinenoexcept |
Compares this iterator with another for equality.
| other | The iterator to compare against. |
Definition at line 421 of file BitString.cuh.
|
private |
Reference to the BitString being iterated over.
Definition at line 428 of file BitString.cuh.
|
private |
Current character index.
Definition at line 430 of file BitString.cuh.