BitMagic-C++
|
Base class for all iterators. More...
#include <bm.h>
Data Structures | |
struct | bitblock_descr |
Information about current bitblock. More... | |
union | block_descr |
struct | dgap_descr |
Information about current DGAP block. More... | |
Public Member Functions | |
iterator_base () | |
bool | operator== (const iterator_base &it) const |
bool | operator!= (const iterator_base &it) const |
bool | operator< (const iterator_base &it) const |
bool | operator<= (const iterator_base &it) const |
bool | operator> (const iterator_base &it) const |
bool | operator>= (const iterator_base &it) const |
bool | valid () const |
Checks if iterator is still valid. More... | |
void | invalidate () |
Turns iterator into an invalid state. More... | |
bool | compare_state (const iterator_base &ib) const |
Compare FSMs for testing purposes. More... | |
Protected Attributes | |
bm::bvector< Alloc > * | bv_ |
Pointer on parent bitvector. More... | |
size_type | position_ |
Bit position (bit idx) More... | |
const bm::word_t * | block_ |
Block pointer.(NULL-invalid) More... | |
unsigned | block_type_ |
Type of block. 0-Bit, 1-GAP. More... | |
block_idx_type | block_idx_ |
Block index. More... | |
union bm::bvector::iterator_base::block_descr | bdescr_ |
Friends | |
class | bvector |
Base class for all iterators.
|
inline |
|
inline |
Compare FSMs for testing purposes.
Definition at line 288 of file bm.h.
References bm::bvector< Alloc >::iterator_base::bdescr_, bm::bvector< Alloc >::iterator_base::block_descr::bit_, bm::bvector< Alloc >::iterator_base::bitblock_descr::bits, bm::bvector< Alloc >::iterator_base::block_, bm::bvector< Alloc >::iterator_base::block_idx_, bm::bvector< Alloc >::iterator_base::block_type_, bm::bvector< Alloc >::iterator_base::bv_, bm::bvector< Alloc >::iterator_base::bitblock_descr::cnt, bm::bvector< Alloc >::iterator_base::block_descr::gap_, bm::bvector< Alloc >::iterator_base::dgap_descr::gap_len, bm::bvector< Alloc >::iterator_base::bitblock_descr::idx, bm::bvector< Alloc >::iterator_base::bitblock_descr::pos, bm::bvector< Alloc >::iterator_base::position_, bm::bvector< Alloc >::iterator_base::bitblock_descr::ptr, and bm::bvector< Alloc >::iterator_base::dgap_descr::ptr.
|
inline |
|
inline |
Definition at line 247 of file bm.h.
References bm::bvector< Alloc >::operator==().
|
inline |
Definition at line 252 of file bm.h.
References bm::bvector< Alloc >::iterator_base::position_.
|
inline |
Definition at line 257 of file bm.h.
References bm::bvector< Alloc >::iterator_base::position_.
|
inline |
Definition at line 242 of file bm.h.
References bm::bvector< Alloc >::iterator_base::bv_, and bm::bvector< Alloc >::iterator_base::position_.
|
inline |
Definition at line 262 of file bm.h.
References bm::bvector< Alloc >::iterator_base::position_.
|
inline |
Definition at line 267 of file bm.h.
References bm::bvector< Alloc >::iterator_base::position_.
|
inline |
Checks if iterator is still valid.
Analog of != 0 comparison for pointers.
Definition at line 277 of file bm.h.
References bm::id_max.
Referenced by bv2delta(), bv_counted_enumerator(), convert_bv2sv(), convert_bv2vect(), bm::rsc_sparse_vector< Val, SV >::decode(), bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::decode(), generate_random_subset(), main(), print_bvector(), speed_test_bv_index(), speed_test_bvs_index(), speed_test_sv_index(), speed_test_vect_index(), and DNA_FingerprintScanner::TranslateResults().
|
protected |
Referenced by bm::bvector< Alloc >::iterator_base::compare_state().
|
protected |
Block pointer.(NULL-invalid)
Definition at line 340 of file bm.h.
Referenced by bm::bvector< Alloc >::iterator_base::compare_state().
|
protected |
Block index.
Definition at line 342 of file bm.h.
Referenced by bm::bvector< Alloc >::iterator_base::compare_state().
|
protected |
Type of block. 0-Bit, 1-GAP.
Definition at line 341 of file bm.h.
Referenced by bm::bvector< Alloc >::iterator_base::compare_state().
|
protected |
Pointer on parent bitvector.
Definition at line 338 of file bm.h.
Referenced by bm::bvector< Alloc >::iterator_base::compare_state(), and bm::bvector< Alloc >::iterator_base::operator==().
|
protected |
Bit position (bit idx)
Definition at line 339 of file bm.h.
Referenced by bm::bvector< Alloc >::iterator_base::compare_state(), bm::bvector< Alloc >::iterator_base::operator<(), bm::bvector< Alloc >::iterator_base::operator<=(), bm::bvector< Alloc >::iterator_base::operator==(), bm::bvector< Alloc >::iterator_base::operator>(), and bm::bvector< Alloc >::iterator_base::operator>=().