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()

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

Definition at line 78 of file StringPool.h.

References m_pool.

Referenced by lldb::SBFrame::Disassemble(), lldb::SBEnvironment::Get(), lldb::SBTarget::GetABIName(), lldb::SBTarget::GetArchName(), lldb::SBProcessInfo::GetArg0(), lldb::SBLaunchInfo::GetArgumentAtIndex(), lldb::SBProcessInfo::GetArgumentAtIndex(), lldb::SBCommandInterpreter::GetArgumentDescriptionAsCString(), lldb::SBFunction::GetArgumentName(), lldb::SBCommandInterpreter::GetArgumentTypeAsCString(), lldb::SBPlatformShellCommand::GetCommand(), lldb::SBInstruction::GetComment(), lldb::SBBreakpoint::GetCondition(), lldb::SBBreakpointLocation::GetCondition(), lldb::SBBreakpointName::GetCondition(), lldb::SBWatchpoint::GetCondition(), lldb::SBProtocolServer::GetConnectionURI(), lldb::SBEvent::GetCStringFromEvent(), lldb::SBStream::GetData(), lldb::SBTypeSummary::GetData(), lldb::SBTypeSynthetic::GetData(), lldb::SBEvent::GetDataFlavor(), lldb::SBTypeMemberFunction::GetDemangledName(), lldb::SBFileSpec::GetDirectory(), lldb::SBFrame::GetDisplayFunctionName(), lldb::SBType::GetDisplayTypeName(), lldb::SBValue::GetDisplayTypeName(), lldb::SBLaunchInfo::GetEnvironmentEntryAtIndex(), lldb::SBTraceCursor::GetError(), lldb::SBTraceCursor::GetEventTypeAsString(), lldb::SBProcess::GetExitDescription(), lldb::SBTypeFilter::GetExpressionPathAtIndex(), lldb::SBFrame::GetFunctionName(), lldb::SBBreakpointName::GetHelpString(), lldb::SBPlatform::GetHostname(), lldb::SBLaunchInfo::GetLaunchEventData(), lldb::SBPlatformConnectOptions::GetLocalCacheDirectory(), lldb::SBValue::GetLocation(), lldb::SBTypeMemberFunction::GetMangledName(), lldb::SBTypeStaticField::GetMangledName(), lldb::SBInstruction::GetMnemonic(), lldb::SBBreakpointName::GetName(), lldb::SBBroadcaster::GetName(), lldb::SBProcessInfo::GetName(), lldb::SBSection::GetName(), lldb::SBThread::GetName(), lldb::SBType::GetName(), lldb::SBTypeCategory::GetName(), lldb::SBTypeEnumMember::GetName(), lldb::SBTypeMember::GetName(), lldb::SBTypeMemberFunction::GetName(), lldb::SBTypeNameSpecifier::GetName(), lldb::SBTypeStaticField::GetName(), lldb::SBValue::GetName(), lldb_private::QueueImpl::GetName(), lldb::SBEnvironment::GetNameAtIndex(), lldb::SBModuleSpec::GetObjectName(), lldb::SBInstruction::GetOperands(), lldb::SBPlatform::GetOSBuild(), lldb::SBPlatform::GetOSDescription(), lldb::SBPlatformShellCommand::GetOutput(), lldb::SBProcess::GetPluginName(), lldb::SBSaveCoreOptions::GetPluginName(), lldb::SBExpressionOptions::GetPrefix(), lldb::SBAttachInfo::GetProcessPluginName(), lldb::SBLaunchInfo::GetProcessPluginName(), lldb::SBBreakpoint::GetQueueName(), lldb::SBBreakpointLocation::GetQueueName(), lldb::SBBreakpointName::GetQueueName(), lldb::SBThread::GetQueueName(), lldb::SBProcess::GetRestartedReasonAtIndexFromEvent(), lldb::SBPlatformShellCommand::GetShell(), lldb::SBUnixSignals::GetSignalAsCString(), lldb::SBTrace::GetStartConfigurationHelp(), lldb::SBData::GetString(), lldb::SBStringList::GetStringAtIndex(), lldb::SBStringList::GetStringAtIndex(), lldb::SBValue::GetSummary(), lldb::SBValue::GetSummary(), lldb::SBBreakpoint::GetThreadName(), lldb::SBBreakpointLocation::GetThreadName(), lldb::SBBreakpointName::GetThreadName(), lldb::SBModule::GetTriple(), lldb::SBModuleSpec::GetTriple(), lldb::SBPlatform::GetTriple(), lldb::SBProcessInfo::GetTriple(), lldb::SBTarget::GetTriple(), lldb::SBTypeFormat::GetTypeName(), lldb::SBValue::GetTypeName(), lldb::SBPlatformConnectOptions::GetURL(), lldb::SBValue::GetValue(), lldb::SBEnvironment::GetValueAtIndex(), lldb::SBPlatformShellCommand::GetWorkingDirectory(), and InternNonEmpty().

◆ InternNonEmpty()

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

Like Intern, but an empty string yields nullptr.

Definition at line 81 of file StringPool.h.

References Intern().

Referenced by lldb::SBFunction::GetBaseName(), lldb::SBSymbol::GetBaseName(), lldb::SBCommandInterpreter::GetBroadcasterClass(), lldb::SBCommunication::GetBroadcasterClass(), lldb::SBDebugger::GetBroadcasterClass(), lldb::SBEvent::GetBroadcasterClass(), lldb::SBProcess::GetBroadcasterClass(), lldb::SBProcess::GetBroadcasterClassName(), lldb::SBTarget::GetBroadcasterClassName(), lldb::SBThread::GetBroadcasterClassName(), lldb::SBLanguageRuntime::GetCatchKeywordForLanguage(), lldb::SBFunction::GetDisplayName(), lldb::SBSymbol::GetDisplayName(), lldb::SBProcess::GetExtendedBacktraceTypeAtIndex(), lldb::SBFileSpec::GetFilename(), lldb::SBBlock::GetInlinedName(), lldb::SBTarget::GetLabel(), lldb::SBFunction::GetMangledName(), lldb::SBSymbol::GetMangledName(), lldb::SBFunction::GetName(), lldb::SBMemoryRegionInfo::GetName(), lldb::SBPlatform::GetName(), lldb::SBSymbol::GetName(), lldb::SBValue::GetObjectDescription(), lldb::SBModule::GetObjectName(), lldb::SBDebugger::GetProgressFromEvent(), lldb::SBAttachInfo::GetScriptedProcessClassName(), lldb::SBLaunchInfo::GetScriptedProcessClassName(), lldb::SBLaunchInfo::GetShell(), lldb::SBTarget::GetTargetSessionName(), lldb::SBLanguageRuntime::GetThrowKeywordForLanguage(), lldb::SBModule::GetUUIDString(), lldb::SBWatchpoint::GetWatchSpec(), lldb::SBLaunchInfo::GetWorkingDirectory(), and lldb::SBPlatform::GetWorkingDirectory().

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: