LLVM 24.0.0git
llvm::detail::SafeIntIterator< T, IsReverse > Struct Template Reference

#include "llvm/ADT/Sequence.h"

Inheritance diagram for llvm::detail::SafeIntIterator< T, IsReverse >:
[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

constexpr SafeIntIterator (T Value)
constexpr SafeIntIterator (const SafeIntIterator< T, !IsReverse > &O)
constexpr reference operator* () const
constexpr reference operator[] (intmax_t Offset) const
constexpr bool operator== (const SafeIntIterator &O) const
constexpr bool operator!= (const SafeIntIterator &O) const
constexpr bool operator< (const SafeIntIterator &O) const
constexpr bool operator> (const SafeIntIterator &O) const
constexpr bool operator<= (const SafeIntIterator &O) const
constexpr bool operator>= (const SafeIntIterator &O) const
constexpr void operator++ ()
constexpr void operator-- ()
constexpr SafeIntIterator operator++ (int)
constexpr SafeIntIterator operator-- (int)
constexpr void operator+= (intmax_t Offset)
constexpr void operator-= (intmax_t Offset)
constexpr SafeIntIterator operator+ (intmax_t Offset) const
constexpr SafeIntIterator operator- (intmax_t Offset) const
constexpr 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 200 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 203 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 201 of file Sequence.h.

◆ pointer

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

Definition at line 204 of file Sequence.h.

◆ reference

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

Definition at line 205 of file Sequence.h.

◆ value_type

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

Definition at line 202 of file Sequence.h.

Constructor & Destructor Documentation

◆ SafeIntIterator() [1/2]

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

Definition at line 208 of file Sequence.h.

◆ SafeIntIterator() [2/2]

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

Definition at line 211 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
inlineconstexpr

Definition at line 225 of file Sequence.h.

◆ operator*()

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

Definition at line 215 of file Sequence.h.

◆ operator+()

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

Definition at line 263 of file Sequence.h.

◆ operator++() [1/2]

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

Definition at line 243 of file Sequence.h.

◆ operator++() [2/2]

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

Definition at line 247 of file Sequence.h.

◆ operator+=()

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

Definition at line 259 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
inlineconstexpr

Definition at line 271 of file Sequence.h.

◆ operator-() [2/2]

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

Definition at line 266 of file Sequence.h.

◆ operator--() [1/2]

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

Definition at line 244 of file Sequence.h.

◆ operator--() [2/2]

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

Definition at line 252 of file Sequence.h.

◆ operator-=()

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

Definition at line 260 of file Sequence.h.

◆ operator<()

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

Definition at line 229 of file Sequence.h.

◆ operator<=()

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

Definition at line 235 of file Sequence.h.

◆ operator==()

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

Definition at line 222 of file Sequence.h.

◆ operator>()

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

Definition at line 232 of file Sequence.h.

◆ operator>=()

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

Definition at line 238 of file Sequence.h.

◆ operator[]()

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

Definition at line 217 of file Sequence.h.

◆ SafeIntIterator

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

Definition at line 291 of file Sequence.h.


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