LLVM  14.0.0git
Public Member Functions | List of all members
llvm::CachedHashStringRef Class Reference

A container which contains a StringRef plus a precomputed hash. More...

#include "llvm/ADT/CachedHashString.h"

Public Member Functions

 CachedHashStringRef (StringRef S)
 
 CachedHashStringRef (StringRef S, uint32_t Hash)
 
StringRef val () const
 
const char * data () const
 
uint32_t size () const
 
uint32_t hash () const
 

Detailed Description

A container which contains a StringRef plus a precomputed hash.

Definition at line 28 of file CachedHashString.h.

Constructor & Destructor Documentation

◆ CachedHashStringRef() [1/2]

llvm::CachedHashStringRef::CachedHashStringRef ( StringRef  S)
inlineexplicit

Definition at line 35 of file CachedHashString.h.

◆ CachedHashStringRef() [2/2]

llvm::CachedHashStringRef::CachedHashStringRef ( StringRef  S,
uint32_t  Hash 
)
inline

Definition at line 38 of file CachedHashString.h.

References assert(), llvm::max(), P, and S.

Member Function Documentation

◆ data()

const char* llvm::CachedHashStringRef::data ( ) const
inline

Definition at line 44 of file CachedHashString.h.

References P.

◆ hash()

uint32_t llvm::CachedHashStringRef::hash ( ) const
inline

◆ size()

uint32_t llvm::CachedHashStringRef::size ( ) const
inline

Definition at line 45 of file CachedHashString.h.

◆ val()

StringRef llvm::CachedHashStringRef::val ( ) const
inline

Definition at line 43 of file CachedHashString.h.

References P.

Referenced by llvm::DenseMapInfo< CachedHashStringRef >::isEqual().


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