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 175 of file C4PropList.h.

Constructor & Destructor Documentation

◆ Iterator()

C4PropList::Iterator::Iterator ( )
inline

Definition at line 187 of file C4PropList.h.

187 : properties(nullptr) { }

Member Function Documentation

◆ operator!=()

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

Definition at line 201 of file C4PropList.h.

202  {
203  return !(*this == other);
204  }

◆ operator*()

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

Definition at line 189 of file C4PropList.h.

189 { return *iter; }

◆ operator++() [1/2]

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

Definition at line 191 of file C4PropList.h.

191 { ++iter; };

◆ operator++() [2/2]

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

Definition at line 192 of file C4PropList.h.

192 { operator++(); }

References operator++().

Referenced by 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 190 of file C4PropList.h.

190 { return *iter; }

◆ operator==()

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

Definition at line 194 of file C4PropList.h.

195  {
196  if ((properties == nullptr || iter == properties->end()) && (other.properties == nullptr || other.iter == other.properties->end()))
197  return true;
198  return properties == other.properties && iter == other.iter;
199  }

Friends And Related Function Documentation

◆ C4PropList

friend class C4PropList
friend

Definition at line 206 of file C4PropList.h.


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