mCRL2
Loading...
Searching...
No Matches
mcrl2::lps::counting_iterator Struct Reference

#include <explorer_projections.h>

Public Types

using value_type = std::size_t
 
using difference_type = std::ptrdiff_t
 
using iterator_category = std::forward_iterator_tag
 
using pointer = const std::size_t *
 
using reference = std::size_t
 

Public Member Functions

 counting_iterator (std::size_t v=0)
 
std::size_t operator* () const
 
counting_iterator & operator++ ()
 
counting_iterator operator++ (int)
 
bool operator== (const counting_iterator &other) const
 
bool operator!= (const counting_iterator &other) const
 

Public Attributes

std::size_t value
 

Detailed Description

Definition at line 59 of file explorer_projections.h.

Member Typedef Documentation

◆ difference_type

Definition at line 62 of file explorer_projections.h.

◆ iterator_category

using mcrl2::lps::counting_iterator::iterator_category = std::forward_iterator_tag

Definition at line 63 of file explorer_projections.h.

◆ pointer

using mcrl2::lps::counting_iterator::pointer = const std::size_t*

Definition at line 64 of file explorer_projections.h.

◆ reference

Definition at line 65 of file explorer_projections.h.

◆ value_type

Definition at line 61 of file explorer_projections.h.

Constructor & Destructor Documentation

◆ counting_iterator()

mcrl2::lps::counting_iterator::counting_iterator ( std::size_t  v = 0)
inlineexplicit

Definition at line 69 of file explorer_projections.h.

Member Function Documentation

◆ operator!=()

bool mcrl2::lps::counting_iterator::operator!= ( const counting_iterator &  other) const
inline

Definition at line 94 of file explorer_projections.h.

◆ operator*()

std::size_t mcrl2::lps::counting_iterator::operator* ( ) const
inline

Definition at line 71 of file explorer_projections.h.

◆ operator++() [1/2]

counting_iterator & mcrl2::lps::counting_iterator::operator++ ( )
inline

Definition at line 76 of file explorer_projections.h.

◆ operator++() [2/2]

counting_iterator mcrl2::lps::counting_iterator::operator++ ( int  )
inline

Definition at line 82 of file explorer_projections.h.

◆ operator==()

bool mcrl2::lps::counting_iterator::operator== ( const counting_iterator &  other) const
inline

Definition at line 89 of file explorer_projections.h.

Member Data Documentation

◆ value

std::size_t mcrl2::lps::counting_iterator::value

Definition at line 67 of file explorer_projections.h.


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