LLDB  mainline
Public Member Functions | Protected Attributes | List of all members
lldb_private::ModuleChild Class Reference

A mix in class that contains a pointer back to the module that owns the object which inherits from it. More...

#include "lldb/Core/ModuleChild.h"

Inheritance diagram for lldb_private::ModuleChild:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::ModuleChild:
Collaboration graph
[legend]

Public Member Functions

 ModuleChild (const lldb::ModuleSP &module_sp)
 Construct with owning module. More...
 
 ~ModuleChild ()
 Destructor. More...
 
const ModuleChildoperator= (const ModuleChild &rhs)
 Assignment operator. More...
 
lldb::ModuleSP GetModule () const
 Get const accessor for the module pointer. More...
 
void SetModule (const lldb::ModuleSP &module_sp)
 Set accessor for the module pointer. More...
 

Protected Attributes

lldb::ModuleWP m_module_wp
 The Module that owns the object that inherits from this class. More...
 

Detailed Description

A mix in class that contains a pointer back to the module that owns the object which inherits from it.

Definition at line 19 of file ModuleChild.h.

Constructor & Destructor Documentation

◆ ModuleChild()

ModuleChild::ModuleChild ( const lldb::ModuleSP &  module_sp)

Construct with owning module.

Parameters
[in]module_spThe module that owns the object that inherits from this class.

Definition at line 13 of file ModuleChild.cpp.

Referenced by lldb_private::ObjectFile::ObjectFile().

◆ ~ModuleChild()

ModuleChild::~ModuleChild ( )

Destructor.

Definition at line 16 of file ModuleChild.cpp.

Member Function Documentation

◆ GetModule()

lldb::ModuleSP ModuleChild::GetModule ( ) const

Get const accessor for the module pointer.

Returns
A const pointer to the module that owns the object that inherits from this class.

Definition at line 24 of file ModuleChild.cpp.

References m_module_wp.

Referenced by PDBASTParser::AddRecordBases(), PDBASTParser::AddRecordMembers(), PDBASTParser::AddRecordMethod(), lldb_private::SymbolVendor::AddSymbolFileRepresentation(), ObjectFileMachO::CalculateSectionLoadAddressForMemoryImage(), lldb_private::CompileUnit::CalculateSymbolContext(), lldb_private::CompileUnit::CalculateSymbolContextModule(), lldb_private::Function::CalculateSymbolContextModule(), lldb_private::ObjectFile::ClearSymtab(), CompleteExternalTagDeclType(), DWARFASTParserClang::CompleteTypeFromDWARF(), lldb_private::SearchFilterByModuleListAndCU::CompUnitPasses(), lldb_private::LineTable::ConvertEntryAtIndexToLineEntry(), lldb_private::npdb::SymbolFileNativePDB::CreateConstantSymbol(), lldb_private::npdb::SymbolFileNativePDB::CreateFunction(), lldb_private::npdb::SymbolFileNativePDB::CreateLocalVariable(), lldb_private::breakpad::ObjectFileBreakpad::CreateSections(), lldb_private::wasm::ObjectFileWasm::CreateSections(), ObjectFileMachO::CreateSections(), lldb_private::Symtab::Dump(), ObjectFileJIT::Dump(), lldb_private::wasm::ObjectFileWasm::Dump(), ObjectFileMachO::Dump(), lldb_private::CompileUnit::DumpSymbolContext(), DWARFDebugInfoEntry::Extract(), lldb_private::DWARFCallFrameInfo::FDEToUnwindPlan(), lldb_private::LineTable::FindLineEntryByAddress(), lldb_private::CompileUnit::ForEachExternalModule(), ObjectFileMachO::GetArchitecture(), lldb_private::DWARFCallFrameInfo::GetCFIData(), ObjectFileMachO::GetCorefileMainBinaryInfo(), lldb_private::CompileUnit::GetDebugMacros(), ObjectFileMachO::GetDependentModules(), DWARFUnit::GetDIE(), DWARFDebugInfoEntry::GetDIENamesAndRanges(), ObjectFileMachO::GetEntryPointAddress(), SymbolFileDWARFDebugMap::CompileUnitInfo::GetFileRangeMap(), ObjectFileMachO::GetIdentifierString(), lldb_private::CompileUnit::GetImportedModules(), lldb_private::CompileUnit::GetIsOptimized(), lldb_private::CompileUnit::GetLanguage(), lldb_private::CompileUnit::GetLineTable(), ObjectFileMachO::GetMachHeaderSection(), lldb_private::SymbolFile::GetMainObjectFile(), DWARFBaseDIE::GetModule(), lldb_private::Type::GetModule(), SymbolFileDWARFDebugMap::GetModuleByCompUnitInfo(), lldb_private::ObjectFile::GetNextSyntheticSymbolName(), ObjectFileMachO::GetNumThreadContexts(), ObjectContainerUniversalMachO::GetObjectFile(), ObjectContainerBSDArchive::GetObjectFile(), GetRangesOrReportError(), ObjectFileMachO::GetSDKVersion(), lldb_private::ObjectFile::GetSectionList(), lldb_private::CompileUnit::GetSupportFiles(), ObjectFileJIT::GetSymtab(), ObjectFileMachO::GetSymtab(), ObjectFileMachO::GetThreadContextAtIndex(), lldb::SBCompileUnit::GetTypes(), ObjectFileMachO::GetUUID(), ObjectFileMachO::GetVersion(), ObjectFileMachO::IsStripped(), SymbolFileDWARFDebugMap::LinkOSOAddress(), DWARFASTParserClang::ParseChildMembers(), DWARFASTParserClang::ParseEnum(), ObjectContainerBSDArchive::ParseHeader(), ObjectFileMachO::ParseHeader(), DWARFASTParserClang::ParseSingleMember(), DWARFASTParserClang::ParseStructureLikeDIE(), DWARFASTParserClang::ParseSubroutine(), SymbolFileDWARF::ParseSupportFiles(), ObjectFileMachO::ParseSymtab(), DWARFASTParserClang::ParseTypeFromDWARF(), DWARFASTParserClang::ParseTypeModifier(), SymbolFileDWARF::ParseVariableDIE(), SymbolFileDWARF::ParseXcodeSDK(), lldb_private::IRExecutionUnit::PopulateSectionList(), ObjectFileMachO::ProcessSegmentCommand(), lldb_private::Target::ReadMemoryFromFileCache(), DWARFFormValue::Reference(), SymbolFilePDB::ResolveFunction(), SymbolFileDWARF::ResolveFunctionAndBlock(), DWARFASTParserClang::ResolveNamespaceDIE(), lldb_private::CompileUnit::ResolveSymbolContext(), ObjectFileMachO::SanitizeSegmentCommand(), lldb_private::CompactUnwindInfo::ScanIndex(), ObjectFileMachO::SectionIsLoadable(), ObjectFileMachO::SetLoadAddress(), lldb_private::wasm::ObjectFileWasm::SetLoadAddress(), DWARFUnit::SetLoclistsBase(), lldb_private::ObjectFile::SetModulesArchitecture(), DWARFUnit::SetRangesBase(), and lldb_private::Symtab::SymbolIndicesToSymbolContextList().

◆ operator=()

const ModuleChild & ModuleChild::operator= ( const ModuleChild rhs)

Assignment operator.

Parameters
[in]rhsA const ModuleChild class reference to copy.
Returns
A const reference to this object.

Definition at line 18 of file ModuleChild.cpp.

References m_module_wp.

◆ SetModule()

void ModuleChild::SetModule ( const lldb::ModuleSP &  module_sp)

Set accessor for the module pointer.

Parameters
[in]module_spA new module that owns the object that inherits from this class.

Definition at line 26 of file ModuleChild.cpp.

References m_module_wp.

Member Data Documentation

◆ m_module_wp

lldb::ModuleWP lldb_private::ModuleChild::m_module_wp
protected

The Module that owns the object that inherits from this class.

Definition at line 56 of file ModuleChild.h.

Referenced by GetModule(), operator=(), and SetModule().


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