HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_BitArray::iterator Class Reference

Iterate over bits that are turned on. More...

#include <UT_BitArray.h>

Public Types

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

Public Member Functions

 iterator ()
 
 ~iterator ()
 
exint getBit () const
 Get the current iteration state. More...
 
exint operator* () const
 
void rewind ()
 
void advance ()
 
bool operator== (const iterator &i) const
 
bool operator!= (const iterator &i) const
 
bool atEnd () const
 
iteratoroperator++ ()
 

Friends

class UT_BitArray
 

Detailed Description

Iterate over bits that are turned on.

Definition at line 133 of file UT_BitArray.h.

Member Typedef Documentation

Definition at line 138 of file UT_BitArray.h.

using UT_BitArray::iterator::iterator_category = std::forward_iterator_tag

Definition at line 136 of file UT_BitArray.h.

Definition at line 139 of file UT_BitArray.h.

Definition at line 140 of file UT_BitArray.h.

Definition at line 137 of file UT_BitArray.h.

Constructor & Destructor Documentation

UT_BitArray::iterator::iterator ( void  )
inline

Definition at line 142 of file UT_BitArray.h.

UT_BitArray::iterator::~iterator ( )
inline

Definition at line 147 of file UT_BitArray.h.

Member Function Documentation

void UT_BitArray::iterator::advance ( )
inline

Definition at line 182 of file UT_BitArray.h.

bool UT_BitArray::iterator::atEnd ( ) const
inline

Standard iterator interface

Definition at line 166 of file UT_BitArray.h.

exint UT_BitArray::iterator::getBit ( ) const
inline

Get the current iteration state.

Definition at line 151 of file UT_BitArray.h.

bool UT_BitArray::iterator::operator!= ( const iterator i) const
inline

Standard iterator interface

Definition at line 162 of file UT_BitArray.h.

exint UT_BitArray::iterator::operator* ( ) const
inline

Definition at line 152 of file UT_BitArray.h.

iterator& UT_BitArray::iterator::operator++ ( )
inline

Standard iterator interface

Definition at line 170 of file UT_BitArray.h.

bool UT_BitArray::iterator::operator== ( const iterator i) const
inline

Standard iterator interface

Definition at line 156 of file UT_BitArray.h.

void UT_BitArray::iterator::rewind ( )
inline

Definition at line 173 of file UT_BitArray.h.

Friends And Related Function Documentation

friend class UT_BitArray
friend

Definition at line 203 of file UT_BitArray.h.


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