quadgrid 0.1
simple cartesian quad grid with particles for c++/octave
Loading...
Searching...
No Matches
range< N >::iterator Struct Reference

#include <counter.h>

Public Types

using difference_type = typename std::make_signed_t<N>
using iterator_category = std::random_access_iterator_tag
using value_type = N
using reference = N
using pointer = const N*

Public Member Functions

iteratoroperator++ ()
iterator operator++ (int)
reference operator* () const
bool operator== (const iterator &other) const
bool operator!= (const iterator &other) const
bool operator< (const iterator &other) const
difference_type operator- (const iterator &other) const
iterator operator- (const difference_type other) const
iterator operator+ (const difference_type other) const
value_type operator[] (const value_type &idx)

Protected Member Functions

 iterator (difference_type start)

Private Attributes

i_

Friends

class range

Member Typedef Documentation

◆ difference_type

template<typename N>
using range< N >::iterator::difference_type = typename std::make_signed_t<N>

◆ iterator_category

template<typename N>
using range< N >::iterator::iterator_category = std::random_access_iterator_tag

◆ pointer

template<typename N>
using range< N >::iterator::pointer = const N*

◆ reference

template<typename N>
using range< N >::iterator::reference = N

◆ value_type

template<typename N>
using range< N >::iterator::value_type = N

Constructor & Destructor Documentation

◆ iterator()

template<typename N>
range< N >::iterator::iterator ( difference_type start)
inlineexplicitprotected

Member Function Documentation

◆ operator!=()

template<typename N>
bool range< N >::iterator::operator!= ( const iterator & other) const
inline

◆ operator*()

template<typename N>
reference range< N >::iterator::operator* ( ) const
inline

◆ operator+()

template<typename N>
iterator range< N >::iterator::operator+ ( const difference_type other) const
inline

◆ operator++() [1/2]

template<typename N>
iterator & range< N >::iterator::operator++ ( )
inline

◆ operator++() [2/2]

template<typename N>
iterator range< N >::iterator::operator++ ( int )
inline

◆ operator-() [1/2]

template<typename N>
iterator range< N >::iterator::operator- ( const difference_type other) const
inline

◆ operator-() [2/2]

template<typename N>
difference_type range< N >::iterator::operator- ( const iterator & other) const
inline

◆ operator<()

template<typename N>
bool range< N >::iterator::operator< ( const iterator & other) const
inline

◆ operator==()

template<typename N>
bool range< N >::iterator::operator== ( const iterator & other) const
inline

◆ operator[]()

template<typename N>
value_type range< N >::iterator::operator[] ( const value_type & idx)
inline

◆ range

template<typename N>
friend class range
friend

Member Data Documentation

◆ i_

template<typename N>
N range< N >::iterator::i_
private

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