LLDB mainline
SBScriptObject.h
Go to the documentation of this file.
1//===-- SBScriptObject.h ----------------------------------------*- C++ -*-===//
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
9#ifndef LLDB_API_SBSCRIPTOBJECT_H
10#define LLDB_API_SBSCRIPTOBJECT_H
11
12#include "lldb/API/SBDefines.h"
13
14namespace lldb_private {
15class ScriptObject;
16}
17
18namespace lldb {
19
21public:
23
25
27
29
30 explicit operator bool() const;
31
32 bool operator!=(const SBScriptObject &rhs) const;
33
34 bool IsValid() const;
35
37
39
40protected:
41 friend class SBStructuredData;
42
44
46
47 const lldb_private::ScriptObject &ref() const;
48
49private:
50 std::unique_ptr<lldb_private::ScriptObject> m_opaque_up;
51};
52
53} // namespace lldb
54
55#endif // LLDB_API_SBSCRIPTOBJECT_H
#define LLDB_API
Definition SBDefines.h:28
lldb::ScriptLanguage GetLanguage() const
friend class SBStructuredData
lldb::ScriptObjectPtr GetPointer() const
SBScriptObject(const ScriptObjectPtr ptr, lldb::ScriptLanguage lang)
lldb_private::ScriptObject & ref()
bool operator!=(const SBScriptObject &rhs) const
lldb_private::ScriptObject * get()
const lldb::SBScriptObject & operator=(const lldb::SBScriptObject &rhs)
std::unique_ptr< lldb_private::ScriptObject > m_opaque_up
A class that represents a running process on the host machine.
ScriptLanguage
Script interpreter types.
void * ScriptObjectPtr
Definition lldb-types.h:78