OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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

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

Definition at line 782 of file C4Gui.h.

782 : current(element) { }

Member Function Documentation

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

Definition at line 794 of file C4Gui.h.

795  {
796  return !(*this == other);
797  }
Element* C4GUI::Container::Iterator::operator* ( ) const
inline

Definition at line 784 of file C4Gui.h.

784 { return current; }
void C4GUI::Container::Iterator::operator++ ( )
inline

Definition at line 786 of file C4Gui.h.

References C4GUI::Element::GetNext().

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

Here is the call graph for this function:

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

Definition at line 787 of file C4Gui.h.

References operator++().

Referenced by operator++().

787 { operator++(); }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 785 of file C4Gui.h.

785 { return current; }
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: