LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Friends | List of all members
llvm::TableGenStringKey Class Reference

Public Member Functions

 TableGenStringKey (const std::string &str)
 
 TableGenStringKey (const char *str)
 
const std::string & str () const
 

Friends

hash_code hash_value (const TableGenStringKey &Value)
 

Detailed Description

TableGenStringKey - This is a wrapper for std::string suitable for using as a key to a DenseMap. Because there isn't a particularly good way to indicate tombstone or empty keys for strings, we want to wrap std::string to indicate that this is a "special" string not expected to take on certain values (those of the tombstone and empty keys). This makes things a little safer as it clarifies that DenseMap is really not appropriate for general strings.

Definition at line 43 of file Record.cpp.

Constructor & Destructor Documentation

llvm::TableGenStringKey::TableGenStringKey ( const std::string &  str)
inline

Definition at line 45 of file Record.cpp.

llvm::TableGenStringKey::TableGenStringKey ( const char *  str)
inline

Definition at line 46 of file Record.cpp.

Member Function Documentation

const std::string& llvm::TableGenStringKey::str ( ) const
inline

Definition at line 48 of file Record.cpp.

Referenced by llvm::DenseMapInfo< TableGenStringKey >::isEqual().

Friends And Related Function Documentation

hash_code hash_value ( const TableGenStringKey Value)
friend

Definition at line 50 of file Record.cpp.


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