BitMagic-C++
|
Base class for all iterators. More...
#include <bm.h>
Data Structures | |
struct | bitblock_descr |
Bit-block descriptor. More... | |
union | block_descr |
struct | dgap_descr |
Information about current DGAP block. More... | |
Public Member Functions | |
iterator_base () BMNOEXCEPT | |
bool | operator== (const iterator_base &it) const BMNOEXCEPT |
More... | |
bool | operator!= (const iterator_base &it) const BMNOEXCEPT |
More... | |
bool | operator< (const iterator_base &it) const BMNOEXCEPT |
More... | |
bool | operator<= (const iterator_base &it) const BMNOEXCEPT |
More... | |
bool | operator> (const iterator_base &it) const BMNOEXCEPT |
More... | |
bool | operator>= (const iterator_base &it) const BMNOEXCEPT |
More... | |
bool | valid () const BMNOEXCEPT |
Checks if iterator is still valid. More... | |
void | invalidate () BMNOEXCEPT |
Turns iterator into an invalid state. More... | |
bool | compare_state (const iterator_base &ib) const BMNOEXCEPT |
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_ |
More... | |
Friends | |
class | bvector |
Base class for all iterators.
|
inline |
Compare FSMs for testing purposes.
Definition at line 295 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 |
Turns iterator into an invalid state.
Definition at line 289 of file bm.h.
References bm::bvector< Alloc >::iterator_base::block_type_, bm::id_max, and bm::bvector< Alloc >::iterator_base::position_.
Referenced by bm::bvector< Alloc >::enumerator::go_first(), bm::bvector< Alloc >::enumerator::go_to(), bm::bvector< Alloc >::enumerator::go_up(), and bm::bvector< Alloc >::enumerator::skip().
|
inline |
Definition at line 253 of file bm.h.
References bm::bvector< Alloc >::iterator_base::operator==().
|
inline |
Definition at line 258 of file bm.h.
References bm::bvector< Alloc >::iterator_base::position_.
|
inline |
Definition at line 263 of file bm.h.
References bm::bvector< Alloc >::iterator_base::position_.
|
inline |
Definition at line 248 of file bm.h.
References bm::bvector< Alloc >::iterator_base::bv_, and bm::bvector< Alloc >::iterator_base::position_.
Referenced by bm::bvector< Alloc >::iterator_base::operator!=().
|
inline |
Definition at line 268 of file bm.h.
References bm::bvector< Alloc >::iterator_base::position_.
|
inline |
Definition at line 273 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 283 of file bm.h.
References bm::id_max, and bm::bvector< Alloc >::iterator_base::position_.
Referenced by assign_to_best_cluster(), assign_to_best_cluster_union(), bm::compute_sim_matrix_plan_builder< BV >::build_plan(), bv2delta(), bv_counted_enumerator(), compute_frequent_kmers(), compute_random_clusters(), compute_seq_group_union(), bm::xor_scanner< BV >::compute_sim_model(), convert_bv2sv(), convert_bv2vect(), bm::bvector< Alloc >::counted_enumerator::counted_enumerator(), bm::rsc_sparse_vector< Val, SV >::decode(), bm::rsc_sparse_vector< Val, SV >::decode_buf(), CSequenceColl::deserialize_k_mers(), CSeqClusters::elect_leaders(), generate_random_subset(), bm::bvector< Alloc >::enumerator::go_to(), bm::bvector< Alloc >::enumerator::go_up(), main(), Counting_JobFunctor< DNA_Scan >::operator()(), bm::bvector< Alloc >::counted_enumerator::operator++(), bm::bvector< Alloc >::counted_enumerator::operator=(), print_bvector(), PrintKleeneVector(), bm::set2set_11_transform< SV >::remap(), resolve_duplicates(), bm::rsc_sparse_vector< Val, SV >::set_null(), bm::bvector< Alloc >::enumerator::skip(), bm::bvector< Alloc >::enumerator::skip_to_rank(), speed_test_bv_index(), speed_test_bvs_index(), speed_test_sv_index(), speed_test_vect_index(), and DNA_FingerprintScanner::TranslateResults().
|
protected |
|
protected |
Block pointer.(NULL-invalid)
Definition at line 351 of file bm.h.
Referenced by bm::bvector< Alloc >::iterator_base::compare_state(), bm::bvector< Alloc >::enumerator::go_first(), and bm::bvector< Alloc >::enumerator::go_to().
|
protected |
Block index.
Definition at line 353 of file bm.h.
Referenced by bm::bvector< Alloc >::iterator_base::compare_state(), bm::bvector< Alloc >::enumerator::go_first(), and bm::bvector< Alloc >::enumerator::go_to().
|
protected |
Type of block. 0-Bit, 1-GAP.
Definition at line 352 of file bm.h.
Referenced by bm::bvector< Alloc >::iterator_base::compare_state(), bm::bvector< Alloc >::enumerator::go_first(), bm::bvector< Alloc >::enumerator::go_to(), bm::bvector< Alloc >::enumerator::go_up(), bm::bvector< Alloc >::iterator_base::invalidate(), and bm::bvector< Alloc >::enumerator::skip().
|
protected |
Pointer on parent bitvector.
Definition at line 349 of file bm.h.
Referenced by bm::bvector< Alloc >::iterator_base::compare_state(), bm::bvector< Alloc >::enumerator::enumerator(), bm::bvector< Alloc >::enumerator::go_first(), bm::bvector< Alloc >::enumerator::go_to(), and bm::bvector< Alloc >::iterator_base::operator==().
|
protected |
Bit position (bit idx)
Definition at line 350 of file bm.h.
Referenced by bm::bvector< Alloc >::iterator_base::compare_state(), bm::bvector< Alloc >::enumerator::go_first(), bm::bvector< Alloc >::enumerator::go_to(), bm::bvector< Alloc >::enumerator::go_up(), bm::bvector< Alloc >::iterator_base::invalidate(), bm::bvector< Alloc >::enumerator::operator*(), bm::bvector< Alloc >::iterator_base::operator<(), bm::bvector< Alloc >::iterator_base::operator<=(), bm::bvector< Alloc >::iterator_base::operator==(), bm::bvector< Alloc >::iterator_base::operator>(), bm::bvector< Alloc >::iterator_base::operator>=(), bm::bvector< Alloc >::enumerator::skip(), bm::bvector< Alloc >::iterator_base::valid(), and bm::bvector< Alloc >::enumerator::value().