IEntityIt

#include

Public Member Functions

virtual void AddRef ()=0
virtual void Release ()=0
Deletes this iterator and frees any memory it might have allocated.
virtual bool IsEnd ()=0
virtual IEntity * Next ()=0
virtual IEntity * This ()=0
virtual void MoveFirst ()=0
Positions the iterator at the beginning of the entity list.

Detailed Description

Entity iterator interface. This interface is used to traverse trough all the entities in an entity system. In a way, this iterator works a lot like a stl iterator.

Member Function Documentation

◆ IsEnd()

virtual bool IEntityIt::IsEnd ( )
pure virtual

Checks whether current iterator position is the end position.

Returns
true if iterator at end position.

◆ Next()

virtual IEntity* IEntityIt::Next ( )
pure virtual

Retrieves next entity.

Returns
Pointer to the entity that the iterator points to before it goes to the next.

◆ This()

virtual IEntity* IEntityIt::This ( )
pure virtual

Retrieves current entity.

Returns
Entity that the iterator points to.