OpenTTD Source  20240917-master-g9ab0a47812
Window::WindowIterator< TtoBack > Struct Template Reference

Iterator to iterate all valid Windows. More...

#include <window_gui.h>

Public Types

typedef Windowvalue_type
 
typedef value_typepointer
 
typedef value_typereference
 
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
 
Windowoperator* () const
 
WindowIteratoroperator++ ()
 
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 871 of file window_gui.h.


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