|
LLVM
3.7.0
|
PooledStringPtr - A pointer to an interned string. More...
#include <StringPool.h>
Public Member Functions | |
| PooledStringPtr () | |
| 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 78 of file StringPool.h.
|
inline |
Definition at line 83 of file StringPool.h.
|
inlineexplicit |
Definition at line 85 of file StringPool.h.
References llvm::StringMapEntry< ValueTy >::getValue().
|
inline |
Definition at line 89 of file StringPool.h.
References llvm::StringMapEntry< ValueTy >::getValue().
|
inline |
Definition at line 112 of file StringPool.h.
References clear().
|
inline |
Definition at line 114 of file StringPool.h.
References llvm::StringMapEntry< ValueTy >::getKeyData().
Referenced by operator*().
|
inline |
Definition at line 102 of file StringPool.h.
References llvm::StringMapEntry< ValueTy >::Destroy(), and llvm::StringMapEntry< ValueTy >::getValue().
Referenced by operator=(), and ~PooledStringPtr().
|
inline |
Definition at line 119 of file StringPool.h.
References llvm::StringMapEntry< ValueTy >::getKeyData(), and llvm::StringMapEntryBase::getKeyLength().
|
inlineexplicit |
Definition at line 130 of file StringPool.h.
|
inline |
Definition at line 133 of file StringPool.h.
|
inline |
Definition at line 129 of file StringPool.h.
References begin().
|
inline |
Definition at line 93 of file StringPool.h.
References clear(), and llvm::StringMapEntry< ValueTy >::getValue().
|
inline |
Definition at line 132 of file StringPool.h.
|
inline |
Definition at line 124 of file StringPool.h.
References llvm::StringMapEntryBase::getKeyLength().
1.8.6