Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Burger::GridIndexPoints::iterator Struct Reference

STL compatible iterator. More...

Collaboration diagram for Burger::GridIndexPoints::iterator:
Collaboration graph
[legend]

Public Member Functions

 iterator (const GridIndexPoints *pParent)
 Default constructor.
 
uint_t at_end (void) const
 TRUE if the iterator is at the end of the data
 
void operator++ ()
 Step to the next data entry.
 
void advance (void)
 Step to the next data entry.
 
Entry_toperator* () const
 Access the entry with a reference.
 
Entry_toperator-> () const
 Access the entry with a reference.
 

Public Attributes

const GridIndexPointsm_pParent
 Pointer to parent class.
 
Entry_tm_pEntry
 Current object.
 
Vector4D_t m_QueryRect
 Rect of interest.
 
Rect_t m_QueryCellsRect
 Bounds rectangle in cells.
 
uint_t m_uCurrentCellX
 Last accessed cell X coordinate.
 
uint_t m_uCurrentCellY
 Last accessed cell Y coordinate.
 

Detailed Description

STL compatible iterator.


Iterator used to traverse the grid using STL or STL like code.

See also
GridIndexPoints

Constructor & Destructor Documentation

◆ iterator()

Burger::GridIndexPoints::iterator::iterator ( const GridIndexPoints * pParent)
inline

Default constructor.


Create an iterator for GridIndexPoints

Parameters
pParentPointer to the parent GridIndexPoints class

Member Function Documentation

◆ advance()

void BURGER_API Burger::GridIndexPoints::iterator::advance ( void )

Step to the next data entry.


Point at next element in the iteration. Will assert if it's called when it's already reached the end of the data.

See also
operator++()

◆ at_end()

uint_t Burger::GridIndexPoints::iterator::at_end ( void ) const
inline

TRUE if the iterator is at the end of the data


Returns
FALSE if the is more data remaining, TRUE if data is exhausted.

◆ operator*()

Burger::GridIndexPoints::Entry_t & Burger::GridIndexPoints::iterator::operator* ( ) const
inline

Access the entry with a reference.


Allows the used of the * operator to dereference the underlying data via a reference.

Returns
Reference to the data entry.
See also
operator->() const

◆ operator++()

void Burger::GridIndexPoints::iterator::operator++ ( )
inline

Step to the next data entry.


Iterate over the data until the next valid data chunk is found. If the iterator is already at the end of the data, no action is performed.

See also
advance(void)

◆ operator->()

Burger::GridIndexPoints::Entry_t * Burger::GridIndexPoints::iterator::operator-> ( ) const
inline

Access the entry with a reference.


Allows the used of the * operator to dereference the underlying data via a pointer.

Returns
Pointer to the data entry.
See also
operator*() const

Member Data Documentation

◆ m_pEntry

Entry_t* Burger::GridIndexPoints::iterator::m_pEntry

Current object.

◆ m_pParent

const GridIndexPoints* Burger::GridIndexPoints::iterator::m_pParent

Pointer to parent class.

◆ m_QueryCellsRect

Rect_t Burger::GridIndexPoints::iterator::m_QueryCellsRect

Bounds rectangle in cells.

◆ m_QueryRect

Vector4D_t Burger::GridIndexPoints::iterator::m_QueryRect

Rect of interest.

◆ m_uCurrentCellX

uint_t Burger::GridIndexPoints::iterator::m_uCurrentCellX

Last accessed cell X coordinate.

◆ m_uCurrentCellY

uint_t Burger::GridIndexPoints::iterator::m_uCurrentCellY

Last accessed cell Y coordinate.