![]()  | 
  
    Gamedev Framework (gf)
    0.14.0
    
   A C++14 framework for 2D games 
   | 
 
An iterator for a 2D range. More...
#include <gf/Range.h>
Public Types | |
| using | difference_type = std::ptrdiff_t | 
| using | value_type = Vector< T, 2 > | 
| using | pointer = value_type | 
| using | reference = value_type | 
| using | iterator_category = std::forward_iterator_tag | 
Public Member Functions | |
| constexpr | Iterator (Vector< T, 2 > iteratorPosition, const NeighborSquareRange< T > *iteratorParent) noexcept | 
| Constructor.  More... | |
| constexpr | Iterator (Vector< T, 2 > iteratorPosition) noexcept | 
| Constructor of a end sentinel.  More... | |
| void | swap (Iterator &other) noexcept | 
| Swap the iterator with another iterator.  More... | |
| reference | operator* () noexcept | 
| Dereference operator.  More... | |
| pointer | operator-> () noexcept | 
| Pointer operator.  More... | |
| Iterator & | operator++ () noexcept | 
| Increment operator (prefix)  More... | |
| Iterator | operator++ (int) noexcept | 
| Increment operator (postfix)  More... | |
| constexpr bool | operator!= (const Iterator &other) const noexcept | 
| Inequality operator.  More... | |
| constexpr bool | operator== (const Iterator &other) const noexcept | 
| Equality operator.  More... | |
Public Attributes | |
| Vector< T, 2 > | position | 
| const NeighborSquareRange< T > * | parent | 
Related Functions | |
(Note that these are not member functions.)  | |
| template<typename T > | |
| void | swap (typename NeighborSquareRange< T >::Iterator &lhs, typename NeighborSquareRange< T >::Iterator &rhs) noexcept | 
| Swap two range iterators.  More... | |
An iterator for a 2D range.
| using gf::NeighborSquareRange< T >::Iterator::difference_type = std::ptrdiff_t | 
| using gf::NeighborSquareRange< T >::Iterator::iterator_category = std::forward_iterator_tag | 
| using gf::NeighborSquareRange< T >::Iterator::pointer = value_type | 
| using gf::NeighborSquareRange< T >::Iterator::reference = value_type | 
| using gf::NeighborSquareRange< T >::Iterator::value_type = Vector<T, 2> | 
      
  | 
  inlinenoexcept | 
Constructor.
| iteratorPosition | The current position in 2D | 
| iteratorParent | The parent range of the iterator | 
      
  | 
  inlinenoexcept | 
Constructor of a end sentinel.
| iteratorPosition | The current position in 2D | 
      
  | 
  inlinenoexcept | 
Inequality operator.
| other | Another iterator | 
      
  | 
  inlinenoexcept | 
Dereference operator.
      
  | 
  inlinenoexcept | 
Increment operator (prefix)
      
  | 
  inlinenoexcept | 
Increment operator (postfix)
      
  | 
  inlinenoexcept | 
Pointer operator.
      
  | 
  inlinenoexcept | 
Equality operator.
| other | Another iterator | 
      
  | 
  inlinenoexcept | 
Swap the iterator with another iterator.
      
  | 
  related | 
Swap two range iterators.
| const NeighborSquareRange<T>* gf::NeighborSquareRange< T >::Iterator::parent | 
| Vector<T, 2> gf::NeighborSquareRange< T >::Iterator::position | 
 1.8.13