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

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

#include <CachedHashString.h>

Public Member Functions

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

Detailed Description

A container which contains a StringRef plus a precomputed hash.

Definition at line 30 of file CachedHashString.h.

Constructor & Destructor Documentation

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

Definition at line 37 of file CachedHashString.h.

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

Definition at line 40 of file CachedHashString.h.

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

Member Function Documentation

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

Definition at line 46 of file CachedHashString.h.

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

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

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