Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TCheckedPointerIterator< ElementType, SizeType > Struct Template Reference

#include <Array.h>

Public Member Functions

 TCheckedPointerIterator (const SizeType &InNum, ElementType *InPtr)
 
FORCEINLINE ElementType & operator* () const
 
FORCEINLINE TCheckedPointerIteratoroperator++ ()
 
FORCEINLINE TCheckedPointerIteratoroperator-- ()
 
FORCEINLINE bool operator!= (const TCheckedPointerIterator &Rhs) const
 

Private Attributes

ElementType * Ptr
 
const SizeType & CurrentNum
 
SizeType InitialNum
 

Detailed Description

template<typename ElementType, typename SizeType>
struct TCheckedPointerIterator< ElementType, SizeType >

Pointer-like iterator type for ranged-for loops which checks that the container hasn't been resized during iteration.

Definition at line 194 of file Array.h.

Constructor & Destructor Documentation

◆ TCheckedPointerIterator()

template<typename ElementType , typename SizeType >
TCheckedPointerIterator< ElementType, SizeType >::TCheckedPointerIterator ( const SizeType & InNum,
ElementType * InPtr )
inlineexplicit

Definition at line 201 of file Array.h.

Member Function Documentation

◆ operator!=()

template<typename ElementType , typename SizeType >
FORCEINLINE bool TCheckedPointerIterator< ElementType, SizeType >::operator!= ( const TCheckedPointerIterator< ElementType, SizeType > & Rhs) const
inline

Definition at line 225 of file Array.h.

◆ operator*()

template<typename ElementType , typename SizeType >
FORCEINLINE ElementType & TCheckedPointerIterator< ElementType, SizeType >::operator* ( ) const
inline

Definition at line 208 of file Array.h.

◆ operator++()

template<typename ElementType , typename SizeType >
FORCEINLINE TCheckedPointerIterator & TCheckedPointerIterator< ElementType, SizeType >::operator++ ( )
inline

Definition at line 213 of file Array.h.

◆ operator--()

template<typename ElementType , typename SizeType >
FORCEINLINE TCheckedPointerIterator & TCheckedPointerIterator< ElementType, SizeType >::operator-- ( )
inline

Definition at line 219 of file Array.h.

Member Data Documentation

◆ CurrentNum

template<typename ElementType , typename SizeType >
const SizeType& TCheckedPointerIterator< ElementType, SizeType >::CurrentNum
private

Definition at line 238 of file Array.h.

◆ InitialNum

template<typename ElementType , typename SizeType >
SizeType TCheckedPointerIterator< ElementType, SizeType >::InitialNum
private

Definition at line 239 of file Array.h.

◆ Ptr

template<typename ElementType , typename SizeType >
ElementType* TCheckedPointerIterator< ElementType, SizeType >::Ptr
private

Definition at line 237 of file Array.h.


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