LLDB mainline
lldb_private::StringPoolRef Class Reference

A handle to a StringPool that does not own it. More...

#include <StringPool.h>

Public Member Functions

 StringPoolRef ()
 Refers to the global pool.
 StringPoolRef (StringPool &pool)
const char * Intern (llvm::StringRef str) const
const char * InternNonEmpty (llvm::StringRef str) const
 Like Intern, but an empty string yields nullptr.

Private Attributes

StringPool * m_pool

Detailed Description

A handle to a StringPool that does not own it.

Definition at line 72 of file StringPool.h.

Constructor & Destructor Documentation

◆ StringPoolRef() [1/2]

lldb_private::StringPoolRef::StringPoolRef ( )
inline

Refers to the global pool.

Definition at line 75 of file StringPool.h.

References m_pool.

◆ StringPoolRef() [2/2]

lldb_private::StringPoolRef::StringPoolRef ( StringPool & pool)
inlineexplicit

Definition at line 76 of file StringPool.h.

References m_pool.

Member Function Documentation

◆ Intern()

◆ InternNonEmpty()

const char * lldb_private::StringPoolRef::InternNonEmpty ( llvm::StringRef str) const
inline

Member Data Documentation

◆ m_pool

StringPool* lldb_private::StringPoolRef::m_pool
private

Definition at line 86 of file StringPool.h.

Referenced by Intern(), StringPoolRef(), and StringPoolRef().


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