Cppcheck
Public Types | Public Member Functions | Public Attributes | List of all members
TokenRangeBase< T, >::TokenIterator Struct Reference

#include <tokenrange.h>

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = T *
 
using difference_type = std::ptrdiff_t
 
using pointer = void
 
using reference = T *
 

Public Member Functions

 TokenIterator ()
 
 TokenIterator (T *t)
 
TokenIteratoroperator++ ()
 
bool operator== (const TokenIterator &b) const
 
bool operator!= (const TokenIterator &b) const
 
T * operator* () const
 

Public Attributes

T * mt
 

Detailed Description

template<typename T, REQUIRES("T must be a Token class", std::is_convertible< T *, const Token * >)>
struct TokenRangeBase< T, >::TokenIterator

Definition at line 40 of file tokenrange.h.

Member Typedef Documentation

◆ difference_type

template<typename T , REQUIRES("T must be a Token class", std::is_convertible< T *, const Token * >) >
using TokenRangeBase< T, >::TokenIterator::difference_type = std::ptrdiff_t

Definition at line 43 of file tokenrange.h.

◆ iterator_category

template<typename T , REQUIRES("T must be a Token class", std::is_convertible< T *, const Token * >) >
using TokenRangeBase< T, >::TokenIterator::iterator_category = std::forward_iterator_tag

Definition at line 41 of file tokenrange.h.

◆ pointer

template<typename T , REQUIRES("T must be a Token class", std::is_convertible< T *, const Token * >) >
using TokenRangeBase< T, >::TokenIterator::pointer = void

Definition at line 44 of file tokenrange.h.

◆ reference

template<typename T , REQUIRES("T must be a Token class", std::is_convertible< T *, const Token * >) >
using TokenRangeBase< T, >::TokenIterator::reference = T*

Definition at line 45 of file tokenrange.h.

◆ value_type

template<typename T , REQUIRES("T must be a Token class", std::is_convertible< T *, const Token * >) >
using TokenRangeBase< T, >::TokenIterator::value_type = T*

Definition at line 42 of file tokenrange.h.

Constructor & Destructor Documentation

◆ TokenIterator() [1/2]

template<typename T , REQUIRES("T must be a Token class", std::is_convertible< T *, const Token * >) >
TokenRangeBase< T, >::TokenIterator::TokenIterator ( )
inline

Definition at line 48 of file tokenrange.h.

◆ TokenIterator() [2/2]

template<typename T , REQUIRES("T must be a Token class", std::is_convertible< T *, const Token * >) >
TokenRangeBase< T, >::TokenIterator::TokenIterator ( T *  t)
inlineexplicit

Definition at line 49 of file tokenrange.h.

Member Function Documentation

◆ operator!=()

template<typename T , REQUIRES("T must be a Token class", std::is_convertible< T *, const Token * >) >
bool TokenRangeBase< T, >::TokenIterator::operator!= ( const TokenIterator b) const
inline

Definition at line 57 of file tokenrange.h.

References TokenRangeBase< T, >::TokenIterator::mt.

◆ operator*()

template<typename T , REQUIRES("T must be a Token class", std::is_convertible< T *, const Token * >) >
T* TokenRangeBase< T, >::TokenIterator::operator* ( ) const
inline

Definition at line 60 of file tokenrange.h.

References TokenRangeBase< T, >::TokenIterator::mt.

◆ operator++()

template<typename T , REQUIRES("T must be a Token class", std::is_convertible< T *, const Token * >) >
TokenIterator& TokenRangeBase< T, >::TokenIterator::operator++ ( )
inline

Definition at line 50 of file tokenrange.h.

References TokenRangeBase< T, >::TokenIterator::mt.

◆ operator==()

template<typename T , REQUIRES("T must be a Token class", std::is_convertible< T *, const Token * >) >
bool TokenRangeBase< T, >::TokenIterator::operator== ( const TokenIterator b) const
inline

Definition at line 54 of file tokenrange.h.

References TokenRangeBase< T, >::TokenIterator::mt.

Member Data Documentation

◆ mt

template<typename T , REQUIRES("T must be a Token class", std::is_convertible< T *, const Token * >) >
T* TokenRangeBase< T, >::TokenIterator::mt

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