Open 3D Engine Atom Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::StableDynamicArray< T, ElementsPerPage, Allocator >::iterator Class Reference

Forward iterator for StableDynamicArray. More...

#include <StableDynamicArray.h>

Inherited by AZ::StableDynamicArray< T, ElementsPerPage, Allocator >::const_iterator.

Public Types

using iterator_category = AZStd::forward_iterator_tag
 
using value_type = T
 
using reference = T &
 
using pointer = T *
 

Public Member Functions

 iterator (Page *firstPage)
 
reference operator* () const
 
pointer operator-> () const
 
bool operator== (const this_type &rhs) const
 
bool operator!= (const this_type &rhs) const
 
this_typeoperator++ ()
 
this_type operator++ (int)
 

Protected Member Functions

bool SkipEmptyPages ()
 
void AdvanceIterator ()
 

Protected Attributes

Pagem_page = nullptr
 Pointer to the current page being iterrated through.
 
size_t m_bitGroupIndex = 0
 The index of the current bit group in the m_page.
 
uint64_t m_remainingBitsInBitGroup = 0
 This starts out equivalent to the bits from the current bit group, but trailing 1s are changed to 0s as the iterator increments.
 
T * m_item = nullptr
 The pointer to the current item.
 

Detailed Description

template<typename T, size_t ElementsPerPage = 512, class Allocator = AZStd::allocator>
class AZ::StableDynamicArray< T, ElementsPerPage, Allocator >::iterator

Forward iterator for StableDynamicArray.


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