LLVM 22.0.0git
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.

References CachedHashStringRef().

Referenced by CachedHashStringRef().

◆ CachedHashStringRef() [2/2]

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

Definition at line 39 of file CachedHashString.h.

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

Member Function Documentation

◆ data()

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

Definition at line 45 of file CachedHashString.h.

Referenced by CachedHashStringRef().

◆ 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(), and CachedHashStringRef().

◆ val()

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

Definition at line 44 of file CachedHashString.h.


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