LLDB mainline
ModuleChild.cpp
Go to the documentation of this file.
1//===-- ModuleChild.cpp ---------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
10
11using namespace lldb_private;
12
14 : m_module_wp(module_sp) {}
15
17
19 if (this != &rhs)
21 return *this;
22}
23
25
26void ModuleChild::SetModule(const lldb::ModuleSP &module_sp) {
27 m_module_wp = module_sp;
28}
A mix in class that contains a pointer back to the module that owns the object which inherits from it...
Definition: ModuleChild.h:19
const ModuleChild & operator=(const ModuleChild &rhs)
Assignment operator.
Definition: ModuleChild.cpp:18
ModuleChild(const lldb::ModuleSP &module_sp)
Construct with owning module.
Definition: ModuleChild.cpp:13
void SetModule(const lldb::ModuleSP &module_sp)
Set accessor for the module pointer.
Definition: ModuleChild.cpp:26
lldb::ModuleWP m_module_wp
The Module that owns the object that inherits from this class.
Definition: ModuleChild.h:56
lldb::ModuleSP GetModule() const
Get const accessor for the module pointer.
Definition: ModuleChild.cpp:24
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::Module > ModuleSP
Definition: lldb-forward.h:371