Flecs v4.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
flecs::array_iterator< T > Struct Template Reference

Iterator for flecs::array. More...

#include <array.hpp>

Public Member Functions

 array_iterator (T *value, int index)
 Construct an iterator from a pointer and index.
 
bool operator!= (array_iterator const &other) const
 Inequality comparison operator.
 
T & operator* () const
 Dereference operator.
 
array_iteratoroperator++ ()
 Pre-increment operator.
 

Detailed Description

template<typename T>
struct flecs::array_iterator< T >

Iterator for flecs::array.

Definition at line 13 of file array.hpp.

Constructor & Destructor Documentation

◆ array_iterator()

template<typename T >
flecs::array_iterator< T >::array_iterator ( T * value,
int index )
inlineexplicit

Construct an iterator from a pointer and index.

Definition at line 16 of file array.hpp.

Member Function Documentation

◆ operator!=()

template<typename T >
bool flecs::array_iterator< T >::operator!= ( array_iterator< T > const & other) const
inline

Inequality comparison operator.

Definition at line 22 of file array.hpp.

◆ operator*()

template<typename T >
T & flecs::array_iterator< T >::operator* ( ) const
inline

Dereference operator.

Definition at line 28 of file array.hpp.

◆ operator++()

template<typename T >
array_iterator & flecs::array_iterator< T >::operator++ ( )
inline

Pre-increment operator.

Definition at line 34 of file array.hpp.


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