OpenClonk
C4GUI::Container::ReverseIterator Class Reference

#include <C4Gui.h>

Public Member Functions

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

Detailed Description

Definition at line 800 of file C4Gui.h.

Constructor & Destructor Documentation

◆ ReverseIterator()

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

Definition at line 805 of file C4Gui.h.

805 : current(element) { }

Member Function Documentation

◆ operator!=()

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

Definition at line 817 of file C4Gui.h.

818  {
819  return !(*this == other);
820  }

◆ operator*()

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

Definition at line 807 of file C4Gui.h.

807 { return current; }

◆ operator++() [1/2]

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

Definition at line 809 of file C4Gui.h.

809 { current = current->GetPrev(); };
Element * GetPrev() const
Definition: C4Gui.h:450

References C4GUI::Element::GetPrev().

Here is the call graph for this function:

◆ operator++() [2/2]

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

Definition at line 810 of file C4Gui.h.

810 { 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::ReverseIterator::operator-> ( ) const
inline

Definition at line 808 of file C4Gui.h.

808 { return current; }

◆ operator==()

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

Definition at line 812 of file C4Gui.h.

813  {
814  return (current == other.current);
815  }

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