LLVM 20.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 = value_type
 

Public Member Functions

 SafeIntIterator (T Value)
 
 SafeIntIterator (const SafeIntIterator< T, !IsReverse > &O)
 
reference operator* () const
 
reference 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 188 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 191 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 189 of file Sequence.h.

◆ pointer

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

Definition at line 192 of file Sequence.h.

◆ reference

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

Definition at line 193 of file Sequence.h.

◆ value_type

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

Definition at line 190 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 196 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 198 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 207 of file Sequence.h.

◆ operator*()

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

Definition at line 201 of file Sequence.h.

References llvm::detail::CheckedInt::to().

◆ operator+()

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

Definition at line 235 of file Sequence.h.

References llvm::Offset.

◆ operator++() [1/2]

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

Definition at line 215 of file Sequence.h.

◆ operator++() [2/2]

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

Definition at line 219 of file Sequence.h.

◆ operator+=()

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

Definition at line 231 of file Sequence.h.

References llvm::Offset.

◆ 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 239 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 236 of file Sequence.h.

References llvm::Offset.

◆ operator--() [1/2]

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

Definition at line 216 of file Sequence.h.

◆ operator--() [2/2]

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

Definition at line 224 of file Sequence.h.

◆ operator-=()

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

Definition at line 232 of file Sequence.h.

References llvm::Offset.

◆ operator<()

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

Definition at line 209 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 211 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 206 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 210 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 212 of file Sequence.h.

◆ operator[]()

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

Definition at line 203 of file Sequence.h.

References llvm::Offset.

Friends And Related Function Documentation

◆ SafeIntIterator

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

Definition at line 257 of file Sequence.h.


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