Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::BitArray::Iterator Class Reference

#include <bitArray.H>

Collaboration diagram for Aleph::BitArray::Iterator:
[legend]

Public Member Functions

 Iterator ()=default
 
 Iterator (const BitArray &array) noexcept
 
bool has_curr () const noexcept
 
unsigned int get_curr_ne () const noexcept
 
unsigned int get_curr () const
 
long get_pos () const noexcept
 
void next_ne () noexcept
 
void next ()
 
void prev_ne () noexcept
 
void prev ()
 
void reset_last () noexcept
 
void end () noexcept
 
void reset_first () noexcept
 
void reset () noexcept
 

Private Attributes

BitArrayarray_ptr = nullptr
 
long curr_idx = 0
 

Detailed Description

Definition at line 1029 of file bitArray.H.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

Aleph::BitArray::Iterator::Iterator ( )
default

◆ Iterator() [2/2]

Aleph::BitArray::Iterator::Iterator ( const BitArray array)
inlinenoexcept

Definition at line 1037 of file bitArray.H.

Member Function Documentation

◆ end()

void Aleph::BitArray::Iterator::end ( )
inlinenoexcept

Definition at line 1090 of file bitArray.H.

References array_ptr, curr_idx, and Aleph::BitArray::size().

◆ get_curr()

unsigned int Aleph::BitArray::Iterator::get_curr ( ) const
inline

◆ get_curr_ne()

unsigned int Aleph::BitArray::Iterator::get_curr_ne ( ) const
inlinenoexcept

Definition at line 1049 of file bitArray.H.

References array_ptr, curr_idx, has_curr(), and Aleph::BitArray::read_bit_ne().

◆ get_pos()

long Aleph::BitArray::Iterator::get_pos ( ) const
inlinenoexcept

Definition at line 1061 of file bitArray.H.

References curr_idx.

◆ has_curr()

bool Aleph::BitArray::Iterator::has_curr ( ) const
inlinenoexcept

◆ next()

void Aleph::BitArray::Iterator::next ( )
inline

Definition at line 1065 of file bitArray.H.

References ah_overflow_error_if, array_ptr, curr_idx, next_ne(), and Aleph::BitArray::size().

◆ next_ne()

void Aleph::BitArray::Iterator::next_ne ( )
inlinenoexcept

Definition at line 1063 of file bitArray.H.

References curr_idx.

Referenced by next().

◆ prev()

void Aleph::BitArray::Iterator::prev ( )
inline

Definition at line 1075 of file bitArray.H.

References ah_underflow_error_if, array_ptr, curr_idx, and prev_ne().

◆ prev_ne()

void Aleph::BitArray::Iterator::prev_ne ( )
inlinenoexcept

Definition at line 1073 of file bitArray.H.

References curr_idx.

Referenced by prev().

◆ reset()

void Aleph::BitArray::Iterator::reset ( )
inlinenoexcept

Definition at line 1102 of file bitArray.H.

References reset_first().

◆ reset_first()

void Aleph::BitArray::Iterator::reset_first ( )
inlinenoexcept

Definition at line 1100 of file bitArray.H.

References curr_idx.

Referenced by reset().

◆ reset_last()

void Aleph::BitArray::Iterator::reset_last ( )
inlinenoexcept

Member Data Documentation

◆ array_ptr

BitArray* Aleph::BitArray::Iterator::array_ptr = nullptr
private

Definition at line 1031 of file bitArray.H.

Referenced by end(), get_curr(), get_curr_ne(), has_curr(), next(), prev(), and reset_last().

◆ curr_idx

long Aleph::BitArray::Iterator::curr_idx = 0
private

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