dlvhex  2.5.0
bm::bvector< Alloc >::iterator_base Class Reference

Base class for all iterators. More...

#include <vs10/bm/bm.h>

Inheritance diagram for bm::bvector< Alloc >::iterator_base:
Collaboration diagram for bm::bvector< Alloc >::iterator_base:

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.
void invalidate ()
 Turns iterator into an invalid state.
 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
void invalidate ()

Protected Attributes

bm::bvector< Alloc > * bv_
 Pointer on parent bitvector.
bm::id_t position_
 Bit position (bit idx)
const bm::word_tblock_
 Block pointer.(NULL-invalid)
unsigned block_type_
 Type of block. 0-Bit, 1-GAP.
unsigned block_idx_
 Block index.
union
bm::bvector::iterator_base::block_descr 
bdescr_

Friends

class bvector

Detailed Description

template<class Alloc>
class bm::bvector< Alloc >::iterator_base

Base class for all iterators.

Definition at line 231 of file bm.h.


Constructor & Destructor Documentation

template<class Alloc>
bm::bvector< Alloc >::iterator_base::iterator_base ( ) [inline]

Definition at line 235 of file bm.h.

template<class Alloc>
bm::bvector< Alloc >::iterator_base::iterator_base ( ) [inline]

Definition at line 235 of file bm.h.


Member Function Documentation

template<class Alloc>
bool bm::bvector< Alloc >::iterator_base::invalidate ( ) [inline]
template<class Alloc>
void bm::bvector< Alloc >::iterator_base::invalidate ( ) [inline]

Definition at line 281 of file bm.h.

References bm::id_max, and bm::bvector< Alloc >::iterator_base::position_.

template<class Alloc>
bool bm::bvector< Alloc >::iterator_base::operator!= ( const iterator_base it) const [inline]

Definition at line 242 of file bm.h.

References bm::bvector< Alloc >::iterator_base::operator==().

template<class Alloc>
bool bm::bvector< Alloc >::iterator_base::operator!= ( const iterator_base it) const [inline]

Definition at line 242 of file bm.h.

References bm::bvector< Alloc >::iterator_base::operator==().

template<class Alloc>
bool bm::bvector< Alloc >::iterator_base::operator< ( const iterator_base it) const [inline]

Definition at line 247 of file bm.h.

References bm::bvector< Alloc >::iterator_base::position_.

template<class Alloc>
bool bm::bvector< Alloc >::iterator_base::operator< ( const iterator_base it) const [inline]

Definition at line 247 of file bm.h.

References bm::bvector< Alloc >::iterator_base::position_.

template<class Alloc>
bool bm::bvector< Alloc >::iterator_base::operator<= ( const iterator_base it) const [inline]

Definition at line 252 of file bm.h.

References bm::bvector< Alloc >::iterator_base::position_.

template<class Alloc>
bool bm::bvector< Alloc >::iterator_base::operator<= ( const iterator_base it) const [inline]

Definition at line 252 of file bm.h.

References bm::bvector< Alloc >::iterator_base::position_.

template<class Alloc>
bool bm::bvector< Alloc >::iterator_base::operator== ( const iterator_base it) const [inline]
template<class Alloc>
bool bm::bvector< Alloc >::iterator_base::operator== ( const iterator_base it) const [inline]
template<class Alloc>
bool bm::bvector< Alloc >::iterator_base::operator> ( const iterator_base it) const [inline]

Definition at line 257 of file bm.h.

References bm::bvector< Alloc >::iterator_base::position_.

template<class Alloc>
bool bm::bvector< Alloc >::iterator_base::operator> ( const iterator_base it) const [inline]

Definition at line 257 of file bm.h.

References bm::bvector< Alloc >::iterator_base::position_.

template<class Alloc>
bool bm::bvector< Alloc >::iterator_base::operator>= ( const iterator_base it) const [inline]

Definition at line 262 of file bm.h.

References bm::bvector< Alloc >::iterator_base::position_.

template<class Alloc>
bool bm::bvector< Alloc >::iterator_base::operator>= ( const iterator_base it) const [inline]

Definition at line 262 of file bm.h.

References bm::bvector< Alloc >::iterator_base::position_.

template<class Alloc>
bool bm::bvector< Alloc >::iterator_base::valid ( ) const [inline]

Definition at line 272 of file bm.h.

References bm::id_max, and bm::bvector< Alloc >::iterator_base::position_.

template<class Alloc>
bool bm::bvector< Alloc >::iterator_base::valid ( ) const [inline]

Checks if iterator is still valid.

Analog of != 0 comparison for pointers.

Returns:
true if iterator is valid.

Definition at line 272 of file bm.h.

References bm::id_max, and bm::bvector< Alloc >::iterator_base::position_.

Referenced by bm::bvector< Alloc >::counted_enumerator::counted_enumerator(), bm::bvector< Alloc >::counted_enumerator::operator++(), and bm::bvector< Alloc >::counted_enumerator::operator=().


Friends And Related Function Documentation

template<class Alloc>
bvector [friend]

Definition at line 233 of file bm.h.


Field Documentation

template<class Alloc>
unsigned bm::bvector< Alloc >::iterator_base::block_idx_ [protected]

Block index.

Definition at line 310 of file bm.h.

Referenced by bm::bvector< Alloc >::enumerator::go_first(), and bm::bvector< Alloc >::enumerator::go_up().


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