LLVM 20.0.0git
Public Types | Public Member Functions | Friends | List of all members
llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst > Class Template Reference

#include "llvm/ADT/DenseMap.h"

Inheritance diagram for llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >:
Inheritance graph
[legend]

Public Types

using difference_type = ptrdiff_t
 
using value_type = std::conditional_t< IsConst, const Bucket, Bucket >
 
using pointer = value_type *
 
using reference = value_type &
 
using iterator_category = std::forward_iterator_tag
 

Public Member Functions

 DenseMapIterator ()=default
 
 DenseMapIterator (pointer Pos, pointer E, const DebugEpochBase &Epoch, bool NoAdvance=false)
 
template<bool IsConstSrc, typename = std::enable_if_t<!IsConstSrc && IsConst>>
 DenseMapIterator (const DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConstSrc > &I)
 
reference operator* () const
 
pointer operator-> () const
 
DenseMapIteratoroperator++ ()
 
DenseMapIterator operator++ (int)
 

Friends

class DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, true >
 
class DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, false >
 
bool operator== (const DenseMapIterator &LHS, const DenseMapIterator &RHS)
 
bool operator!= (const DenseMapIterator &LHS, const DenseMapIterator &RHS)
 

Detailed Description

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
class llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >

Definition at line 1256 of file DenseMap.h.

Member Typedef Documentation

◆ difference_type

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
using llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::difference_type = ptrdiff_t

Definition at line 1261 of file DenseMap.h.

◆ iterator_category

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
using llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::iterator_category = std::forward_iterator_tag

Definition at line 1265 of file DenseMap.h.

◆ pointer

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
using llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::pointer = value_type *

Definition at line 1263 of file DenseMap.h.

◆ reference

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
using llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::reference = value_type &

Definition at line 1264 of file DenseMap.h.

◆ value_type

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
using llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::value_type = std::conditional_t<IsConst, const Bucket, Bucket>

Definition at line 1262 of file DenseMap.h.

Constructor & Destructor Documentation

◆ DenseMapIterator() [1/3]

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::DenseMapIterator ( )
default

◆ DenseMapIterator() [2/3]

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::DenseMapIterator ( pointer  Pos,
pointer  E,
const DebugEpochBase Epoch,
bool  NoAdvance = false 
)
inline

Definition at line 1274 of file DenseMap.h.

References assert().

◆ DenseMapIterator() [3/3]

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
template<bool IsConstSrc, typename = std::enable_if_t<!IsConstSrc && IsConst>>
llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::DenseMapIterator ( const DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConstSrc > &  I)
inline

Definition at line 1292 of file DenseMap.h.

Member Function Documentation

◆ operator*()

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
reference llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::operator* ( ) const
inline

Definition at line 1296 of file DenseMap.h.

References assert(), End, and Ptr.

◆ operator++() [1/2]

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
DenseMapIterator & llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::operator++ ( )
inline

Definition at line 1325 of file DenseMap.h.

References assert(), End, and Ptr.

◆ operator++() [2/2]

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
DenseMapIterator llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::operator++ ( int  )
inline

Definition at line 1337 of file DenseMap.h.

References assert().

◆ operator->()

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
pointer llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::operator-> ( ) const
inline

Definition at line 1303 of file DenseMap.h.

References assert(), End, and Ptr.

Friends And Related Function Documentation

◆ DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, false >

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
friend class DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, false >
friend

Definition at line 961 of file DenseMap.h.

◆ DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, true >

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
friend class DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, true >
friend

Definition at line 961 of file DenseMap.h.

◆ operator!=

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
bool operator!= ( const DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst > &  LHS,
const DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst > &  RHS 
)
friend

Definition at line 1320 of file DenseMap.h.

◆ operator==

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
bool operator== ( const DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst > &  LHS,
const DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst > &  RHS 
)
friend

Definition at line 1311 of file DenseMap.h.


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