python-2.7.6/include/setobject.h File Reference

setobject.h File Reference

Classes

struct  setentry
 
struct  _setobject
 

Macros

#define PySet_MINSIZE   8
 
#define PyFrozenSet_CheckExact(ob)   (Py_TYPE(ob) == &PyFrozenSet_Type)
 
#define PyAnySet_CheckExact(ob)   (Py_TYPE(ob) == &PySet_Type || Py_TYPE(ob) == &PyFrozenSet_Type)
 
#define PyAnySet_Check(ob)
 
#define PySet_Check(ob)
 
#define PyFrozenSet_Check(ob)
 
#define PySet_GET_SIZE(so)   (((PySetObject *)(so))->used)
 

Typedefs

typedef struct _setobject PySetObject
 

Functions

 PyAPI_DATA (PyTypeObject) PySet_Type
 
 PyAPI_FUNC (PyObject *) PySet_New(PyObject *)
 
 PyAPI_FUNC (Py_ssize_t) PySet_Size(PyObject *anyset)
 

Variables

PyObjectkey
 
Py_ssize_tpos
 
Py_ssize_t PyObject longhash
 
PyObjectiterable
 

Macro Definition Documentation

#define PyAnySet_Check (   ob)
Value:
(Py_TYPE(ob) == &PySet_Type || Py_TYPE(ob) == &PyFrozenSet_Type || \
PyType_IsSubtype(Py_TYPE(ob), &PySet_Type) || \
PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type))
PyObject * ob
Definition: abstract.h:1195
#define Py_TYPE(ob)
Definition: object.h:115

Definition at line 72 of file setobject.h.

#define PyAnySet_CheckExact (   ob)    (Py_TYPE(ob) == &PySet_Type || Py_TYPE(ob) == &PyFrozenSet_Type)

Definition at line 70 of file setobject.h.

#define PyFrozenSet_Check (   ob)
Value:
(Py_TYPE(ob) == &PyFrozenSet_Type || \
PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type))
PyObject * ob
Definition: abstract.h:1195
#define Py_TYPE(ob)
Definition: object.h:115

Definition at line 79 of file setobject.h.

#define PyFrozenSet_CheckExact (   ob)    (Py_TYPE(ob) == &PyFrozenSet_Type)

Definition at line 69 of file setobject.h.

#define PySet_Check (   ob)
Value:
(Py_TYPE(ob) == &PySet_Type || \
PyType_IsSubtype(Py_TYPE(ob), &PySet_Type))
PyObject * ob
Definition: abstract.h:1195
#define Py_TYPE(ob)
Definition: object.h:115

Definition at line 76 of file setobject.h.

#define PySet_GET_SIZE (   so)    (((PySetObject *)(so))->used)

Definition at line 86 of file setobject.h.

#define PySet_MINSIZE   8

Definition at line 22 of file setobject.h.

Typedef Documentation

typedef struct _setobject PySetObject

Definition at line 34 of file setobject.h.

Function Documentation

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

Variable Documentation

Definition at line 92 of file setobject.h.

PyObject* iterable

Definition at line 94 of file setobject.h.

Definition at line 88 of file setobject.h.

Py_ssize_t* pos

Definition at line 91 of file setobject.h.

Go to the source code of this file.