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

#include <BitArray.h>

+ Inheritance diagram for TConstDualSetBitIterator< Allocator, OtherAllocator >:
+ Collaboration diagram for TConstDualSetBitIterator< Allocator, OtherAllocator >:

Public Member Functions

FORCEINLINE TConstDualSetBitIterator (const TBitArray< Allocator > &InArrayA, const TBitArray< OtherAllocator > &InArrayB, int32 StartIndex=0)
 
FORCEINLINE TConstDualSetBitIteratoroperator++ ()
 
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 > & ArrayA
 
const TBitArray< OtherAllocator > & ArrayB
 
uint32 UnvisitedBitMask
 
int32 CurrentBitIndex
 
int32 BaseBitIndex
 

Additional Inherited Members

- Public Attributes inherited from FRelativeBitReference
int32 DWORDIndex
 
uint32 Mask
 

Detailed Description

template<typename Allocator, typename OtherAllocator>
class TConstDualSetBitIterator< Allocator, OtherAllocator >

An iterator which only iterates over the bits which are set in both of two bit-arrays.

Definition at line 845 of file BitArray.h.

Constructor & Destructor Documentation

◆ TConstDualSetBitIterator()

template<typename Allocator , typename OtherAllocator >
FORCEINLINE TConstDualSetBitIterator< Allocator, OtherAllocator >::TConstDualSetBitIterator ( const TBitArray< Allocator > & InArrayA,
const TBitArray< OtherAllocator > & InArrayB,
int32 StartIndex = 0 )
inline

Constructor.

Definition at line 850 of file BitArray.h.

Member Function Documentation

◆ FindFirstSetBit()

template<typename Allocator , typename OtherAllocator >
void TConstDualSetBitIterator< Allocator, OtherAllocator >::FindFirstSetBit ( )
inlineprivate

Find the first bit that is set in both arrays, starting with the current bit, inclusive.

Definition at line 909 of file BitArray.h.

◆ GetIndex()

template<typename Allocator , typename OtherAllocator >
FORCEINLINE int32 TConstDualSetBitIterator< Allocator, OtherAllocator >::GetIndex ( ) const
inline

Index accessor.

Definition at line 894 of file BitArray.h.

◆ operator bool()

template<typename Allocator , typename OtherAllocator >
FORCEINLINE TConstDualSetBitIterator< Allocator, OtherAllocator >::operator bool ( ) const
inlineexplicit

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

Definition at line 883 of file BitArray.h.

◆ operator!()

template<typename Allocator , typename OtherAllocator >
FORCEINLINE bool TConstDualSetBitIterator< Allocator, OtherAllocator >::operator! ( ) const
inline

inverse of the "bool" operator

Definition at line 888 of file BitArray.h.

◆ operator++()

template<typename Allocator , typename OtherAllocator >
FORCEINLINE TConstDualSetBitIterator & TConstDualSetBitIterator< Allocator, OtherAllocator >::operator++ ( )
inline

Advancement operator.

Definition at line 868 of file BitArray.h.

Member Data Documentation

◆ ArrayA

template<typename Allocator , typename OtherAllocator >
const TBitArray<Allocator>& TConstDualSetBitIterator< Allocator, OtherAllocator >::ArrayA
private

Definition at line 901 of file BitArray.h.

◆ ArrayB

template<typename Allocator , typename OtherAllocator >
const TBitArray<OtherAllocator>& TConstDualSetBitIterator< Allocator, OtherAllocator >::ArrayB
private

Definition at line 902 of file BitArray.h.

◆ BaseBitIndex

template<typename Allocator , typename OtherAllocator >
int32 TConstDualSetBitIterator< Allocator, OtherAllocator >::BaseBitIndex
private

Definition at line 906 of file BitArray.h.

◆ CurrentBitIndex

template<typename Allocator , typename OtherAllocator >
int32 TConstDualSetBitIterator< Allocator, OtherAllocator >::CurrentBitIndex
private

Definition at line 905 of file BitArray.h.

◆ UnvisitedBitMask

template<typename Allocator , typename OtherAllocator >
uint32 TConstDualSetBitIterator< Allocator, OtherAllocator >::UnvisitedBitMask
private

Definition at line 904 of file BitArray.h.


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