LLVM  14.0.0git
Public Member Functions | Protected Member Functions | List of all members
llvm::HashBuilderBase< HasherT > Class Template Reference

Declares the hasher member, and functions forwarding directly to the hasher. More...

#include "llvm/Support/HashBuilder.h"

Inheritance diagram for llvm::HashBuilderBase< HasherT >:
Inheritance graph
[legend]

Public Member Functions

HasherT & getHasher ()
 
void update (ArrayRef< uint8_t > Data)
 Forward to HasherT::update(ArrayRef<uint8_t>). More...
 
void update (StringRef Data)
 Forward to HasherT::update(ArrayRef<uint8_t>). More...
 
template<typename HasherT_ = HasherT>
StringRef final ()
 Forward to HasherT::final() if available. More...
 
template<typename HasherT_ = HasherT>
StringRef result ()
 Forward to HasherT::result() if available. More...
 

Protected Member Functions

 HashBuilderBase (HasherT &Hasher)
 
template<typename... ArgTypes>
 HashBuilderBase (ArgTypes &&...Args)
 

Detailed Description

template<typename HasherT>
class llvm::HashBuilderBase< HasherT >

Declares the hasher member, and functions forwarding directly to the hasher.

Definition at line 40 of file HashBuilder.h.

Constructor & Destructor Documentation

◆ HashBuilderBase() [1/2]

template<typename HasherT >
llvm::HashBuilderBase< HasherT >::HashBuilderBase ( HasherT &  Hasher)
inlineexplicitprotected

Definition at line 72 of file HashBuilder.h.

◆ HashBuilderBase() [2/2]

template<typename HasherT >
template<typename... ArgTypes>
llvm::HashBuilderBase< HasherT >::HashBuilderBase ( ArgTypes &&...  Args)
inlineexplicitprotected

Definition at line 75 of file HashBuilder.h.

Member Function Documentation

◆ final()

template<typename HasherT >
template<typename HasherT_ = HasherT>
StringRef llvm::HashBuilderBase< HasherT >::final ( )
inline

Forward to HasherT::final() if available.

Definition at line 62 of file HashBuilder.h.

References llvm::HashBuilderBase< HasherT >::getHasher().

◆ getHasher()

template<typename HasherT >
HasherT& llvm::HashBuilderBase< HasherT >::getHasher ( )
inline

◆ result()

template<typename HasherT >
template<typename HasherT_ = HasherT>
StringRef llvm::HashBuilderBase< HasherT >::result ( )
inline

Forward to HasherT::result() if available.

Definition at line 67 of file HashBuilder.h.

References llvm::HashBuilderBase< HasherT >::getHasher().

◆ update() [1/2]

template<typename HasherT >
void llvm::HashBuilderBase< HasherT >::update ( ArrayRef< uint8_t >  Data)
inline

Forward to HasherT::update(ArrayRef<uint8_t>).

This may not take the size of Data into account. Users of this function should pay attention to respect endianness contraints.

Definition at line 49 of file HashBuilder.h.

References llvm::HashBuilderBase< HasherT >::getHasher().

Referenced by llvm::HashBuilderImpl< HasherT, Endianness >::add(), llvm::HashBuilderImpl< HasherT, Endianness >::adjustForEndiannessAndAdd(), and llvm::HashBuilderBase< HasherT >::update().

◆ update() [2/2]

template<typename HasherT >
void llvm::HashBuilderBase< HasherT >::update ( StringRef  Data)
inline

Forward to HasherT::update(ArrayRef<uint8_t>).

This may not take the size of Data into account. Users of this function should pay attention to respect endianness contraints.

Definition at line 56 of file HashBuilder.h.

References llvm::Data, llvm::makeArrayRef(), and llvm::HashBuilderBase< HasherT >::update().


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