OpenClonk
C4GUI::Container::Iterator Class Reference

#include <C4Gui.h>

Public Member Functions

 Iterator (Element *element=nullptr)
 
Elementoperator* () const
 
Elementoperator-> () const
 
void operator++ ()
 
void operator++ (int)
 
bool operator== (const Iterator &other) const
 
bool operator!= (const Iterator &other) const
 

Detailed Description

Definition at line 777 of file C4Gui.h.

Constructor & Destructor Documentation

◆ Iterator()

C4GUI::Container::Iterator::Iterator ( Element element = nullptr)
inline

Definition at line 782 of file C4Gui.h.

782 : current(element) { }

Member Function Documentation

◆ operator!=()

bool C4GUI::Container::Iterator::operator!= ( const Iterator other) const
inline

Definition at line 794 of file C4Gui.h.

795  {
796  return !(*this == other);
797  }

◆ operator*()

Element* C4GUI::Container::Iterator::operator* ( ) const
inline

Definition at line 784 of file C4Gui.h.

784 { return current; }

◆ operator++() [1/2]

void C4GUI::Container::Iterator::operator++ ( )
inline

Definition at line 786 of file C4Gui.h.

786 { current = current->GetNext(); };
Element * GetNext() const
Definition: C4Gui.h:449

References C4GUI::Element::GetNext().

Here is the call graph for this function:

◆ operator++() [2/2]

void C4GUI::Container::Iterator::operator++ ( int  )
inline

Definition at line 787 of file C4Gui.h.

787 { operator++(); }

References operator++().

Referenced by operator++().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator->()

Element* C4GUI::Container::Iterator::operator-> ( ) const
inline

Definition at line 785 of file C4Gui.h.

785 { return current; }

◆ operator==()

bool C4GUI::Container::Iterator::operator== ( const Iterator other) const
inline

Definition at line 789 of file C4Gui.h.

790  {
791  return (current == other.current);
792  }

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