Py::PythonType Class Reference

#include <PythonType.hxx>

List of all members.

Public Member Functions

PythonTypedealloc (void(*f)(PyObject *))
PythonTypedoc (const char *d)
const char * getDoc () const
const char * getName () const
PythonTypename (const char *nam)
 PythonType (size_t base_size, int itemsize, const char *default_name)
bool readyType ()
PythonTypeset_methods (PyMethodDef *methods)
PythonTypeset_tp_dealloc (void(*tp_dealloc)(PyObject *))
PythonTypeset_tp_init (int(*tp_init)(PyObject *self, PyObject *args, PyObject *kwds))
PythonTypeset_tp_new (PyObject *(*tp_new)(PyTypeObject *subtype, PyObject *args, PyObject *kwds))
PythonTypesupportBufferType (void)
PythonTypesupportCall (void)
PythonTypesupportClass (void)
PythonTypesupportCompare (void)
PythonTypesupportGetattr (void)
PythonTypesupportGetattro (void)
PythonTypesupportHash (void)
PythonTypesupportIter (void)
PythonTypesupportMappingType (void)
PythonTypesupportNumberType (void)
PythonTypesupportPrint (void)
PythonTypesupportRepr (void)
PythonTypesupportRichCompare (void)
PythonTypesupportSequenceType (void)
PythonTypesupportSetattr (void)
PythonTypesupportSetattro (void)
PythonTypesupportStr (void)
PyTypeObject * type_object () const
virtual ~PythonType ()

Protected Member Functions

void init_buffer ()
void init_mapping ()
void init_number ()
void init_sequence ()

Protected Attributes

PyBufferProcs * buffer_table
PyMappingMethods * mapping_table
PyNumberMethods * number_table
PySequenceMethods * sequence_table
PyTypeObject * table

Detailed Description

Definition at line 43 of file PythonType.hxx.


Constructor & Destructor Documentation

Py::PythonType::PythonType ( size_t  base_size,
int  itemsize,
const char *  default_name 
)
Py::PythonType::~PythonType (  )  [virtual]

Member Function Documentation

PythonType & Py::PythonType::dealloc ( void(*)(PyObject *)  f  ) 

Definition at line 572 of file Python2/cxx_extensions.cxx.

References SketcherExample::f, and table.

PythonType & Py::PythonType::doc ( const char *  d  ) 

Definition at line 531 of file Python2/cxx_extensions.cxx.

References table.

const char * Py::PythonType::getDoc (  )  const

Definition at line 537 of file Python2/cxx_extensions.cxx.

References table.

const char * Py::PythonType::getName (  )  const

Definition at line 526 of file Python2/cxx_extensions.cxx.

References table.

void Py::PythonType::init_buffer (  )  [protected]
void Py::PythonType::init_mapping (  )  [protected]
void Py::PythonType::init_number (  )  [protected]
void Py::PythonType::init_sequence (  )  [protected]
PythonType & Py::PythonType::name ( const char *  nam  ) 

Definition at line 520 of file Python2/cxx_extensions.cxx.

References table.

bool Py::PythonType::readyType (  ) 

Definition at line 322 of file Python2/cxx_extensions.cxx.

References table.

PythonType & Py::PythonType::set_methods ( PyMethodDef *  methods  ) 

Definition at line 560 of file Python2/cxx_extensions.cxx.

References table.

Referenced by Py::PythonClass< PythonBaseClass >::add_method().

PythonType& Py::PythonType::set_tp_dealloc ( void(*)(PyObject *)  tp_dealloc  ) 
PythonType & Py::PythonType::set_tp_init ( int(*)(PyObject *self, PyObject *args, PyObject *kwds)  tp_init  ) 

Definition at line 548 of file Python2/cxx_extensions.cxx.

References table.

Referenced by Py::PythonClass< PythonBaseClass >::behaviors().

PythonType & Py::PythonType::set_tp_new ( PyObject *(*)(PyTypeObject *subtype, PyObject *args, PyObject *kwds)  tp_new  ) 

Definition at line 554 of file Python2/cxx_extensions.cxx.

References table.

Referenced by Py::PythonClass< PythonBaseClass >::behaviors().

PythonType & Py::PythonType::supportBufferType ( void   ) 
PythonType & Py::PythonType::supportCall ( void   ) 

Definition at line 640 of file Python2/cxx_extensions.cxx.

References Py::call_handler(), and table.

PythonType & Py::PythonType::supportClass ( void   ) 

Definition at line 566 of file Python2/cxx_extensions.cxx.

References table.

Referenced by Py::PythonClass< PythonBaseClass >::behaviors().

PythonType & Py::PythonType::supportCompare ( void   ) 

Definition at line 608 of file Python2/cxx_extensions.cxx.

References Py::compare_handler(), and table.

PythonType & Py::PythonType::supportGetattr ( void   ) 
PythonType & Py::PythonType::supportGetattro ( void   ) 
PythonType & Py::PythonType::supportHash ( void   ) 

Definition at line 634 of file Python2/cxx_extensions.cxx.

References Py::hash_handler(), and table.

PythonType & Py::PythonType::supportIter ( void   ) 

Definition at line 646 of file Python2/cxx_extensions.cxx.

References Py::iter_handler(), Py::iternext_handler(), and table.

PythonType & Py::PythonType::supportMappingType ( void   ) 
PythonType & Py::PythonType::supportNumberType ( void   ) 
PythonType & Py::PythonType::supportPrint ( void   ) 

Definition at line 578 of file Python2/cxx_extensions.cxx.

References Py::print_handler(), and table.

PythonType & Py::PythonType::supportRepr ( void   ) 

Definition at line 622 of file Python2/cxx_extensions.cxx.

References Py::repr_handler(), and table.

PythonType& Py::PythonType::supportRichCompare ( void   ) 
PythonType & Py::PythonType::supportSequenceType ( void   ) 
PythonType & Py::PythonType::supportSetattr ( void   ) 

Definition at line 590 of file Python2/cxx_extensions.cxx.

References Py::setattr_handler(), and table.

PythonType & Py::PythonType::supportSetattro ( void   ) 
PythonType & Py::PythonType::supportStr ( void   ) 

Definition at line 628 of file Python2/cxx_extensions.cxx.

References Py::str_handler(), and table.

PyTypeObject * Py::PythonType::type_object (  )  const

Member Data Documentation

PyBufferProcs* Py::PythonType::buffer_table [protected]

Definition at line 103 of file PythonType.hxx.

Referenced by supportBufferType(), and ~PythonType().

PyMappingMethods* Py::PythonType::mapping_table [protected]

Definition at line 101 of file PythonType.hxx.

Referenced by supportMappingType(), and ~PythonType().

PyNumberMethods* Py::PythonType::number_table [protected]

Definition at line 102 of file PythonType.hxx.

Referenced by supportNumberType(), and ~PythonType().

PySequenceMethods* Py::PythonType::sequence_table [protected]

Definition at line 100 of file PythonType.hxx.

Referenced by supportSequenceType(), and ~PythonType().

PyTypeObject* Py::PythonType::table [protected]

The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:44 2011 for FreeCAD by  doxygen 1.6.1