webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Namespaces | Macros | Typedefs | Functions | Variables
descriptor.cc File Reference
#include <Python.h>
#include <frameobject.h>
#include <string>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/dynamic_message.h>
#include <google/protobuf/pyext/descriptor.h>
#include <google/protobuf/pyext/descriptor_containers.h>
#include <google/protobuf/pyext/descriptor_pool.h>
#include <google/protobuf/pyext/message.h>
#include <google/protobuf/pyext/scoped_pyobject_ptr.h>

Classes

struct  google::protobuf::python::PyBaseDescriptor
 
struct  google::protobuf::python::PyFileDescriptor
 

Namespaces

 google
 
 google::protobuf
 
 google::protobuf::python
 
 google::protobuf::python::descriptor
 
 google::protobuf::python::message_descriptor
 
 google::protobuf::python::field_descriptor
 
 google::protobuf::python::enum_descriptor
 
 google::protobuf::python::enumvalue_descriptor
 
 google::protobuf::python::file_descriptor
 
 google::protobuf::python::oneof_descriptor
 

Macros

#define PyVarObject_HEAD_INIT(type, size)   PyObject_HEAD_INIT(type) size,
 
#define Py_TYPE(ob)   (((PyObject*)(ob))->ob_type)
 
#define ADD_FIELDDESC_CONSTANT(NAME)
 

Typedefs

typedef struct google::protobuf::python::PyBaseDescriptor google::protobuf::python::PyBaseDescriptor
 
typedef struct google::protobuf::python::PyFileDescriptor google::protobuf::python::PyFileDescriptor
 

Functions

PyObject * google::protobuf::python::PyString_FromCppString (const string &str)
 
bool google::protobuf::python::_CalledFromGeneratedFile (int stacklevel)
 
template<class DescriptorClass >
const FileDescriptor * google::protobuf::python::GetFileDescriptor (const DescriptorClass *descriptor)
 
template<>
const FileDescriptor * google::protobuf::python::GetFileDescriptor (const FileDescriptor *descriptor)
 
template<>
const FileDescriptor * google::protobuf::python::GetFileDescriptor (const EnumValueDescriptor *descriptor)
 
template<>
const FileDescriptor * google::protobuf::python::GetFileDescriptor (const OneofDescriptor *descriptor)
 
template<class DescriptorClass >
PyObject * google::protobuf::python::descriptor::NewInternedDescriptor (PyTypeObject *type, const DescriptorClass *descriptor, bool *was_created)
 
const voidgoogle::protobuf::python::PyDescriptor_AsVoidPtr (PyObject *obj)
 
PyObject * google::protobuf::python::PyMessageDescriptor_FromDescriptor (const Descriptor *message_descriptor)
 
const Descriptorgoogle::protobuf::python::PyMessageDescriptor_AsDescriptor (PyObject *obj)
 
PyObject * google::protobuf::python::PyFieldDescriptor_FromDescriptor (const FieldDescriptor *field_descriptor)
 
const FieldDescriptorgoogle::protobuf::python::PyFieldDescriptor_AsDescriptor (PyObject *obj)
 
PyObject * google::protobuf::python::PyEnumDescriptor_FromDescriptor (const EnumDescriptor *enum_descriptor)
 
const EnumDescriptorgoogle::protobuf::python::PyEnumDescriptor_AsDescriptor (PyObject *obj)
 
PyObject * google::protobuf::python::PyEnumValueDescriptor_FromDescriptor (const EnumValueDescriptor *enumvalue_descriptor)
 
PyObject * google::protobuf::python::PyFileDescriptor_FromDescriptor (const FileDescriptor *file_descriptor)
 
PyObject * google::protobuf::python::PyFileDescriptor_FromDescriptorWithSerializedPb (const FileDescriptor *file_descriptor, PyObject *serialized_pb)
 
const FileDescriptor * google::protobuf::python::PyFileDescriptor_AsDescriptor (PyObject *obj)
 
PyObject * google::protobuf::python::PyOneofDescriptor_FromDescriptor (const OneofDescriptor *oneof_descriptor)
 
bool google::protobuf::python::InitDescriptor ()
 

Variables

hash_map< const void *, PyObject * > google::protobuf::python::interned_descriptors
 
PyTypeObject google::protobuf::python::descriptor::PyBaseDescriptor_Type
 
PyTypeObject google::protobuf::python::PyMessageDescriptor_Type
 
PyTypeObject google::protobuf::python::PyFieldDescriptor_Type
 
PyTypeObject google::protobuf::python::PyEnumDescriptor_Type
 
PyTypeObject google::protobuf::python::PyEnumValueDescriptor_Type
 
PyTypeObject google::protobuf::python::PyFileDescriptor_Type
 
PyTypeObject google::protobuf::python::PyOneofDescriptor_Type
 

Macro Definition Documentation

◆ ADD_FIELDDESC_CONSTANT

#define ADD_FIELDDESC_CONSTANT (   NAME)
Value:
AddIntConstant( \
&PyFieldDescriptor_Type, #NAME, FieldDescriptor::NAME)
PyTypeObject PyFieldDescriptor_Type
Definition: descriptor.cc:918

◆ Py_TYPE

#define Py_TYPE (   ob)    (((PyObject*)(ob))->ob_type)

◆ PyVarObject_HEAD_INIT

#define PyVarObject_HEAD_INIT (   type,
  size 
)    PyObject_HEAD_INIT(type) size,