Public Types | Public Member Functions | Private Attributes | List of all members
internal::counting_iterator< T > Class Template Reference

#include <format.h>

Public Types

typedef std::output_iterator_tag iterator_category
 
typedef T value_type
 
typedef std::ptrdiff_t difference_type
 
typedef T * pointer
 
typedef T & reference
 
typedef counting_iterator _Unchecked_type
 

Public Member Functions

 counting_iterator ()
 
std::size_t count () const
 
counting_iteratoroperator++ ()
 
counting_iterator operator++ (int)
 
T & operator* () const
 

Private Attributes

std::size_t count_
 
blackhole_
 

Detailed Description

template<typename T>
class internal::counting_iterator< T >

Definition at line 615 of file format.h.

Member Typedef Documentation

template<typename T >
typedef counting_iterator internal::counting_iterator< T >::_Unchecked_type

Definition at line 626 of file format.h.

template<typename T >
typedef std::ptrdiff_t internal::counting_iterator< T >::difference_type

Definition at line 623 of file format.h.

template<typename T >
typedef std::output_iterator_tag internal::counting_iterator< T >::iterator_category

Definition at line 621 of file format.h.

template<typename T >
typedef T* internal::counting_iterator< T >::pointer

Definition at line 624 of file format.h.

template<typename T >
typedef T& internal::counting_iterator< T >::reference

Definition at line 625 of file format.h.

template<typename T >
typedef T internal::counting_iterator< T >::value_type

Definition at line 622 of file format.h.

Constructor & Destructor Documentation

template<typename T >
internal::counting_iterator< T >::counting_iterator ( )
inline

Definition at line 628 of file format.h.

628 : count_(0) {}

Member Function Documentation

template<typename T >
std::size_t internal::counting_iterator< T >::count ( ) const
inline

Definition at line 630 of file format.h.

630 { return count_; }
template<typename T >
T& internal::counting_iterator< T >::operator* ( ) const
inline

Definition at line 643 of file format.h.

643 { return blackhole_; }
template<typename T >
counting_iterator& internal::counting_iterator< T >::operator++ ( )
inline

Definition at line 632 of file format.h.

632  {
633  ++count_;
634  return *this;
635  }
template<typename T >
counting_iterator internal::counting_iterator< T >::operator++ ( int  )
inline

Definition at line 637 of file format.h.

637  {
638  auto it = *this;
639  ++*this;
640  return it;
641  }

Member Data Documentation

template<typename T >
T internal::counting_iterator< T >::blackhole_
mutableprivate

Definition at line 618 of file format.h.

template<typename T >
std::size_t internal::counting_iterator< T >::count_
private

Definition at line 617 of file format.h.


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