LLVM  14.0.0git
Public Types | Public Member Functions | Friends | List of all members
llvm::detail::SafeIntIterator< T, IsReverse > Struct Template Reference

#include "llvm/ADT/Sequence.h"

Inheritance diagram for llvm::detail::SafeIntIterator< T, IsReverse >:
Inheritance graph
[legend]

Public Types

using iterator_category = std::random_access_iterator_tag
 
using value_type = T
 
using difference_type = intmax_t
 
using pointer = T *
 
using reference = T &
 

Public Member Functions

 SafeIntIterator (T Value)
 
 SafeIntIterator (const SafeIntIterator< T, !IsReverse > &O)
 
value_type operator* () const
 
value_type operator[] (intmax_t Offset) const
 
bool operator== (const SafeIntIterator &O) const
 
bool operator!= (const SafeIntIterator &O) const
 
bool operator< (const SafeIntIterator &O) const
 
bool operator> (const SafeIntIterator &O) const
 
bool operator<= (const SafeIntIterator &O) const
 
bool operator>= (const SafeIntIterator &O) const
 
void operator++ ()
 
void operator-- ()
 
SafeIntIterator operator++ (int)
 
SafeIntIterator operator-- (int)
 
void operator+= (intmax_t Offset)
 
void operator-= (intmax_t Offset)
 
SafeIntIterator operator+ (intmax_t Offset) const
 
SafeIntIterator operator- (intmax_t Offset) const
 
intmax_t operator- (const SafeIntIterator &O) const
 

Friends

template<typename , bool >
struct SafeIntIterator
 

Detailed Description

template<typename T, bool IsReverse>
struct llvm::detail::SafeIntIterator< T, IsReverse >

Definition at line 105 of file Sequence.h.

Member Typedef Documentation

◆ difference_type

template<typename T , bool IsReverse>
using llvm::detail::SafeIntIterator< T, IsReverse >::difference_type = intmax_t

Definition at line 108 of file Sequence.h.

◆ iterator_category

template<typename T , bool IsReverse>
using llvm::detail::SafeIntIterator< T, IsReverse >::iterator_category = std::random_access_iterator_tag

Definition at line 106 of file Sequence.h.

◆ pointer

template<typename T , bool IsReverse>
using llvm::detail::SafeIntIterator< T, IsReverse >::pointer = T *

Definition at line 109 of file Sequence.h.

◆ reference

template<typename T , bool IsReverse>
using llvm::detail::SafeIntIterator< T, IsReverse >::reference = T &

Definition at line 110 of file Sequence.h.

◆ value_type

template<typename T , bool IsReverse>
using llvm::detail::SafeIntIterator< T, IsReverse >::value_type = T

Definition at line 107 of file Sequence.h.

Constructor & Destructor Documentation

◆ SafeIntIterator() [1/2]

template<typename T , bool IsReverse>
llvm::detail::SafeIntIterator< T, IsReverse >::SafeIntIterator ( T  Value)
inlineexplicit

Definition at line 113 of file Sequence.h.

◆ SafeIntIterator() [2/2]

template<typename T , bool IsReverse>
llvm::detail::SafeIntIterator< T, IsReverse >::SafeIntIterator ( const SafeIntIterator< T, !IsReverse > &  O)
inline

Definition at line 115 of file Sequence.h.

Member Function Documentation

◆ operator!=()

template<typename T , bool IsReverse>
bool llvm::detail::SafeIntIterator< T, IsReverse >::operator!= ( const SafeIntIterator< T, IsReverse > &  O) const
inline

Definition at line 124 of file Sequence.h.

◆ operator*()

template<typename T , bool IsReverse>
value_type llvm::detail::SafeIntIterator< T, IsReverse >::operator* ( ) const
inline

Definition at line 118 of file Sequence.h.

◆ operator+()

template<typename T , bool IsReverse>
SafeIntIterator llvm::detail::SafeIntIterator< T, IsReverse >::operator+ ( intmax_t  Offset) const
inline

Definition at line 152 of file Sequence.h.

◆ operator++() [1/2]

template<typename T , bool IsReverse>
void llvm::detail::SafeIntIterator< T, IsReverse >::operator++ ( )
inline

Definition at line 132 of file Sequence.h.

◆ operator++() [2/2]

template<typename T , bool IsReverse>
SafeIntIterator llvm::detail::SafeIntIterator< T, IsReverse >::operator++ ( int  )
inline

Definition at line 136 of file Sequence.h.

◆ operator+=()

template<typename T , bool IsReverse>
void llvm::detail::SafeIntIterator< T, IsReverse >::operator+= ( intmax_t  Offset)
inline

Definition at line 148 of file Sequence.h.

◆ operator-() [1/2]

template<typename T , bool IsReverse>
intmax_t llvm::detail::SafeIntIterator< T, IsReverse >::operator- ( const SafeIntIterator< T, IsReverse > &  O) const
inline

Definition at line 156 of file Sequence.h.

◆ operator-() [2/2]

template<typename T , bool IsReverse>
SafeIntIterator llvm::detail::SafeIntIterator< T, IsReverse >::operator- ( intmax_t  Offset) const
inline

Definition at line 153 of file Sequence.h.

◆ operator--() [1/2]

template<typename T , bool IsReverse>
void llvm::detail::SafeIntIterator< T, IsReverse >::operator-- ( )
inline

Definition at line 133 of file Sequence.h.

◆ operator--() [2/2]

template<typename T , bool IsReverse>
SafeIntIterator llvm::detail::SafeIntIterator< T, IsReverse >::operator-- ( int  )
inline

Definition at line 141 of file Sequence.h.

◆ operator-=()

template<typename T , bool IsReverse>
void llvm::detail::SafeIntIterator< T, IsReverse >::operator-= ( intmax_t  Offset)
inline

Definition at line 149 of file Sequence.h.

◆ operator<()

template<typename T , bool IsReverse>
bool llvm::detail::SafeIntIterator< T, IsReverse >::operator< ( const SafeIntIterator< T, IsReverse > &  O) const
inline

Definition at line 126 of file Sequence.h.

◆ operator<=()

template<typename T , bool IsReverse>
bool llvm::detail::SafeIntIterator< T, IsReverse >::operator<= ( const SafeIntIterator< T, IsReverse > &  O) const
inline

Definition at line 128 of file Sequence.h.

◆ operator==()

template<typename T , bool IsReverse>
bool llvm::detail::SafeIntIterator< T, IsReverse >::operator== ( const SafeIntIterator< T, IsReverse > &  O) const
inline

Definition at line 123 of file Sequence.h.

◆ operator>()

template<typename T , bool IsReverse>
bool llvm::detail::SafeIntIterator< T, IsReverse >::operator> ( const SafeIntIterator< T, IsReverse > &  O) const
inline

Definition at line 127 of file Sequence.h.

◆ operator>=()

template<typename T , bool IsReverse>
bool llvm::detail::SafeIntIterator< T, IsReverse >::operator>= ( const SafeIntIterator< T, IsReverse > &  O) const
inline

Definition at line 129 of file Sequence.h.

◆ operator[]()

template<typename T , bool IsReverse>
value_type llvm::detail::SafeIntIterator< T, IsReverse >::operator[] ( intmax_t  Offset) const
inline

Definition at line 120 of file Sequence.h.

Friends And Related Function Documentation

◆ SafeIntIterator

template<typename T , bool IsReverse>
template<typename , bool >
friend struct SafeIntIterator
friend

Definition at line 174 of file Sequence.h.


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