Iterator class to allow easy iteration over entities.  
 More...
#include <Entity.h>
 | 
|   | EntityIterator (Context *context, U64 index, bool isEnd, bool includePendingDestroy) | 
|   | Initializes the iterator with necessary information.  
  | 
|   | 
| bool  | IsEnd () const noexcept | 
|   | Checks if the iterator is at the end.  
  | 
|   | 
| U64  | GetIndex () const noexcept | 
|   | Gets the index of the current entity in the iteration.  
  | 
|   | 
| bool  | IncludePendingDestroy () const noexcept | 
|   | Whether the iterator should include pending destruction entities.  
  | 
|   | 
| Context *  | GetContext () const noexcept | 
|   | Gets the ECS context associated with the iterator.  
  | 
|   | 
| Entity *  | GetEntity () const noexcept | 
|   | Gets the current entity held by the iterator.  
  | 
|   | 
| Entity *  | operator* () const noexcept | 
|   | Gets the current entity held by the iterator.  
  | 
|   | 
| bool  | operator== (const EntityIterator &other) const | 
|   | Checks if two iterators are equal.  
  | 
|   | 
| bool  | operator!= (const EntityIterator &other) const | 
|   | Checks if two iterators are not equal.  
  | 
|   | 
| EntityIterator &  | operator++ () | 
|   | Moves the iterator to the next entity and skips over entities based on input criteria.  
  | 
|   | 
Iterator class to allow easy iteration over entities. 
 
◆ EntityIterator()
  
  
      
        
          | Nui::ECS::Internal::EntityIterator::EntityIterator  | 
          ( | 
          Context * |           context,  | 
         
        
           | 
           | 
          U64 |           index,  | 
         
        
           | 
           | 
          bool |           isEnd,  | 
         
        
           | 
           | 
          bool |           includePendingDestroy ) | 
         
       
   | 
  
inline   | 
  
 
Initializes the iterator with necessary information. 
- Parameters
 - 
  
    | context | Pointer to the ECS Context  | 
    | index | Starting index for iteration  | 
    | isEnd | Flag indicating if the iterator is at the end  | 
    | includePendingDestroy | Flag indicating if the iterator should include pending destruction entities  | 
  
   
 
 
◆ GetContext()
  
  
      
        
          | Context * Nui::ECS::Internal::EntityIterator::GetContext  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Gets the ECS context associated with the iterator. 
- Returns
 - Pointer to the ECS context 
 
 
 
◆ GetEntity()
  
  
      
        
          | Entity * Nui::ECS::Internal::EntityIterator::GetEntity  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Gets the current entity held by the iterator. 
- Returns
 - Pointer to the current entity 
 
 
 
◆ GetIndex()
  
  
      
        
          | U64 Nui::ECS::Internal::EntityIterator::GetIndex  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Gets the index of the current entity in the iteration. 
- Returns
 - Index of the current entity 
 
 
 
◆ IncludePendingDestroy()
  
  
      
        
          | bool Nui::ECS::Internal::EntityIterator::IncludePendingDestroy  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Whether the iterator should include pending destruction entities. 
- Returns
 - True if the iterator should include pending destruction entities 
 
 
 
◆ IsEnd()
  
  
      
        
          | bool Nui::ECS::Internal::EntityIterator::IsEnd  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Checks if the iterator is at the end. 
- Returns
 - True if the iterator is at the end 
 
 
 
◆ operator!=()
  
  
      
        
          | bool Nui::ECS::Internal::EntityIterator::operator!=  | 
          ( | 
          const EntityIterator & |           other | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Checks if two iterators are not equal. 
- Parameters
 - 
  
  
 
- Returns
 - True if the iterators are not equal 
 
 
 
◆ operator*()
  
  
      
        
          | Entity * Nui::ECS::Internal::EntityIterator::operator*  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Gets the current entity held by the iterator. 
- Returns
 - Pointer to the current entity 
 
 
 
◆ operator++()
Moves the iterator to the next entity and skips over entities based on input criteria. 
- Returns
 - Reference to the iterator 
 
 
 
◆ operator==()
  
  
      
        
          | bool Nui::ECS::Internal::EntityIterator::operator==  | 
          ( | 
          const EntityIterator & |           other | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Checks if two iterators are equal. 
- Parameters
 - 
  
  
 
- Returns
 - True if the iterators are equal 
 
 
 
The documentation for this class was generated from the following files: