Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Classes | Macros | Typedefs | Functions | Variables
weakrefobject.h File Reference

Go to the source code of this file.

Classes

struct  _PyWeakReference
 

Macros

#define PyWeakref_CheckRef(op)   PyObject_TypeCheck(op, &_PyWeakref_RefType)
 
#define PyWeakref_CheckRefExact(op)   (Py_TYPE(op) == &_PyWeakref_RefType)
 
#define PyWeakref_CheckProxy(op)
 
#define PyWeakref_Check(op)   (PyWeakref_CheckRef(op) || PyWeakref_CheckProxy(op))
 
#define PyWeakref_GET_OBJECT(ref)
 

Typedefs

typedef struct _PyWeakReference PyWeakReference
 

Functions

 PyAPI_DATA (PyTypeObject) _PyWeakref_RefType
 
 PyAPI_FUNC (PyObject *) PyWeakref_NewRef(PyObject *ob
 
 PyAPI_FUNC (Py_ssize_t) _PyWeakref_GetWeakrefCount(PyWeakReference *head)
 
 PyAPI_FUNC (void) _PyWeakref_ClearRef(PyWeakReference *self)
 

Variables

PyObjectcallback
 

Macro Definition Documentation

#define PyWeakref_Check (   op)    (PyWeakref_CheckRef(op) || PyWeakref_CheckProxy(op))
#define PyWeakref_CheckProxy (   op)
Value:
((Py_TYPE(op) == &_PyWeakref_ProxyType) || \
(Py_TYPE(op) == &_PyWeakref_CallableProxyType))
#define PyWeakref_CheckRef (   op)    PyObject_TypeCheck(op, &_PyWeakref_RefType)
#define PyWeakref_CheckRefExact (   op)    (Py_TYPE(op) == &_PyWeakref_RefType)
#define PyWeakref_GET_OBJECT (   ref)
Value:
(Py_REFCNT(((PyWeakReference *)(ref))->wr_object) > 0 \
? ((PyWeakReference *)(ref))->wr_object \

Typedef Documentation

Function Documentation

PyAPI_DATA ( PyTypeObject  )
PyAPI_FUNC ( PyObject )
read
PyAPI_FUNC ( Py_ssize_t  )
PyAPI_FUNC ( void  )

Variable Documentation

PyObject * callback

Copyright 2014 Google Inc. All rights reserved.