LLVM API Documentation

llvm::PooledStringPtr Class Reference

#include <StringPool.h>

Collaboration diagram for llvm::PooledStringPtr:
[legend]

List of all members.

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)


Detailed 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.

Definition at line 84 of file StringPool.h.


Constructor & Destructor Documentation

llvm::PooledStringPtr::PooledStringPtr (  )  [inline]

Definition at line 89 of file StringPool.h.

llvm::PooledStringPtr::PooledStringPtr ( entry_t *  E  )  [inline, explicit]

Definition at line 91 of file StringPool.h.

References llvm::StringMapEntry< ValueTy >::getValue().

llvm::PooledStringPtr::PooledStringPtr ( const PooledStringPtr &  That  )  [inline]

Definition at line 95 of file StringPool.h.

References llvm::StringMapEntry< ValueTy >::getValue().

llvm::PooledStringPtr::~PooledStringPtr (  )  [inline]

Definition at line 118 of file StringPool.h.

References clear().


Member Function Documentation

PooledStringPtr& llvm::PooledStringPtr::operator= ( const PooledStringPtr &  That  )  [inline]

Definition at line 99 of file StringPool.h.

References clear(), llvm::StringMapEntry< ValueTy >::getValue(), and S.

void llvm::PooledStringPtr::clear (  )  [inline]

const char* llvm::PooledStringPtr::begin (  )  const [inline]

Definition at line 120 of file StringPool.h.

References llvm::StringMapEntry< ValueTy >::getKeyData().

Referenced by operator*().

const char* llvm::PooledStringPtr::end (  )  const [inline]

unsigned llvm::PooledStringPtr::size (  )  const [inline]

Definition at line 130 of file StringPool.h.

References llvm::StringMapEntryBase::getKeyLength().

const char* llvm::PooledStringPtr::operator* (  )  const [inline]

Definition at line 135 of file StringPool.h.

References begin().

llvm::PooledStringPtr::operator bool (  )  const [inline]

Definition at line 136 of file StringPool.h.

bool llvm::PooledStringPtr::operator== ( const PooledStringPtr &  That  )  [inline]

Definition at line 138 of file StringPool.h.

References S.

bool llvm::PooledStringPtr::operator!= ( const PooledStringPtr &  That  )  [inline]

Definition at line 139 of file StringPool.h.

References S.


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