LLVM API Documentation
#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) |
bool | operator!= (const PooledStringPtr &That) |
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.
|
inline |
Definition at line 84 of file StringPool.h.
|
inlineexplicit |
Definition at line 86 of file StringPool.h.
References llvm::StringMapEntry< ValueTy >::getValue().
|
inline |
Definition at line 90 of file StringPool.h.
References llvm::StringMapEntry< ValueTy >::getValue().
|
inline |
Definition at line 113 of file StringPool.h.
References clear().
|
inline |
Definition at line 115 of file StringPool.h.
References llvm::StringMapEntry< ValueTy >::getKeyData().
Referenced by operator*().
|
inline |
Definition at line 103 of file StringPool.h.
References llvm::StringMapEntry< ValueTy >::Destroy(), and llvm::StringMapEntry< ValueTy >::getValue().
Referenced by operator=(), and ~PooledStringPtr().
|
inline |
Definition at line 120 of file StringPool.h.
References llvm::StringMapEntry< ValueTy >::getKeyData(), and llvm::StringMapEntryBase::getKeyLength().
|
inline |
Definition at line 131 of file StringPool.h.
|
inline |
Definition at line 134 of file StringPool.h.
|
inline |
Definition at line 130 of file StringPool.h.
References begin().
|
inline |
Definition at line 94 of file StringPool.h.
References clear(), and llvm::StringMapEntry< ValueTy >::getValue().
|
inline |
Definition at line 133 of file StringPool.h.
|
inline |
Definition at line 125 of file StringPool.h.
References llvm::StringMapEntryBase::getKeyLength().