|
LLDB mainline
|
A class that automatically clears an SB object when it goes out of scope. More...
#include <SWIGPythonBridge.h>
Public Member Functions | |
| ScopedPythonObject (T *sb, swig_type_info *info) | |
| ~ScopedPythonObject () | |
| ScopedPythonObject (ScopedPythonObject &&rhs) | |
| ScopedPythonObject (const ScopedPythonObject &)=delete | |
| ScopedPythonObject & | operator= (const ScopedPythonObject &)=delete |
| ScopedPythonObject & | operator= (ScopedPythonObject &&)=delete |
| const PythonObject & | obj () const |
Private Attributes | |
| T * | m_sb |
| Private Attributes inherited from lldb_private::python::PythonObject | |
| PyObject * | m_py_obj = nullptr |
Additional Inherited Members | |
| Private Member Functions inherited from lldb_private::python::PythonObject | |
| PythonObject ()=default | |
| PythonObject (PyRefType type, PyObject *py_obj) | |
| PythonObject (const PythonObject &rhs) | |
| PythonObject (PythonObject &&rhs) | |
| ~PythonObject () | |
| void | Reset () |
| void | Dump (Stream &strm) const |
| PyObject * | get () const |
| PyObject * | release () |
| PythonObject & | operator= (PythonObject other) |
| PyObjectType | GetObjectType () const |
| PythonString | Repr () const |
| PythonString | Str () const |
| PythonObject | ResolveName (llvm::StringRef name) const |
| template<typename T> | |
| T | ResolveName (llvm::StringRef name) const |
| bool | HasAttribute (llvm::StringRef attribute) const |
| PythonObject | GetAttributeValue (llvm::StringRef attribute) const |
| bool | IsNone () const |
| bool | IsValid () const |
| bool | IsAllocated () const |
| operator bool () const | |
| template<typename T> | |
| T | AsType () const |
| StructuredData::ObjectSP | CreateStructuredObject () const |
| template<typename... T> | |
| llvm::Expected< PythonObject > | CallMethod (const char *name, const T &... t) const |
| template<typename... T> | |
| llvm::Expected< PythonObject > | Call (const T &... t) const |
| llvm::Expected< PythonObject > | GetAttribute (const llvm::Twine &name) const |
| llvm::Expected< PythonObject > | GetType () const |
| llvm::Expected< bool > | IsTrue () |
| llvm::Expected< long long > | AsLongLong () const |
| llvm::Expected< unsigned long long > | AsUnsignedLongLong () const |
| llvm::Expected< unsigned long long > | AsModuloUnsignedLongLong () const |
| llvm::Expected< bool > | IsInstance (const PythonObject &cls) |
| Static Private Member Functions inherited from lldb_private::python::PythonObject | |
| static PythonObject | ResolveNameWithDictionary (llvm::StringRef name, const PythonDictionary &dict) |
| template<typename T> | |
| static T | ResolveNameWithDictionary (llvm::StringRef name, const PythonDictionary &dict) |
A class that automatically clears an SB object when it goes out of scope.
Use for cases where the SB object points to a temporary/unowned entity.
Definition at line 43 of file SWIGPythonBridge.h.
|
inline |
Definition at line 45 of file SWIGPythonBridge.h.
References m_sb, lldb_private::python::PythonObject::PythonObject(), and lldb_private::python::ToSWIGHelper().
Referenced by operator=(), operator=(), ScopedPythonObject(), and ScopedPythonObject().
|
inline |
Definition at line 47 of file SWIGPythonBridge.h.
References m_sb.
|
inline |
Definition at line 51 of file SWIGPythonBridge.h.
References m_sb, lldb_private::python::PythonObject::PythonObject(), and ScopedPythonObject().
|
delete |
References ScopedPythonObject().
|
inline |
Definition at line 57 of file SWIGPythonBridge.h.
References lldb_private::python::PythonObject::PythonObject().
|
delete |
References ScopedPythonObject().
|
delete |
References ScopedPythonObject().
|
private |
Definition at line 60 of file SWIGPythonBridge.h.
Referenced by ScopedPythonObject(), ScopedPythonObject(), and ~ScopedPythonObject().