LLVM 20.0.0git
Public Types | Public Member Functions | List of all members
llvm::const_set_bits_iterator_impl< BitVectorT > Class Template Reference

ForwardIterator for the bits that are set. More...

#include "llvm/ADT/BitVector.h"

Public Types

using iterator_category = std::forward_iterator_tag
 
using difference_type = std::ptrdiff_t
 
using value_type = int
 
using pointer = value_type *
 
using reference = value_type &
 

Public Member Functions

 const_set_bits_iterator_impl (const BitVectorT &Parent, int Current)
 
 const_set_bits_iterator_impl (const BitVectorT &Parent)
 
 const_set_bits_iterator_impl (const const_set_bits_iterator_impl &)=default
 
const_set_bits_iterator_impl operator++ (int)
 
const_set_bits_iterator_imploperator++ ()
 
unsigned operator* () const
 
bool operator== (const const_set_bits_iterator_impl &Other) const
 
bool operator!= (const const_set_bits_iterator_impl &Other) const
 

Detailed Description

template<typename BitVectorT>
class llvm::const_set_bits_iterator_impl< BitVectorT >

ForwardIterator for the bits that are set.

Iterators get invalidated when resize / reserve is called.

Definition at line 34 of file BitVector.h.

Member Typedef Documentation

◆ difference_type

template<typename BitVectorT >
using llvm::const_set_bits_iterator_impl< BitVectorT >::difference_type = std::ptrdiff_t

Definition at line 45 of file BitVector.h.

◆ iterator_category

template<typename BitVectorT >
using llvm::const_set_bits_iterator_impl< BitVectorT >::iterator_category = std::forward_iterator_tag

Definition at line 44 of file BitVector.h.

◆ pointer

template<typename BitVectorT >
using llvm::const_set_bits_iterator_impl< BitVectorT >::pointer = value_type*

Definition at line 47 of file BitVector.h.

◆ reference

template<typename BitVectorT >
using llvm::const_set_bits_iterator_impl< BitVectorT >::reference = value_type&

Definition at line 48 of file BitVector.h.

◆ value_type

template<typename BitVectorT >
using llvm::const_set_bits_iterator_impl< BitVectorT >::value_type = int

Definition at line 46 of file BitVector.h.

Constructor & Destructor Documentation

◆ const_set_bits_iterator_impl() [1/3]

template<typename BitVectorT >
llvm::const_set_bits_iterator_impl< BitVectorT >::const_set_bits_iterator_impl ( const BitVectorT &  Parent,
int  Current 
)
inline

Definition at line 50 of file BitVector.h.

◆ const_set_bits_iterator_impl() [2/3]

template<typename BitVectorT >
llvm::const_set_bits_iterator_impl< BitVectorT >::const_set_bits_iterator_impl ( const BitVectorT &  Parent)
inlineexplicit

Definition at line 52 of file BitVector.h.

◆ const_set_bits_iterator_impl() [3/3]

template<typename BitVectorT >
llvm::const_set_bits_iterator_impl< BitVectorT >::const_set_bits_iterator_impl ( const const_set_bits_iterator_impl< BitVectorT > &  )
default

Member Function Documentation

◆ operator!=()

template<typename BitVectorT >
bool llvm::const_set_bits_iterator_impl< BitVectorT >::operator!= ( const const_set_bits_iterator_impl< BitVectorT > &  Other) const
inline

Definition at line 75 of file BitVector.h.

References assert(), and llvm::Other.

◆ operator*()

template<typename BitVectorT >
unsigned llvm::const_set_bits_iterator_impl< BitVectorT >::operator* ( ) const
inline

Definition at line 67 of file BitVector.h.

◆ operator++() [1/2]

template<typename BitVectorT >
const_set_bits_iterator_impl & llvm::const_set_bits_iterator_impl< BitVectorT >::operator++ ( )
inline

Definition at line 62 of file BitVector.h.

◆ operator++() [2/2]

template<typename BitVectorT >
const_set_bits_iterator_impl llvm::const_set_bits_iterator_impl< BitVectorT >::operator++ ( int  )
inline

Definition at line 56 of file BitVector.h.

◆ operator==()

template<typename BitVectorT >
bool llvm::const_set_bits_iterator_impl< BitVectorT >::operator== ( const const_set_bits_iterator_impl< BitVectorT > &  Other) const
inline

Definition at line 69 of file BitVector.h.

References assert(), and llvm::Other.


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