OpenTTD Source: Window::WindowIterator< TtoBack > Struct Template Reference

OpenTTD Source 14.0-beta1

Public Types | Public Member Functions | Private Member Functions | Private Attributes
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

  TtoBack | whether we iterate towards the back.

Definition at line 861 of file window_gui.h.

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

- src/window_gui.h