LLVM API Documentation

Public Member Functions | Friends
llvm::TableGenStringKey Class Reference

List of all members.

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.

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

Definition at line 50 of file Record.cpp.


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