python-2.7.6/include/weakrefobject.h File Reference

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))

Definition at line 52 of file weakrefobject.h.

#define PyWeakref_CheckProxy (   op)
Value:
((Py_TYPE(op) == &_PyWeakref_ProxyType) || \
(Py_TYPE(op) == &_PyWeakref_CallableProxyType))
#define Py_TYPE(ob)
Definition: object.h:115

Definition at line 48 of file weakrefobject.h.

#define PyWeakref_CheckRef (   op)    PyObject_TypeCheck(op, &_PyWeakref_RefType)

Definition at line 45 of file weakrefobject.h.

#define PyWeakref_CheckRefExact (   op)    (Py_TYPE(op) == &_PyWeakref_RefType)

Definition at line 46 of file weakrefobject.h.

#define PyWeakref_GET_OBJECT (   ref)
Value:
(Py_REFCNT(((PyWeakReference *)(ref))->wr_object) > 0 \
? ((PyWeakReference *)(ref))->wr_object \
#define Py_REFCNT(ob)
Definition: object.h:114
#define Py_None
Definition: object.h:839

Definition at line 73 of file weakrefobject.h.

Typedef Documentation

Definition at line 10 of file weakrefobject.h.

Function Documentation

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

Variable Documentation

PyObject * callback
+ Examples:

Definition at line 57 of file weakrefobject.h.

Go to the source code of this file.