Home
last modified time | relevance | path

Searched refs:ScopedPyObjectPtr (Results 1 – 11 of 11) sorted by relevance

/third_party/protobuf/python/google/protobuf/pyext/
Ddescriptor_database.cc83 ScopedPyObjectPtr serialized_pb( in GetFileDescriptorProto()
113 ScopedPyObjectPtr py_descriptor(PyObject_CallMethod( in FindFileByName()
121 ScopedPyObjectPtr py_descriptor( in FindFileContainingSymbol()
133 ScopedPyObjectPtr py_method( in FindFileContainingExtension()
140 ScopedPyObjectPtr py_descriptor( in FindFileContainingExtension()
152 ScopedPyObjectPtr py_method( in FindAllExtensionNumbers()
159 ScopedPyObjectPtr py_list( in FindAllExtensionNumbers()
169 ScopedPyObjectPtr item(PySequence_GetItem(py_list.get(), i)); in FindAllExtensionNumbers()
Drepeated_scalar_container.cc70 if (ScopedPyObjectPtr(Append(self, value)) == NULL) { in InternalAssignRepeatedField()
106 ScopedPyObjectPtr py_index(PyLong_FromLong(index)); in AssignItem()
172 ScopedPyObjectPtr s(PyObject_Str(arg)); in AssignItem()
325 ScopedPyObjectPtr s(Item(pself, index)); in Subscript()
336 ScopedPyObjectPtr s(Item(pself, index)); in Subscript()
403 ScopedPyObjectPtr s(PyObject_Str(item)); in Subscript()
476 ScopedPyObjectPtr full_slice(PySlice_New(NULL, NULL, NULL)); in Subscript()
480 ScopedPyObjectPtr new_list(Subscript(pself, full_slice.get())); in Subscript()
502 ScopedPyObjectPtr iter(PyObject_GetIter(value)); in Subscript()
507 ScopedPyObjectPtr next; in Subscript()
[all …]
Drepeated_composite_container.cc117 if (ScopedPyObjectPtr(cmessage::MergeFrom(cmsg, value)) == nullptr) { in AddMessage()
129 ScopedPyObjectPtr py_cmsg(AddMessage(self, value)); in AppendMethod()
149 ScopedPyObjectPtr py_cmsg(AddMessage(self, value)); in Insert()
174 ScopedPyObjectPtr iter(PyObject_GetIter(value)); in Extend()
179 ScopedPyObjectPtr next; in Extend()
185 ScopedPyObjectPtr new_message(Add(self, NULL, NULL)); in Extend()
190 if (ScopedPyObjectPtr(cmessage::MergeFrom(new_cmessage, next.get())) == in Extend()
307 ScopedPyObjectPtr item(GetItem(self, i, len)); in Subscript()
316 ScopedPyObjectPtr py_index(PyLong_FromSsize_t(i)); in Subscript()
339 ScopedPyObjectPtr full_slice(PySlice_New(NULL, NULL, NULL)); in Subscript()
[all …]
Dmessage.cc131 ScopedPyObjectPtr property(NewFieldProperty(field_descriptor)); in AddDescriptors()
144 ScopedPyObjectPtr enum_type( in AddDescriptors()
150 ScopedPyObjectPtr wrapped(PyObject_CallFunctionObjArgs( in AddDescriptors()
164 ScopedPyObjectPtr value_number(PyInt_FromLong( in AddDescriptors()
183 ScopedPyObjectPtr extension_field(PyFieldDescriptor_FromDescriptor(field)); in AddDescriptors()
260 ScopedPyObjectPtr slots(PyTuple_New(0)); in New()
267 ScopedPyObjectPtr new_args; in New()
270 ScopedPyObjectPtr well_known_types(PyImport_ImportModule( in New()
292 ScopedPyObjectPtr result(PyType_Type.tp_new(type, new_args.get(), NULL)); in New()
400 ScopedPyObjectPtr result(PyDict_New()); in GetExtensionsByName()
[all …]
Dmessage_factory.cc85 ScopedPyObjectPtr owned_pool; in New()
166 ScopedPyObjectPtr py_descriptor( in GetOrCreateMessageClass()
172 ScopedPyObjectPtr args(Py_BuildValue( in GetOrCreateMessageClass()
180 ScopedPyObjectPtr message_class(PyObject_CallObject( in GetOrCreateMessageClass()
203 ScopedPyObjectPtr py_extended_class( in GetOrCreateMessageClass()
209 ScopedPyObjectPtr py_extension(PyFieldDescriptor_FromDescriptor(extension)); in GetOrCreateMessageClass()
213 ScopedPyObjectPtr result(cmessage::RegisterExtension( in GetOrCreateMessageClass()
Dmap_container.cc468 ScopedPyObjectPtr is_present(MapReflectionFriend::Contains(self, key)); in ScalarMapGet()
486 ScopedPyObjectPtr dict(PyDict_New()); in ScalarMapToStr()
490 ScopedPyObjectPtr key; in ScalarMapToStr()
491 ScopedPyObjectPtr value; in ScalarMapToStr()
725 ScopedPyObjectPtr dict(PyDict_New()); in MessageMapToStr()
729 ScopedPyObjectPtr key; in MessageMapToStr()
730 ScopedPyObjectPtr value; in MessageMapToStr()
763 ScopedPyObjectPtr is_present(MapReflectionFriend::Contains(self, key)); in MessageMapGet()
890 ScopedPyObjectPtr obj(PyType_GenericAlloc(&MapIterator_Type, 0)); in GetIterator()
996 ScopedPyObjectPtr containers(PyImport_ImportModule( in InitMapContainers()
[all …]
Ddescriptor_containers.cc354 ScopedPyObjectPtr value1(_NewObj_ByIndex(self, index)); in DescriptorSequence_Equal()
398 ScopedPyObjectPtr key(_NewKey_ByIndex(self, index)); in DescriptorMapping_Equal()
402 ScopedPyObjectPtr value1(_NewObj_ByIndex(self, index)); in DescriptorMapping_Equal()
477 ScopedPyObjectPtr list(PyList_New(count)); in Keys()
493 ScopedPyObjectPtr list(PyList_New(count)); in Values()
509 ScopedPyObjectPtr list(PyList_New(count)); in Items()
514 ScopedPyObjectPtr obj(PyTuple_New(2)); in Items()
625 ScopedPyObjectPtr list(PyObject_CallFunctionObjArgs( in SeqSubscript()
Dscoped_pyobject_ptr.h95 typedef ScopedPythonPtr<PyObject> ScopedPyObjectPtr; typedef
Dextension_dict.cc105 ScopedPyObjectPtr obj(PyType_GenericAlloc(&ExtensionIterator_Type, 0)); in GetIter()
182 ScopedPyObjectPtr message_class_handler( in subscript()
Ddescriptor_pool.cc463 ScopedPyObjectPtr result(PyList_New(extensions.size())); in FindAllExtensions()
622 ScopedPyObjectPtr serialized_pb( in Add()
Ddescriptor.cc250 ScopedPyObjectPtr value( in GetOrBuildOptions()
1888 ScopedPyObjectPtr obj(PyInt_FromLong(value->number())); in AddEnumValues()
1901 ScopedPyObjectPtr obj(PyInt_FromLong(value)); in AddIntConstant()