www.mooseframework.org
Public Types | Public Member Functions | Private Attributes | List of all members
Moose::_enumerate_range< Iterator > Struct Template Reference

#include <Enumerate.h>

Public Types

using index_type = typename std::iterator_traits< Iterator >::difference_type
 
using iterator = _enumerate_iterator< Iterator >
 

Public Member Functions

 _enumerate_range (Iterator first, Iterator last, index_type initial)
 
iterator begin () const
 
iterator end () const
 

Private Attributes

Iterator first
 
Iterator last
 
index_type initial
 

Detailed Description

template<class Iterator>
struct Moose::_enumerate_range< Iterator >

Definition at line 26 of file Enumerate.h.

Member Typedef Documentation

◆ index_type

template<class Iterator>
using Moose::_enumerate_range< Iterator >::index_type = typename std::iterator_traits<Iterator>::difference_type

Definition at line 128 of file Enumerate.h.

◆ iterator

template<class Iterator>
using Moose::_enumerate_range< Iterator >::iterator = _enumerate_iterator<Iterator>

Definition at line 129 of file Enumerate.h.

Constructor & Destructor Documentation

◆ _enumerate_range()

template<class Iterator>
Moose::_enumerate_range< Iterator >::_enumerate_range ( Iterator  first,
Iterator  last,
index_type  initial 
)
inline

Definition at line 131 of file Enumerate.h.

133  {
134  }

Member Function Documentation

◆ begin()

template<class Iterator>
iterator Moose::_enumerate_range< Iterator >::begin ( ) const
inline

Definition at line 136 of file Enumerate.h.

136 { return iterator(initial, first); }
_enumerate_iterator< Iterator > iterator
Definition: Enumerate.h:129

◆ end()

template<class Iterator>
iterator Moose::_enumerate_range< Iterator >::end ( ) const
inline

Definition at line 138 of file Enumerate.h.

138 { return iterator(0, last); }
_enumerate_iterator< Iterator > iterator
Definition: Enumerate.h:129

Member Data Documentation

◆ first

template<class Iterator>
Iterator Moose::_enumerate_range< Iterator >::first
private

Definition at line 141 of file Enumerate.h.

Referenced by Moose::_enumerate_range< Iterator >::begin().

◆ initial

template<class Iterator>
index_type Moose::_enumerate_range< Iterator >::initial
private

Definition at line 143 of file Enumerate.h.

Referenced by Moose::_enumerate_range< Iterator >::begin().

◆ last

template<class Iterator>
Iterator Moose::_enumerate_range< Iterator >::last
private

Definition at line 142 of file Enumerate.h.

Referenced by Moose::_enumerate_range< Iterator >::end().


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