AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ThreatManager::ThreatListIterator Class Reference

#include "ThreatManager.h"

Public Member Functions

ThreatReference const * operator* () const
 
ThreatReference const * operator-> () const
 
ThreatListIteratoroperator++ ()
 
bool operator== (ThreatListIterator const &o) const
 
bool operator!= (ThreatListIterator const &o) const
 
bool operator== (std::nullptr_t) const
 
bool operator!= (std::nullptr_t) const
 

Private Member Functions

 ThreatListIterator (std::function< ThreatReference const *()> &&generator)
 

Private Attributes

std::function< ThreatReference const *()> _generator
 
ThreatReference const * _current
 
friend ThreatManager
 

Detailed Description

Constructor & Destructor Documentation

◆ ThreatListIterator()

ThreatManager::ThreatListIterator::ThreatListIterator ( std::function< ThreatReference const *()> &&  generator)
inlineexplicitprivate
246 : _generator(std::move(generator)), _current(_generator()) {}
ThreatReference const * _current
Definition ThreatManager.h:242
std::function< ThreatReference const *()> _generator
Definition ThreatManager.h:241

Member Function Documentation

◆ operator!=() [1/2]

bool ThreatManager::ThreatListIterator::operator!= ( std::nullptr_t  ) const
inline
255{ return _current != nullptr; }

◆ operator!=() [2/2]

bool ThreatManager::ThreatListIterator::operator!= ( ThreatListIterator const &  o) const
inline
253{ return _current != o._current; }

References _current.

◆ operator*()

ThreatReference const * ThreatManager::ThreatListIterator::operator* ( ) const
inline
249{ return _current; }

◆ operator++()

ThreatListIterator & ThreatManager::ThreatListIterator::operator++ ( )
inline
251{ _current = _generator(); return *this; }

◆ operator->()

ThreatReference const * ThreatManager::ThreatListIterator::operator-> ( ) const
inline
250{ return _current; }

◆ operator==() [1/2]

bool ThreatManager::ThreatListIterator::operator== ( std::nullptr_t  ) const
inline
254{ return _current == nullptr; }

◆ operator==() [2/2]

bool ThreatManager::ThreatListIterator::operator== ( ThreatListIterator const &  o) const
inline
252{ return _current == o._current; }

References _current.

Member Data Documentation

◆ _current

ThreatReference const* ThreatManager::ThreatListIterator::_current
private

Referenced by operator!=(), and operator==().

◆ _generator

std::function<ThreatReference const* ()> ThreatManager::ThreatListIterator::_generator
private

◆ ThreatManager

friend ThreatManager::ThreatListIterator::ThreatManager
private

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