LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::PooledStringPtr Class Reference

#include <StringPool.h>

Public Member Functions

 PooledStringPtr ()
 
 PooledStringPtr (entry_t *E)
 
 PooledStringPtr (const PooledStringPtr &That)
 
PooledStringPtroperator= (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 79 of file StringPool.h.

Constructor & Destructor Documentation

llvm::PooledStringPtr::PooledStringPtr ( )
inline

Definition at line 84 of file StringPool.h.

llvm::PooledStringPtr::PooledStringPtr ( entry_t E)
inlineexplicit

Definition at line 86 of file StringPool.h.

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

llvm::PooledStringPtr::PooledStringPtr ( const PooledStringPtr That)
inline

Definition at line 90 of file StringPool.h.

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

llvm::PooledStringPtr::~PooledStringPtr ( )
inline

Definition at line 113 of file StringPool.h.

References clear().

Member Function Documentation

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

Definition at line 115 of file StringPool.h.

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

Referenced by operator*().

void llvm::PooledStringPtr::clear ( )
inline
const char* llvm::PooledStringPtr::end ( ) const
inline
llvm::PooledStringPtr::operator bool ( ) const
inline

Definition at line 131 of file StringPool.h.

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

Definition at line 134 of file StringPool.h.

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

Definition at line 130 of file StringPool.h.

References begin().

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

Definition at line 94 of file StringPool.h.

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

bool llvm::PooledStringPtr::operator== ( const PooledStringPtr That)
inline

Definition at line 133 of file StringPool.h.

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

Definition at line 125 of file StringPool.h.

References llvm::StringMapEntryBase::getKeyLength().


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