LLVM 20.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 chardata () const
 
uint32_t size () const
 
uint32_t hash () const
 

Detailed Description

A container which contains a StringRef plus a precomputed hash.

Definition at line 29 of file CachedHashString.h.

Constructor & Destructor Documentation

◆ CachedHashStringRef() [1/2]

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

Definition at line 36 of file CachedHashString.h.

◆ CachedHashStringRef() [2/2]

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

Definition at line 39 of file CachedHashString.h.

References assert(), P, and llvm::StringRef::size().

Member Function Documentation

◆ data()

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

Definition at line 45 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 46 of file CachedHashString.h.

Referenced by llvm::StringTableBuilder::add().

◆ val()

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

Definition at line 44 of file CachedHashString.h.

References P.


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