struct ecs::TContiguousContainerIterator

template<typename ContainerType>

Iterator that allows iteration over a container whose contents are contiguous in memory.

Public

Constructors

TContiguousContainerIterator<ContainerType>

TContiguousContainerIterator<ContainerType>() = default

TContiguousContainerIterator<ContainerType>

TContiguousContainerIterator<ContainerType>(const ContainerType &container, u64 index)

Methods

Index

u64 Index() const

Operators

operator++

TContiguousContainerIterator<ContainerType> &operator++()

operator--

TContiguousContainerIterator<ContainerType> &operator--()

operator+=

TContiguousContainerIterator<ContainerType> &operator+=(u64 value)

operator-=

TContiguousContainerIterator<ContainerType> &operator-=(u64 value)

operator+

TContiguousContainerIterator<ContainerType> operator+(u64 value) const

operator-

TContiguousContainerIterator<ContainerType> operator-(u64 value) const

operator[]

const_reference operator[](u64 value) const

operator->

const_pointer operator->() const

operator*

const_reference operator*() const

Private

Fields

mContainer

const ContainerType * mContainer

mIndex

u64 mIndex