LLDB mainline
lldb_private::ScriptedMetadata Class Reference

#include <ScriptedMetadata.h>

Public Member Functions

 ScriptedMetadata (llvm::StringRef class_name, StructuredData::DictionarySP dict_sp)
 ScriptedMetadata (const ProcessInfo &process_info)
 ScriptedMetadata (const ScriptedMetadata &other)=default
ScriptedMetadata & operator= (const ScriptedMetadata &other)=default
 operator bool () const
llvm::StringRef GetClassName () const
StructuredData::DictionarySP GetArgsSP () const
const FileSpec & GetSourcePath () const
void SetSourcePath (const FileSpec &source_path)
uint32_t GetHash () const
 Get a unique identifier for this metadata based on its contents.

Private Attributes

std::string m_class_name
StructuredData::DictionarySP m_args_sp
FileSpec m_source_path

Detailed Description

Definition at line 19 of file ScriptedMetadata.h.

Constructor & Destructor Documentation

◆ ScriptedMetadata() [1/3]

lldb_private::ScriptedMetadata::ScriptedMetadata ( llvm::StringRef class_name,
StructuredData::DictionarySP dict_sp )
inline

Definition at line 21 of file ScriptedMetadata.h.

References m_args_sp, and m_class_name.

Referenced by operator=(), and ScriptedMetadata().

◆ ScriptedMetadata() [2/3]

lldb_private::ScriptedMetadata::ScriptedMetadata ( const ProcessInfo & process_info)
inline

◆ ScriptedMetadata() [3/3]

lldb_private::ScriptedMetadata::ScriptedMetadata ( const ScriptedMetadata & other)
default

References ScriptedMetadata().

Member Function Documentation

◆ GetArgsSP()

◆ GetClassName()

llvm::StringRef lldb_private::ScriptedMetadata::GetClassName ( ) const
inline

◆ GetHash()

uint32_t lldb_private::ScriptedMetadata::GetHash ( ) const
inline

Get a unique identifier for this metadata based on its contents.

The ID is computed from the class name and arguments dictionary, not from the pointer address, so two metadata objects with the same contents will have the same ID.

Definition at line 51 of file ScriptedMetadata.h.

References lldb_private::StreamString::GetData(), m_args_sp, and m_class_name.

◆ GetSourcePath()

const FileSpec & lldb_private::ScriptedMetadata::GetSourcePath ( ) const
inline

Definition at line 42 of file ScriptedMetadata.h.

References m_source_path.

◆ operator bool()

lldb_private::ScriptedMetadata::operator bool ( ) const
inlineexplicit

Definition at line 37 of file ScriptedMetadata.h.

References m_class_name.

◆ operator=()

ScriptedMetadata & lldb_private::ScriptedMetadata::operator= ( const ScriptedMetadata & other)
default

References ScriptedMetadata().

◆ SetSourcePath()

void lldb_private::ScriptedMetadata::SetSourcePath ( const FileSpec & source_path)
inline

Definition at line 43 of file ScriptedMetadata.h.

References m_source_path.

Member Data Documentation

◆ m_args_sp

StructuredData::DictionarySP lldb_private::ScriptedMetadata::m_args_sp
private

Definition at line 71 of file ScriptedMetadata.h.

Referenced by GetArgsSP(), GetHash(), ScriptedMetadata(), and ScriptedMetadata().

◆ m_class_name

std::string lldb_private::ScriptedMetadata::m_class_name
private

◆ m_source_path

FileSpec lldb_private::ScriptedMetadata::m_source_path
private

Definition at line 72 of file ScriptedMetadata.h.

Referenced by GetSourcePath(), ScriptedMetadata(), and SetSourcePath().


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