OpenClonk
C4PropList::Iterator Class Reference

#include <C4PropList.h>

Public Member Functions

 Iterator ()
 
const C4Propertyoperator* () const
 
const C4Propertyoperator-> () const
 
void operator++ ()
 
void operator++ (int)
 
bool operator== (const Iterator &other) const
 
bool operator!= (const Iterator &other) const
 

Friends

class C4PropList
 

Detailed Description

Definition at line 170 of file C4PropList.h.

Constructor & Destructor Documentation

◆ Iterator()

C4PropList::Iterator::Iterator ( )
inline

Definition at line 182 of file C4PropList.h.

182 : properties(nullptr) { }

Member Function Documentation

◆ operator!=()

bool C4PropList::Iterator::operator!= ( const Iterator other) const
inline

Definition at line 196 of file C4PropList.h.

197  {
198  return !(*this == other);
199  }

◆ operator*()

const C4Property* C4PropList::Iterator::operator* ( ) const
inline

Definition at line 184 of file C4PropList.h.

184 { return *iter; }

◆ operator++() [1/2]

void C4PropList::Iterator::operator++ ( )
inline

Definition at line 186 of file C4PropList.h.

186 { ++iter; };

◆ operator++() [2/2]

void C4PropList::Iterator::operator++ ( int  )
inline

Definition at line 187 of file C4PropList.h.

References operator++().

Referenced by operator++().

187 { operator++(); }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator->()

const C4Property* C4PropList::Iterator::operator-> ( ) const
inline

Definition at line 185 of file C4PropList.h.

185 { return *iter; }

◆ operator==()

bool C4PropList::Iterator::operator== ( const Iterator other) const
inline

Definition at line 189 of file C4PropList.h.

190  {
191  if ((properties == nullptr || iter == properties->end()) && (other.properties == nullptr || other.iter == other.properties->end()))
192  return true;
193  return properties == other.properties && iter == other.iter;
194  }

Friends And Related Function Documentation

◆ C4PropList

friend class C4PropList
friend

Definition at line 201 of file C4PropList.h.


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