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

Constant input iterator designed to enumerate "ON" bits. More...

#include <vs10/bm/bm.h>

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

Public Types

typedef std::input_iterator_tag iterator_category
typedef unsigned value_type
typedef unsigned difference_type
typedef unsigned * pointer
typedef unsigned & reference
typedef std::input_iterator_tag iterator_category
typedef unsigned value_type
typedef unsigned difference_type
typedef unsigned * pointer
typedef unsigned & reference

Public Member Functions

 enumerator ()
 enumerator (const bvector< Alloc > *bvect, int position)
bm::id_t operator* () const
bm::id_t value () const
enumeratoroperator++ ()
enumerator operator++ (int)
void go_first ()
enumeratorgo_up ()
 enumerator ()
 enumerator (const bvector< Alloc > *bvect, int position)
bm::id_t operator* () const
bm::id_t value () const
enumeratoroperator++ ()
enumerator operator++ (int)
void go_first ()
enumeratorgo_up ()

Private Member Functions

bool search_in_bitblock ()
bool search_in_gapblock ()
bool search_in_bitblock ()
bool search_in_gapblock ()

Detailed Description

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

Constant input iterator designed to enumerate "ON" bits.

Definition at line 385 of file bm.h.


Member Typedef Documentation

template<class Alloc>
typedef unsigned bm::bvector< Alloc >::enumerator::difference_type

Definition at line 392 of file bm.h.

template<class Alloc>
typedef unsigned bm::bvector< Alloc >::enumerator::difference_type

Definition at line 392 of file bm.h.

template<class Alloc>
typedef std::input_iterator_tag bm::bvector< Alloc >::enumerator::iterator_category
template<class Alloc>
typedef std::input_iterator_tag bm::bvector< Alloc >::enumerator::iterator_category
template<class Alloc>
typedef unsigned* bm::bvector< Alloc >::enumerator::pointer

Definition at line 393 of file bm.h.

template<class Alloc>
typedef unsigned* bm::bvector< Alloc >::enumerator::pointer

Definition at line 393 of file bm.h.

template<class Alloc>
typedef unsigned& bm::bvector< Alloc >::enumerator::reference

Definition at line 394 of file bm.h.

template<class Alloc>
typedef unsigned& bm::bvector< Alloc >::enumerator::reference

Definition at line 394 of file bm.h.

template<class Alloc>
typedef unsigned bm::bvector< Alloc >::enumerator::value_type

Definition at line 391 of file bm.h.

template<class Alloc>
typedef unsigned bm::bvector< Alloc >::enumerator::value_type

Definition at line 391 of file bm.h.


Constructor & Destructor Documentation

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

Definition at line 397 of file bm.h.

template<class Alloc>
bm::bvector< Alloc >::enumerator::enumerator ( const bvector< Alloc > *  bvect,
int  position 
) [inline]
template<class Alloc>
bm::bvector< Alloc >::enumerator::enumerator ( ) [inline]

Definition at line 397 of file bm.h.

template<class Alloc>
bm::bvector< Alloc >::enumerator::enumerator ( const bvector< Alloc > *  bvect,
int  position 
) [inline]

Member Function Documentation

template<class Alloc>
bm::id_t bm::bvector< Alloc >::enumerator::operator* ( ) const [inline]

Definition at line 412 of file bm.h.

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

template<class Alloc>
bm::id_t bm::bvector< Alloc >::enumerator::operator* ( ) const [inline]

Definition at line 412 of file bm.h.

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

template<class Alloc>
enumerator& bm::bvector< Alloc >::enumerator::operator++ ( ) [inline]
template<class Alloc>
enumerator& bm::bvector< Alloc >::enumerator::operator++ ( ) [inline]
template<class Alloc>
enumerator bm::bvector< Alloc >::enumerator::operator++ ( int  ) [inline]
template<class Alloc>
enumerator bm::bvector< Alloc >::enumerator::operator++ ( int  ) [inline]
template<class Alloc>
bm::id_t bm::bvector< Alloc >::enumerator::value ( ) const [inline]

Definition at line 417 of file bm.h.

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

template<class Alloc>
bm::id_t bm::bvector< Alloc >::enumerator::value ( ) const [inline]

Definition at line 417 of file bm.h.

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


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