Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
TConstSetBitIterator< Allocator > Class Template Reference

#include <BitArray.h>

+ Inheritance diagram for TConstSetBitIterator< Allocator >:
+ Collaboration diagram for TConstSetBitIterator< Allocator >:

Public Member Functions

 TConstSetBitIterator (const TBitArray< Allocator > &InArray, int32 StartIndex=0)
 
FORCEINLINE TConstSetBitIteratoroperator++ ()
 
FORCEINLINE operator bool () const
 
FORCEINLINE bool operator! () const
 
FORCEINLINE int32 GetIndex () const
 
- Public Member Functions inherited from FRelativeBitReference
FORCEINLINE FRelativeBitReference (int32 BitIndex)
 

Private Member Functions

void FindFirstSetBit ()
 

Private Attributes

const TBitArray< Allocator > & Array
 
uint32 UnvisitedBitMask
 
int32 CurrentBitIndex
 
int32 BaseBitIndex
 

Friends

FORCEINLINE friend bool operator== (const TConstSetBitIterator &Lhs, const TConstSetBitIterator &Rhs)
 
FORCEINLINE friend bool operator!= (const TConstSetBitIterator &Lhs, const TConstSetBitIterator &Rhs)
 

Additional Inherited Members

- Public Attributes inherited from FRelativeBitReference
int32 DWORDIndex
 
uint32 Mask
 

Detailed Description

template<typename Allocator>
class TConstSetBitIterator< Allocator >

An iterator which only iterates over set bits.

Definition at line 732 of file BitArray.h.

Constructor & Destructor Documentation

◆ TConstSetBitIterator()

template<typename Allocator >
TConstSetBitIterator< Allocator >::TConstSetBitIterator ( const TBitArray< Allocator > & InArray,
int32 StartIndex = 0 )
inline

Constructor.

Definition at line 737 of file BitArray.h.

Member Function Documentation

◆ FindFirstSetBit()

template<typename Allocator >
void TConstSetBitIterator< Allocator >::FindFirstSetBit ( )
inlineprivate

Find the first set bit starting with the current bit, inclusive.

Definition at line 800 of file BitArray.h.

◆ GetIndex()

template<typename Allocator >
FORCEINLINE int32 TConstSetBitIterator< Allocator >::GetIndex ( ) const
inline

Index accessor.

Definition at line 786 of file BitArray.h.

◆ operator bool()

template<typename Allocator >
FORCEINLINE TConstSetBitIterator< Allocator >::operator bool ( ) const
inlineexplicit

conversion to "bool" returning true if the iterator is valid.

Definition at line 775 of file BitArray.h.

◆ operator!()

template<typename Allocator >
FORCEINLINE bool TConstSetBitIterator< Allocator >::operator! ( ) const
inline

inverse of the "bool" operator

Definition at line 780 of file BitArray.h.

◆ operator++()

template<typename Allocator >
FORCEINLINE TConstSetBitIterator & TConstSetBitIterator< Allocator >::operator++ ( )
inline

Forwards iteration operator.

Definition at line 752 of file BitArray.h.

Friends And Related Symbol Documentation

◆ operator!=

template<typename Allocator >
FORCEINLINE friend bool operator!= ( const TConstSetBitIterator< Allocator > & Lhs,
const TConstSetBitIterator< Allocator > & Rhs )
friend

Definition at line 769 of file BitArray.h.

◆ operator==

template<typename Allocator >
FORCEINLINE friend bool operator== ( const TConstSetBitIterator< Allocator > & Lhs,
const TConstSetBitIterator< Allocator > & Rhs )
friend

Definition at line 763 of file BitArray.h.

Member Data Documentation

◆ Array

template<typename Allocator >
const TBitArray<Allocator>& TConstSetBitIterator< Allocator >::Array
private

Definition at line 793 of file BitArray.h.

◆ BaseBitIndex

template<typename Allocator >
int32 TConstSetBitIterator< Allocator >::BaseBitIndex
private

Definition at line 797 of file BitArray.h.

◆ CurrentBitIndex

template<typename Allocator >
int32 TConstSetBitIterator< Allocator >::CurrentBitIndex
private

Definition at line 796 of file BitArray.h.

◆ UnvisitedBitMask

template<typename Allocator >
uint32 TConstSetBitIterator< Allocator >::UnvisitedBitMask
private

Definition at line 795 of file BitArray.h.


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