LLVM
8.0.1
|
PooledStringPtr - A pointer to an interned string. More...
#include "llvm/Support/StringPool.h"
Public Member Functions | |
PooledStringPtr ()=default | |
PooledStringPtr (entry_t *E) | |
PooledStringPtr (const PooledStringPtr &That) | |
PooledStringPtr & | operator= (const PooledStringPtr &That) |
void | clear () |
~PooledStringPtr () | |
const char * | begin () const |
const char * | end () const |
unsigned | size () const |
const char * | operator* () const |
operator bool () const | |
bool | operator== (const PooledStringPtr &That) const |
bool | operator!= (const PooledStringPtr &That) const |
PooledStringPtr - A pointer to an interned string.
Use operator bool to test whether the pointer is valid, and operator * to get the string if so. This is a lightweight value class with storage requirements equivalent to a single pointer, but it does have reference-counting overhead when copied.
Definition at line 79 of file StringPool.h.
|
default |
|
inlineexplicit |
Definition at line 87 of file StringPool.h.
References llvm::StringMapEntry< ValueTy >::getValue().
|
inline |
Definition at line 91 of file StringPool.h.
References llvm::StringMapEntry< ValueTy >::getValue().
|
inline |
Definition at line 114 of file StringPool.h.
References clear().
Definition at line 116 of file StringPool.h.
References assert(), and llvm::StringMapEntry< ValueTy >::getKeyData().
|
inline |
Definition at line 104 of file StringPool.h.
References llvm::StringMapEntry< ValueTy >::Destroy(), and llvm::StringMapEntry< ValueTy >::getValue().
Definition at line 121 of file StringPool.h.
References assert(), llvm::StringMapEntry< ValueTy >::getKeyData(), and llvm::StringMapEntryBase::getKeyLength().
|
inlineexplicit |
Definition at line 132 of file StringPool.h.
|
inline |
Definition at line 135 of file StringPool.h.
Definition at line 131 of file StringPool.h.
References llvm::sys::path::begin().
|
inline |
Definition at line 95 of file StringPool.h.
References clear(), and llvm::StringMapEntry< ValueTy >::getValue().
|
inline |
Definition at line 134 of file StringPool.h.
|
inline |
Definition at line 126 of file StringPool.h.
References assert(), and llvm::StringMapEntryBase::getKeyLength().