• Home
  • Raw
  • Download

Lines Matching refs:PythonObject

37 template <> Expected<bool> python::As<bool>(Expected<PythonObject> &&obj) {  in As()
44 Expected<long long> python::As<long long>(Expected<PythonObject> &&obj) { in As()
52 python::As<unsigned long long>(Expected<PythonObject> &&obj) { in As()
59 Expected<std::string> python::As<std::string>(Expected<PythonObject> &&obj) { in As()
72 Expected<long long> PythonObject::AsLongLong() const { in AsLongLong()
88 Expected<long long> PythonObject::AsUnsignedLongLong() const { in AsUnsignedLongLong()
105 Expected<unsigned long long> PythonObject::AsModuloUnsignedLongLong() const { in AsModuloUnsignedLongLong()
127 void PythonObject::Dump(Stream &strm) const { in Dump()
147 PyObjectType PythonObject::GetObjectType() const { in GetObjectType()
178 PythonString PythonObject::Repr() const { in Repr()
187 PythonString PythonObject::Str() const { in Str()
196 PythonObject
197 PythonObject::ResolveNameWithDictionary(llvm::StringRef name, in ResolveNameWithDictionary()
201 PythonObject result = dict.GetItemForKey(PythonString(piece)); in ResolveNameWithDictionary()
212 PythonObject PythonObject::ResolveName(llvm::StringRef name) const { in ResolveName()
232 PythonObject parent = ResolveName(name.substr(0, dot_pos)); in ResolveName()
234 return PythonObject(); in ResolveName()
240 bool PythonObject::HasAttribute(llvm::StringRef attr) const { in HasAttribute()
247 PythonObject PythonObject::GetAttributeValue(llvm::StringRef attr) const { in GetAttributeValue()
249 return PythonObject(); in GetAttributeValue()
253 return PythonObject(); in GetAttributeValue()
255 return PythonObject(PyRefType::Owned, in GetAttributeValue()
259 StructuredData::ObjectSP PythonObject::CreateStructuredObject() const { in CreateStructuredObject()
593 PythonObject PythonList::GetItemAtIndex(uint32_t index) const { in GetItemAtIndex()
595 return PythonObject(PyRefType::Borrowed, PyList_GetItem(m_py_obj, index)); in GetItemAtIndex()
596 return PythonObject(); in GetItemAtIndex()
599 void PythonList::SetItemAtIndex(uint32_t index, const PythonObject &object) { in SetItemAtIndex()
608 void PythonList::AppendItem(const PythonObject &object) { in AppendItem()
620 PythonObject obj = GetItemAtIndex(i); in CreateStructuredArray()
637 PythonTuple::PythonTuple(std::initializer_list<PythonObject> objects) { in PythonTuple()
653 PythonObject object(PyRefType::Borrowed, py_object); in PythonTuple()
672 PythonObject PythonTuple::GetItemAtIndex(uint32_t index) const { in GetItemAtIndex()
674 return PythonObject(PyRefType::Borrowed, PyTuple_GetItem(m_py_obj, index)); in GetItemAtIndex()
675 return PythonObject(); in GetItemAtIndex()
678 void PythonTuple::SetItemAtIndex(uint32_t index, const PythonObject &object) { in SetItemAtIndex()
691 PythonObject obj = GetItemAtIndex(i); in CreateStructuredArray()
723 PythonObject PythonDictionary::GetItemForKey(const PythonObject &key) const { in GetItemForKey()
727 return PythonObject(); in GetItemForKey()
732 Expected<PythonObject>
733 PythonDictionary::GetItem(const PythonObject &key) const { in GetItem()
745 return Retain<PythonObject>(o); in GetItem()
748 Expected<PythonObject> PythonDictionary::GetItem(const Twine &key) const { in GetItem()
756 return Retain<PythonObject>(o); in GetItem()
759 Error PythonDictionary::SetItem(const PythonObject &key, in SetItem()
760 const PythonObject &value) const { in SetItem()
770 const PythonObject &value) const { in SetItem()
779 void PythonDictionary::SetItemForKey(const PythonObject &key, in SetItemForKey()
780 const PythonObject &value) { in SetItemForKey()
792 PythonObject key = keys.GetItemAtIndex(i); in CreateStructuredDictionary()
793 PythonObject value = GetItemForKey(key); in CreateStructuredDictionary()
822 Expected<PythonObject> PythonModule::Get(const Twine &name) { in Get()
831 return Retain<PythonObject>(item); in Get()
887 Expected<PythonObject> pyarginfo = get_arg_info(*this); in GetArgInfo()
913 PythonObject im_self = GetAttributeValue("im_self"); in GetArgInfo()
919 PythonObject __call__ = GetAttributeValue("__call__"); in GetArgInfo()
924 PythonObject im_self = __callable__.GetAttributeValue("im_self"); in GetArgInfo()
953 PythonObject PythonCallable::operator()() { in operator ()()
954 return PythonObject(PyRefType::Owned, PyObject_CallObject(m_py_obj, nullptr)); in operator ()()
957 PythonObject PythonCallable::
960 return PythonObject(PyRefType::Owned, in operator ()()
964 PythonObject PythonCallable::
965 operator()(std::initializer_list<PythonObject> args) { in operator ()()
967 return PythonObject(PyRefType::Owned, in operator ()()
1108 GetOptionsForPyObject(const PythonObject &obj) { in GetOptionsForPyObject()
1217 static Expected<PythonBuffer> Create(PythonObject &obj, in Create()
1308 auto pybuffer = Take<PythonObject>(pybuffer_p); in Write()
1568 Take<PythonObject>(o); in Init()
1577 llvm::Expected<PythonObject>
1593 auto code_ref = Take<PythonObject>(code); in runStringOneLine()
1605 return Take<PythonObject>(result); in runStringOneLine()
1608 llvm::Expected<PythonObject>
1618 return Take<PythonObject>(result); in runStringMultiLine()