LLVM 22.0.0git
llvm::StringMapIterBase< ValueTy, IsConst > Class Template Reference

#include "llvm/ADT/StringMap.h"

Inheritance diagram for llvm::StringMapIterBase< ValueTy, IsConst >:
[legend]

Public Types

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

Public Member Functions

 StringMapIterBase ()=default
 StringMapIterBase (StringMapEntryBase **Bucket, bool Advance=false)
reference operator* () const
pointer operator-> () const
StringMapIterBaseoperator++ ()
StringMapIterBase operator++ (int)
template<bool ToConst, typename = typename std::enable_if<!IsConst && ToConst>::type>
 operator StringMapIterBase< ValueTy, ToConst > () const

Friends

bool operator== (const StringMapIterBase &LHS, const StringMapIterBase &RHS)
bool operator!= (const StringMapIterBase &LHS, const StringMapIterBase &RHS)

Detailed Description

template<typename ValueTy, bool IsConst>
class llvm::StringMapIterBase< ValueTy, IsConst >

Definition at line 431 of file StringMap.h.

Member Typedef Documentation

◆ difference_type

template<typename ValueTy, bool IsConst>
using llvm::StringMapIterBase< ValueTy, IsConst >::difference_type = std::ptrdiff_t

Definition at line 437 of file StringMap.h.

◆ iterator_category

template<typename ValueTy, bool IsConst>
using llvm::StringMapIterBase< ValueTy, IsConst >::iterator_category = std::forward_iterator_tag

Definition at line 435 of file StringMap.h.

◆ pointer

template<typename ValueTy, bool IsConst>
using llvm::StringMapIterBase< ValueTy, IsConst >::pointer = std::conditional_t<IsConst, const value_type *, value_type *>

Definition at line 438 of file StringMap.h.

◆ reference

template<typename ValueTy, bool IsConst>
using llvm::StringMapIterBase< ValueTy, IsConst >::reference
Initial value:
std::conditional_t<IsConst, const value_type &, value_type &>

Definition at line 439 of file StringMap.h.

◆ value_type

template<typename ValueTy, bool IsConst>
using llvm::StringMapIterBase< ValueTy, IsConst >::value_type = StringMapEntry<ValueTy>

Definition at line 436 of file StringMap.h.

Constructor & Destructor Documentation

◆ StringMapIterBase() [1/2]

template<typename ValueTy, bool IsConst>
llvm::StringMapIterBase< ValueTy, IsConst >::StringMapIterBase ( )
default

◆ StringMapIterBase() [2/2]

template<typename ValueTy, bool IsConst>
llvm::StringMapIterBase< ValueTy, IsConst >::StringMapIterBase ( StringMapEntryBase ** Bucket,
bool Advance = false )
inlineexplicit

Definition at line 444 of file StringMap.h.

Member Function Documentation

◆ operator StringMapIterBase< ValueTy, ToConst >()

template<typename ValueTy, bool IsConst>
template<bool ToConst, typename = typename std::enable_if<!IsConst && ToConst>::type>
llvm::StringMapIterBase< ValueTy, IsConst >::operator StringMapIterBase< ValueTy, ToConst > ( ) const
inline

Definition at line 467 of file StringMap.h.

◆ operator*()

template<typename ValueTy, bool IsConst>
reference llvm::StringMapIterBase< ValueTy, IsConst >::operator* ( ) const
inline

Definition at line 450 of file StringMap.h.

◆ operator++() [1/2]

template<typename ValueTy, bool IsConst>
StringMapIterBase & llvm::StringMapIterBase< ValueTy, IsConst >::operator++ ( )
inline

Definition at line 453 of file StringMap.h.

◆ operator++() [2/2]

template<typename ValueTy, bool IsConst>
StringMapIterBase llvm::StringMapIterBase< ValueTy, IsConst >::operator++ ( int )
inline

Definition at line 459 of file StringMap.h.

◆ operator->()

template<typename ValueTy, bool IsConst>
pointer llvm::StringMapIterBase< ValueTy, IsConst >::operator-> ( ) const
inline

Definition at line 451 of file StringMap.h.

◆ operator!=

template<typename ValueTy, bool IsConst>
bool operator!= ( const StringMapIterBase< ValueTy, IsConst > & LHS,
const StringMapIterBase< ValueTy, IsConst > & RHS )
friend

Definition at line 476 of file StringMap.h.

◆ operator==

template<typename ValueTy, bool IsConst>
bool operator== ( const StringMapIterBase< ValueTy, IsConst > & LHS,
const StringMapIterBase< ValueTy, IsConst > & RHS )
friend

Definition at line 471 of file StringMap.h.


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