clang  6.0.0svn
Public Member Functions | Friends | List of all members
clang::serialization::DeclarationNameKey Class Reference

A key used when looking up entities by DeclarationName. More...

#include "clang/Serialization/ASTBitCodes.h"

Public Member Functions

 DeclarationNameKey ()
 
 DeclarationNameKey (DeclarationName Name)
 
 DeclarationNameKey (NameKind Kind, uint64_t Data)
 
NameKind getKind () const
 
IdentifierInfogetIdentifier () const
 
Selector getSelector () const
 
OverloadedOperatorKind getOperatorKind () const
 
unsigned getHash () const
 Compute a fingerprint of this key for use in on-disk hash table. More...
 

Friends

bool operator== (const DeclarationNameKey &A, const DeclarationNameKey &B)
 

Detailed Description

A key used when looking up entities by DeclarationName.

Different DeclarationNames are mapped to different keys, but the same key can occasionally represent multiple names (for names that contain types, in particular).

Definition at line 1645 of file ASTBitCodes.h.

Constructor & Destructor Documentation

◆ DeclarationNameKey() [1/3]

clang::serialization::DeclarationNameKey::DeclarationNameKey ( )
inline

◆ DeclarationNameKey() [2/3]

DeclarationNameKey::DeclarationNameKey ( DeclarationName  Name)

Definition at line 969 of file ASTReader.cpp.

◆ DeclarationNameKey() [3/3]

clang::serialization::DeclarationNameKey::DeclarationNameKey ( NameKind  Kind,
uint64_t  Data 
)
inline

Definition at line 1655 of file ASTBitCodes.h.

Member Function Documentation

◆ getHash()

unsigned DeclarationNameKey::getHash ( ) const

◆ getIdentifier()

IdentifierInfo* clang::serialization::DeclarationNameKey::getIdentifier ( ) const
inline

◆ getKind()

NameKind clang::serialization::DeclarationNameKey::getKind ( ) const
inline

Definition at line 1658 of file ASTBitCodes.h.

◆ getOperatorKind()

OverloadedOperatorKind clang::serialization::DeclarationNameKey::getOperatorKind ( ) const
inline

Definition at line 1672 of file ASTBitCodes.h.

References clang::DeclarationName::CXXOperatorName.

◆ getSelector()

Selector clang::serialization::DeclarationNameKey::getSelector ( ) const
inline

Friends And Related Function Documentation

◆ operator==

bool operator== ( const DeclarationNameKey A,
const DeclarationNameKey B 
)
friend

Definition at line 1680 of file ASTBitCodes.h.


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