|
LLDB mainline
|
#include <PythonDataObjects.h>
Public Member Functions | |
| PythonList () | |
| PythonList (PyInitialValue value) | |
| PythonList (int list_size) | |
| uint32_t | GetSize () const |
| PythonObject | GetItemAtIndex (uint32_t index) const |
| void | SetItemAtIndex (uint32_t index, const PythonObject &object) |
| void | AppendItem (const PythonObject &object) |
| StructuredData::ArraySP | CreateStructuredArray () const |
| TypedPythonObject (PyRefType type, PyObject *py_obj) | |
| TypedPythonObject ()=default | |
| Public Member Functions inherited from lldb_private::python::TypedPythonObject< PythonList > | |
| TypedPythonObject (PyRefType type, PyObject *py_obj) | |
| Public 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 Public Member Functions | |
| static bool | Check (PyObject *py_obj) |
| Static Public 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) |
Additional Inherited Members | |
| Protected Attributes inherited from lldb_private::python::PythonObject | |
| PyObject * | m_py_obj = nullptr |
Definition at line 503 of file PythonDataObjects.h.
|
inline |
Definition at line 507 of file PythonDataObjects.h.
References TypedPythonObject().
|
explicit |
Definition at line 524 of file PythonDataObjects.cpp.
References lldb_private::python::Empty, and lldb_private::python::Take().
|
explicit |
Definition at line 529 of file PythonDataObjects.cpp.
References lldb_private::python::Take().
| void PythonList::AppendItem | ( | const PythonObject & | object | ) |
Definition at line 560 of file PythonDataObjects.cpp.
References lldb_private::python::PythonObject::get(), lldb_private::python::PythonObject::IsAllocated(), lldb_private::python::PythonObject::IsValid(), and lldb_private::python::PythonObject::m_py_obj.
|
static |
Definition at line 533 of file PythonDataObjects.cpp.
Referenced by lldb_private::python::PythonObject::GetObjectType().
| StructuredData::ArraySP PythonList::CreateStructuredArray | ( | ) | const |
Definition at line 568 of file PythonDataObjects.cpp.
References lldb_private::python::PythonObject::CreateStructuredObject(), GetItemAtIndex(), and GetSize().
Referenced by lldb_private::python::PythonObject::CreateStructuredObject(), and ScriptedPythonInterface::ExtractValueFromPythonObject< StructuredData::ArraySP >().
| PythonObject PythonList::GetItemAtIndex | ( | uint32_t | index | ) | const |
Definition at line 545 of file PythonDataObjects.cpp.
References lldb_private::python::Borrowed, lldb_private::python::PythonObject::IsValid(), lldb_private::python::PythonObject::m_py_obj, and lldb_private::python::PythonObject::PythonObject().
Referenced by CreateStructuredArray(), and lldb_private::python::PythonDictionary::CreateStructuredDictionary().
| uint32_t PythonList::GetSize | ( | ) | const |
Definition at line 539 of file PythonDataObjects.cpp.
References lldb_private::python::PythonObject::IsValid(), and lldb_private::python::PythonObject::m_py_obj.
Referenced by CreateStructuredArray(), and lldb_private::python::PythonDictionary::CreateStructuredDictionary().
| void PythonList::SetItemAtIndex | ( | uint32_t | index, |
| const PythonObject & | object ) |
Definition at line 551 of file PythonDataObjects.cpp.
References lldb_private::python::PythonObject::get(), lldb_private::python::PythonObject::IsAllocated(), lldb_private::python::PythonObject::IsValid(), and lldb_private::python::PythonObject::m_py_obj.
|
default |
|
inline |
Definition at line 400 of file PythonDataObjects.h.
Referenced by PythonList().