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

C4PropList::Iterator::Iterator ( )
inline

Definition at line 182 of file C4PropList.h.

182 : properties(nullptr) { }

Member Function Documentation

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

Definition at line 196 of file C4PropList.h.

197  {
198  return !(*this == other);
199  }
const C4Property* C4PropList::Iterator::operator* ( ) const
inline

Definition at line 184 of file C4PropList.h.

184 { return *iter; }
void C4PropList::Iterator::operator++ ( )
inline

Definition at line 186 of file C4PropList.h.

186 { ++iter; };
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:

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

Definition at line 185 of file C4PropList.h.

185 { return *iter; }
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

friend class C4PropList
friend

Definition at line 201 of file C4PropList.h.


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