tbx  0.7.5
Public Member Functions | Friends | List of all members
tbx::SpriteArea::iterator Class Reference

Iterator class for iterating through UserSprites in a sprite area. More...

#include <sprite.h>

Public Member Functions

iterator operator++ ()
 Move to next sprite in the area. More...
 
iterator operator++ (int)
 Move to next sprite in the area. More...
 
UserSprite operator* ()
 Get the sprite the iterator is pointing at.
 
bool operator== (const iterator &other) const
 See if iterators are equal. More...
 
bool operator!= (const iterator &other) const
 See if iterators are not equal. More...
 

Friends

class SpriteArea
 

Detailed Description

Iterator class for iterating through UserSprites in a sprite area.

Member Function Documentation

◆ operator!=()

bool tbx::SpriteArea::iterator::operator!= ( const iterator other) const
inline

See if iterators are not equal.

Parameters
otheriterator to compare to
Returns
true if the iterators are not equal

◆ operator++() [1/2]

iterator tbx::SpriteArea::iterator::operator++ ( )
inline

Move to next sprite in the area.

Returns
*this

◆ operator++() [2/2]

iterator tbx::SpriteArea::iterator::operator++ ( int  )
inline

Move to next sprite in the area.

Returns
copy of iterator before it was moved

◆ operator==()

bool tbx::SpriteArea::iterator::operator== ( const iterator other) const
inline

See if iterators are equal.

Parameters
otheriterator to compare to
Returns
true if the iterators are equal

The documentation for this class was generated from the following files: