Lines Matching refs:PythonObject

82 class PythonObject {
84 PythonObject() : m_py_obj(nullptr) {} in PythonObject() function
86 PythonObject(PyRefType type, PyObject *py_obj) : m_py_obj(nullptr) { in PythonObject() function
90 PythonObject(const PythonObject &rhs) : m_py_obj(nullptr) { Reset(rhs); } in PythonObject() function
92 virtual ~PythonObject() { Reset(); } in ~PythonObject()
103 void Reset(const PythonObject &rhs) { in Reset()
116 void Reset(PyRefType type, const PythonObject &ref) = delete;
152 PythonObject &operator=(const PythonObject &other) {
163 static PythonObject ResolveNameWithDictionary(llvm::StringRef name,
172 PythonObject ResolveName(llvm::StringRef name) const;
180 PythonObject GetAttributeValue(llvm::StringRef attribute) const;
200 class PythonBytes : public PythonObject {
213 using PythonObject::Reset;
226 class PythonByteArray : public PythonObject {
239 using PythonObject::Reset;
252 class PythonString : public PythonObject {
265 using PythonObject::Reset;
278 class PythonInteger : public PythonObject {
290 using PythonObject::Reset;
301 class PythonList : public PythonObject {
314 using PythonObject::Reset;
320 PythonObject GetItemAtIndex(uint32_t index) const;
322 void SetItemAtIndex(uint32_t index, const PythonObject &object);
324 void AppendItem(const PythonObject &object);
329 class PythonTuple : public PythonObject {
336 PythonTuple(std::initializer_list<PythonObject> objects);
344 using PythonObject::Reset;
350 PythonObject GetItemAtIndex(uint32_t index) const;
352 void SetItemAtIndex(uint32_t index, const PythonObject &object);
357 class PythonDictionary : public PythonObject {
369 using PythonObject::Reset;
377 PythonObject GetItemForKey(const PythonObject &key) const;
378 void SetItemForKey(const PythonObject &key, const PythonObject &value);
383 class PythonModule : public PythonObject {
402 using PythonObject::Reset;
409 class PythonCallable : public PythonObject {
427 using PythonObject::Reset;
433 PythonObject operator()();
435 PythonObject operator()(std::initializer_list<PyObject *> args);
437 PythonObject operator()(std::initializer_list<PythonObject> args);
440 PythonObject operator()(const Arg &arg, Args... args) { in operator()
445 class PythonFile : public PythonObject {
456 using PythonObject::Reset;