CRoaring  4.2.1
Roaring bitmaps in C (and C++)
roaring::RoaringSetBitBiDirectionalIterator Class Referencefinal

#include <roaring.hh>

Public Types

typedef std::bidirectional_iterator_tag iterator_category
 
typedef uint32_t * pointer
 
typedef uint32_t & reference_type
 
typedef uint32_t value_type
 
typedef int32_t difference_type
 
typedef RoaringSetBitBiDirectionalIterator type_of_iterator
 

Public Member Functions

 RoaringSetBitBiDirectionalIterator (const Roaring &parent, bool exhausted=false)
 
value_type operator* () const
 
bool operator< (const type_of_iterator &o) const
 
bool operator<= (const type_of_iterator &o) const
 
bool operator> (const type_of_iterator &o) const
 
bool operator>= (const type_of_iterator &o) const
 
type_of_iteratoroperator++ ()
 
type_of_iterator operator++ (int)
 
bool move_equalorlarger (value_type val)
 
CROARING_DEPRECATED void equalorlarger (uint32_t val)
 
type_of_iteratoroperator-- ()
 
type_of_iterator operator-- (int)
 
bool operator== (const RoaringSetBitBiDirectionalIterator &o) const
 
bool operator!= (const RoaringSetBitBiDirectionalIterator &o) const
 

Public Attributes

api::roaring_uint32_iterator_t i {}
 

Detailed Description

Used to go through the set bits. Not optimally fast, but convenient.

Definition at line 922 of file roaring.hh.

Member Typedef Documentation

◆ difference_type

◆ iterator_category

typedef std::bidirectional_iterator_tag roaring::RoaringSetBitBiDirectionalIterator::iterator_category

Definition at line 924 of file roaring.hh.

◆ pointer

Definition at line 925 of file roaring.hh.

◆ reference_type

Definition at line 926 of file roaring.hh.

◆ type_of_iterator

◆ value_type

Definition at line 927 of file roaring.hh.

Constructor & Destructor Documentation

◆ RoaringSetBitBiDirectionalIterator()

roaring::RoaringSetBitBiDirectionalIterator::RoaringSetBitBiDirectionalIterator ( const Roaring parent,
bool  exhausted = false 
)
inlineexplicit

Definition at line 931 of file roaring.hh.

References roaring::Roaring::roaring, and roaring_iterator_init().

Member Function Documentation

◆ equalorlarger()

CROARING_DEPRECATED void roaring::RoaringSetBitBiDirectionalIterator::equalorlarger ( uint32_t  val)
inline

DEPRECATED, use move_equalorlarger.

Definition at line 992 of file roaring.hh.

References roaring_uint32_iterator_move_equalorlarger().

◆ move_equalorlarger()

bool roaring::RoaringSetBitBiDirectionalIterator::move_equalorlarger ( value_type  val)
inline

Move the iterator to the first value >= val. Return true if there is such a value.

Definition at line 987 of file roaring.hh.

References roaring_uint32_iterator_move_equalorlarger().

◆ operator!=()

bool roaring::RoaringSetBitBiDirectionalIterator::operator!= ( const RoaringSetBitBiDirectionalIterator o) const
inline

Definition at line 1011 of file roaring.hh.

References i.

◆ operator*()

value_type roaring::RoaringSetBitBiDirectionalIterator::operator* ( ) const
inline

Provides the location of the set bit.

Definition at line 946 of file roaring.hh.

◆ operator++() [1/2]

type_of_iterator& roaring::RoaringSetBitBiDirectionalIterator::operator++ ( )
inline

Definition at line 972 of file roaring.hh.

References roaring_uint32_iterator_advance().

◆ operator++() [2/2]

type_of_iterator roaring::RoaringSetBitBiDirectionalIterator::operator++ ( int  )
inline

Definition at line 977 of file roaring.hh.

References roaring_uint32_iterator_advance().

◆ operator--() [1/2]

type_of_iterator& roaring::RoaringSetBitBiDirectionalIterator::operator-- ( )
inline

Definition at line 996 of file roaring.hh.

References roaring_uint32_iterator_previous().

◆ operator--() [2/2]

type_of_iterator roaring::RoaringSetBitBiDirectionalIterator::operator-- ( int  )
inline

Definition at line 1001 of file roaring.hh.

References roaring_uint32_iterator_previous().

◆ operator<()

bool roaring::RoaringSetBitBiDirectionalIterator::operator< ( const type_of_iterator o) const
inline

Definition at line 948 of file roaring.hh.

References i.

◆ operator<=()

bool roaring::RoaringSetBitBiDirectionalIterator::operator<= ( const type_of_iterator o) const
inline

Definition at line 954 of file roaring.hh.

References i.

◆ operator==()

bool roaring::RoaringSetBitBiDirectionalIterator::operator== ( const RoaringSetBitBiDirectionalIterator o) const
inline

Definition at line 1007 of file roaring.hh.

References i.

◆ operator>()

bool roaring::RoaringSetBitBiDirectionalIterator::operator> ( const type_of_iterator o) const
inline

Definition at line 960 of file roaring.hh.

References i.

◆ operator>=()

bool roaring::RoaringSetBitBiDirectionalIterator::operator>= ( const type_of_iterator o) const
inline

Definition at line 966 of file roaring.hh.

References i.

Member Data Documentation

◆ i

api::roaring_uint32_iterator_t roaring::RoaringSetBitBiDirectionalIterator::i {}

Definition at line 1016 of file roaring.hh.

Referenced by operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().


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