class PooledStringPtr
Declaration
class PooledStringPtr { /* full declaration omitted */ };
Description
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.
Declared at: llvm/include/llvm/Support/StringPool.h:78
Method Overview
- public PooledStringPtr()
- public PooledStringPtr(llvm::PooledStringPtr::entry_t * E)
- public PooledStringPtr(const llvm::PooledStringPtr & That)
- public inline const char * begin() const
- public void clear()
- public inline const char * end() const
- public inline bool operator bool() const
- public inline unsigned int size() const
- public ~PooledStringPtr()
Methods
¶PooledStringPtr()
PooledStringPtr()
Declared at: llvm/include/llvm/Support/StringPool.h:84
¶PooledStringPtr(llvm::PooledStringPtr::entry_t* E)
PooledStringPtr(llvm::PooledStringPtr::entry_t* E)
Declared at: llvm/include/llvm/Support/StringPool.h:86
Parameters
¶PooledStringPtr(const llvm::PooledStringPtr& That)
PooledStringPtr(const llvm::PooledStringPtr& That)
Declared at: llvm/include/llvm/Support/StringPool.h:90
Parameters
- const llvm::PooledStringPtr& That
¶inline const char* begin() const
inline const char* begin() const
Declared at: llvm/include/llvm/Support/StringPool.h:115
¶void clear()
void clear()
Declared at: llvm/include/llvm/Support/StringPool.h:103
¶inline const char* end() const
inline const char* end() const
Declared at: llvm/include/llvm/Support/StringPool.h:120
¶inline bool operator bool() const
inline bool operator bool() const
Declared at: llvm/include/llvm/Support/StringPool.h:131
¶inline unsigned int size() const
inline unsigned int size() const
Declared at: llvm/include/llvm/Support/StringPool.h:125
¶~PooledStringPtr()
~PooledStringPtr()
Declared at: llvm/include/llvm/Support/StringPool.h:113