Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::Utils::BitsIterator< T > Class Template Reference

#include <utils.h>

Public Member Functions

 BitsIterator (uint32_t bits)
 
DART_FORCE_INLINE T operator* () const
 
DART_FORCE_INLINE bool operator== (const BitsIterator &other) const
 
DART_FORCE_INLINE bool operator!= (const BitsIterator &other) const
 
DART_FORCE_INLINE BitsIteratoroperator++ ()
 

Detailed Description

template<typename T>
class dart::Utils::BitsIterator< T >

Definition at line 555 of file utils.h.

Constructor & Destructor Documentation

◆ BitsIterator()

template<typename T >
dart::Utils::BitsIterator< T >::BitsIterator ( uint32_t  bits)
inlineexplicit

Definition at line 557 of file utils.h.

557: bits_(bits), bit_(bits & -bits) {}

Member Function Documentation

◆ operator!=()

template<typename T >
DART_FORCE_INLINE bool dart::Utils::BitsIterator< T >::operator!= ( const BitsIterator< T > &  other) const
inline

Definition at line 567 of file utils.h.

567 {
568 return !(*this == other);
569 }

◆ operator*()

template<typename T >
DART_FORCE_INLINE T dart::Utils::BitsIterator< T >::operator* ( ) const
inline

Definition at line 559 of file utils.h.

559 {
560 return static_cast<T>(BitPosition(bit_));
561 }
#define T

◆ operator++()

template<typename T >
DART_FORCE_INLINE BitsIterator & dart::Utils::BitsIterator< T >::operator++ ( )
inline

Definition at line 571 of file utils.h.

571 {
572 bits_ ^= bit_;
573 bit_ = bits_ & -bits_;
574 return *this;
575 }

◆ operator==()

template<typename T >
DART_FORCE_INLINE bool dart::Utils::BitsIterator< T >::operator== ( const BitsIterator< T > &  other) const
inline

Definition at line 563 of file utils.h.

563 {
564 return bits_ == other.bits_ && bit_ == other.bit_;
565 }

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