Ark Server API (ASA) - 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 bool operator== (const TConstSetBitIterator &Rhs) const
 
FORCEINLINE bool operator!= (const TConstSetBitIterator &Rhs) const
 
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
 

Additional Inherited Members

- Public Attributes inherited from FRelativeBitReference
int32 WordIndex
 
uint32 Mask
 

Detailed Description

template<typename Allocator>
class TConstSetBitIterator< Allocator >

An iterator which only iterates over set bits.

Definition at line 1751 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 1756 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 1821 of file BitArray.h.

◆ GetIndex()

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

Index accessor.

Definition at line 1807 of file BitArray.h.

◆ operator bool()

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

Definition at line 1796 of file BitArray.h.

◆ operator!()

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

inverse of the "bool" operator

Definition at line 1801 of file BitArray.h.

◆ operator!=()

Definition at line 1789 of file BitArray.h.

◆ operator++()

Forwards iteration operator.

Definition at line 1771 of file BitArray.h.

◆ operator==()

Definition at line 1782 of file BitArray.h.

Member Data Documentation

◆ Array

Definition at line 1814 of file BitArray.h.

◆ BaseBitIndex

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

Definition at line 1818 of file BitArray.h.

◆ CurrentBitIndex

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

Definition at line 1817 of file BitArray.h.

◆ UnvisitedBitMask

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

Definition at line 1816 of file BitArray.h.


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