OpenTTD Source  14.0-RC3
Window::WindowIterator< TtoBack > Struct Template Reference

Iterator to iterate all valid Windows. More...

#include <window_gui.h>

Public Types

typedef Window * value_type
 
typedef value_type * pointer
 
typedef value_type & reference
 
typedef size_t difference_type
 
typedef std::forward_iterator_tag iterator_category
 

Public Member Functions

 WindowIterator (WindowList::iterator start)
 
 WindowIterator (const Window *w)
 
bool operator== (const WindowIterator &other) const
 
bool operator!= (const WindowIterator &other) const
 
Window * operator* () const
 
WindowIterator & operator++ ()
 
bool IsEnd () const
 

Private Member Functions

void Validate ()
 
void Next ()
 

Private Attributes

WindowList::iterator it
 

Detailed Description

template<bool TtoBack>
struct Window::WindowIterator< TtoBack >

Iterator to iterate all valid Windows.

Template Parameters
TtoBackwhether we iterate towards the back.

Definition at line 862 of file window_gui.h.


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