Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:42

0001 //===-- SBScriptObject.h ----------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_API_SBSCRIPTOBJECT_H
0010 #define LLDB_API_SBSCRIPTOBJECT_H
0011 
0012 #include "lldb/API/SBDefines.h"
0013 
0014 namespace lldb_private {
0015 class ScriptObject;
0016 }
0017 
0018 namespace lldb {
0019 
0020 class LLDB_API SBScriptObject {
0021 public:
0022   SBScriptObject(const ScriptObjectPtr ptr, lldb::ScriptLanguage lang);
0023 
0024   SBScriptObject(const lldb::SBScriptObject &rhs);
0025 
0026   ~SBScriptObject();
0027 
0028   const lldb::SBScriptObject &operator=(const lldb::SBScriptObject &rhs);
0029 
0030   explicit operator bool() const;
0031 
0032   bool operator!=(const SBScriptObject &rhs) const;
0033 
0034   bool IsValid() const;
0035 
0036   lldb::ScriptObjectPtr GetPointer() const;
0037 
0038   lldb::ScriptLanguage GetLanguage() const;
0039 
0040 protected:
0041   friend class SBStructuredData;
0042 
0043   lldb_private::ScriptObject *get();
0044 
0045   lldb_private::ScriptObject &ref();
0046 
0047   const lldb_private::ScriptObject &ref() const;
0048 
0049 private:
0050   std::unique_ptr<lldb_private::ScriptObject> m_opaque_up;
0051 };
0052 
0053 } // namespace lldb
0054 
0055 #endif // LLDB_API_SBSCRIPTOBJECT_H