2D Engine v0.1.0
Loading...
Searching...
No Matches
SceneView< ComponentTypes >::Iterator Struct Reference

Iterator for the SceneView. More...

#include <SceneView.hpp>

Collaboration diagram for SceneView< ComponentTypes >::Iterator:
Collaboration graph

Public Member Functions

 Iterator (Scene *pScene, EntityIndex index, ComponentMask mask, bool all)
 
EntityID operator* () const
 
bool operator== (const Iterator &other) const
 
bool operator!= (const Iterator &other) const
 
bool ValidIndex ()
 
Iteratoroperator++ ()
 

Public Attributes

EntityIndex index
 
ScenepScene
 
ComponentMask mask
 
bool all {false}
 

Detailed Description

template<typename... ComponentTypes>
struct SceneView< ComponentTypes >::Iterator

Iterator for the SceneView.

Constructor & Destructor Documentation

◆ Iterator()

template<typename... ComponentTypes>
SceneView< ComponentTypes >::Iterator::Iterator ( Scene * pScene,
EntityIndex index,
ComponentMask mask,
bool all )
inline

Member Function Documentation

◆ operator!=()

template<typename... ComponentTypes>
bool SceneView< ComponentTypes >::Iterator::operator!= ( const Iterator & other) const
inline

◆ operator*()

template<typename... ComponentTypes>
EntityID SceneView< ComponentTypes >::Iterator::operator* ( ) const
inline

◆ operator++()

template<typename... ComponentTypes>
Iterator & SceneView< ComponentTypes >::Iterator::operator++ ( )
inline

◆ operator==()

template<typename... ComponentTypes>
bool SceneView< ComponentTypes >::Iterator::operator== ( const Iterator & other) const
inline

◆ ValidIndex()

template<typename... ComponentTypes>
bool SceneView< ComponentTypes >::Iterator::ValidIndex ( )
inline

Member Data Documentation

◆ all

template<typename... ComponentTypes>
bool SceneView< ComponentTypes >::Iterator::all {false}

◆ index

template<typename... ComponentTypes>
EntityIndex SceneView< ComponentTypes >::Iterator::index

◆ mask

template<typename... ComponentTypes>
ComponentMask SceneView< ComponentTypes >::Iterator::mask

◆ pScene

template<typename... ComponentTypes>
Scene* SceneView< ComponentTypes >::Iterator::pScene

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