Py::PythonExtension< T > Class Template Reference

#include <ExtensionOldType.hxx>

Inheritance diagram for Py::PythonExtension< T >:
Py::PythonExtensionBase Fem::SMESH_HypothesisPy< T >

List of all members.

Public Member Functions

virtual Object getattr (const char *name)
Object self ()
PyObjectselfPtr ()

Static Public Member Functions

static bool check (const Object &ob)
static bool check (PyObject *p)
static PyTypeObject * type_object ()

Protected Types

typedef Object(T::* method_keyword_function_t )(const Tuple &args, const Dict &kws)
typedef std::map< std::string,
MethodDefExt< T > * > 
method_map_t
typedef Object(T::* method_noargs_function_t )()
typedef Object(T::* method_varargs_function_t )(const Tuple &args)

Protected Member Functions

virtual Object getattr_default (const char *_name)
virtual Object getattr_methods (const char *_name)
 PythonExtension ()
virtual ~PythonExtension ()

Static Protected Member Functions

static void add_keyword_method (const char *name, method_keyword_function_t function, const char *doc="")
static void add_noargs_method (const char *name, method_noargs_function_t function, const char *doc="")
static void add_varargs_method (const char *name, method_varargs_function_t function, const char *doc="")
static PythonTypebehaviors ()
static void check_unique_method_name (const char *name)

Detailed Description

template<TEMPLATE_TYPENAME T>
class Py::PythonExtension< T >

Definition at line 43 of file ExtensionOldType.hxx.


Member Typedef Documentation

template<TEMPLATE_TYPENAME T>
typedef Object(T::* Py::PythonExtension< T >::method_keyword_function_t)(const Tuple &args, const Dict &kws) [protected]

Definition at line 114 of file ExtensionOldType.hxx.

template<TEMPLATE_TYPENAME T>
typedef std::map<std::string, MethodDefExt<T> *> Py::PythonExtension< T >::method_map_t [protected]

Definition at line 115 of file ExtensionOldType.hxx.

template<TEMPLATE_TYPENAME T>
typedef Object(T::* Py::PythonExtension< T >::method_noargs_function_t)() [protected]

Definition at line 112 of file ExtensionOldType.hxx.

template<TEMPLATE_TYPENAME T>
typedef Object(T::* Py::PythonExtension< T >::method_varargs_function_t)(const Tuple &args) [protected]

Definition at line 113 of file ExtensionOldType.hxx.


Constructor & Destructor Documentation

template<TEMPLATE_TYPENAME T>
Py::PythonExtension< T >::PythonExtension (  )  [inline, explicit, protected]

Definition at line 83 of file ExtensionOldType.hxx.

template<TEMPLATE_TYPENAME T>
virtual Py::PythonExtension< T >::~PythonExtension (  )  [inline, protected, virtual]

Definition at line 92 of file ExtensionOldType.hxx.


Member Function Documentation

template<TEMPLATE_TYPENAME T>
static void Py::PythonExtension< T >::add_keyword_method ( const char *  name,
method_keyword_function_t  function,
const char *  doc = "" 
) [inline, static, protected]

Definition at line 212 of file ExtensionOldType.hxx.

template<TEMPLATE_TYPENAME T>
static void Py::PythonExtension< T >::add_noargs_method ( const char *  name,
method_noargs_function_t  function,
const char *  doc = "" 
) [inline, static, protected]

Definition at line 198 of file ExtensionOldType.hxx.

template<TEMPLATE_TYPENAME T>
static void Py::PythonExtension< T >::add_varargs_method ( const char *  name,
method_varargs_function_t  function,
const char *  doc = "" 
) [inline, static, protected]

Definition at line 205 of file ExtensionOldType.hxx.

Referenced by Fem::SMESH_HypothesisPy< T >::init_type().

template<TEMPLATE_TYPENAME T>
static PythonType& Py::PythonExtension< T >::behaviors (  )  [inline, static, protected]
template<TEMPLATE_TYPENAME T>
static bool Py::PythonExtension< T >::check ( const Object ob  )  [inline, static]

Definition at line 58 of file ExtensionOldType.hxx.

template<TEMPLATE_TYPENAME T>
static bool Py::PythonExtension< T >::check ( PyObject p  )  [inline, static]
template<TEMPLATE_TYPENAME T>
static void Py::PythonExtension< T >::check_unique_method_name ( const char *  name  )  [inline, static, protected]
template<TEMPLATE_TYPENAME T>
virtual Object Py::PythonExtension< T >::getattr ( const char *  name  )  [inline, virtual]

Reimplemented from Py::PythonExtensionBase.

Reimplemented in Gui::View3DInventorPy, Fem::SMESH_HypothesisPy< T >, Sandbox::DocumentProtectorPy, Sandbox::DocumentObjectProtectorPy, TestGui::UnitTestDialogPy, Fem::SMESH_HypothesisPy< StdMeshers_ProjectionSource2DPy >, Fem::SMESH_HypothesisPy< StdMeshers_QuadraticMeshPy >, Fem::SMESH_HypothesisPy< StdMeshers_ProjectionSource1DPy >, Fem::SMESH_HypothesisPy< StdMeshers_SegmentAroundVertex_0DPy >, Fem::SMESH_HypothesisPy< StdMeshers_NotConformAllowedPy >, Fem::SMESH_HypothesisPy< StdMeshers_LocalLengthPy >, Fem::SMESH_HypothesisPy< StdMeshers_Regular_1DPy >, Fem::SMESH_HypothesisPy< StdMeshers_NumberOfLayersPy >, Fem::SMESH_HypothesisPy< StdMeshers_MaxElementVolumePy >, Fem::SMESH_HypothesisPy< StdMeshers_StartEndLengthPy >, Fem::SMESH_HypothesisPy< StdMeshers_CompositeSegment_1DPy >, Fem::SMESH_HypothesisPy< StdMeshers_UseExisting_1DPy >, Fem::SMESH_HypothesisPy< StdMeshers_RadialPrism_3DPy >, Fem::SMESH_HypothesisPy< StdMeshers_NumberOfSegmentsPy >, Fem::SMESH_HypothesisPy< StdMeshers_Quadrangle_2DPy >, Fem::SMESH_HypothesisPy< StdMeshers_Projection_3DPy >, Fem::SMESH_HypothesisPy< StdMeshers_Projection_2DPy >, Fem::SMESH_HypothesisPy< StdMeshers_Projection_1DPy >, Fem::SMESH_HypothesisPy< StdMeshers_UseExisting_2DPy >, Fem::SMESH_HypothesisPy< StdMeshers_MEFISTO_2DPy >, Fem::SMESH_HypothesisPy< StdMeshers_Arithmetic1DPy >, Fem::SMESH_HypothesisPy< StdMeshers_Prism_3DPy >, Fem::SMESH_HypothesisPy< StdMeshers_LengthFromEdgesPy >, Fem::SMESH_HypothesisPy< StdMeshers_QuadranglePreferencePy >, Fem::SMESH_HypothesisPy< StdMeshers_MaxElementAreaPy >, Fem::SMESH_HypothesisPy< StdMeshers_SegmentLengthAroundVertexPy >, Fem::SMESH_HypothesisPy< StdMeshers_MaxLengthPy >, Fem::SMESH_HypothesisPy< StdMeshers_Hexa_3DPy >, Fem::SMESH_HypothesisPy< StdMeshers_AutomaticLengthPy >, Fem::SMESH_HypothesisPy< StdMeshers_LayerDistributionPy >, Fem::SMESH_HypothesisPy< StdMeshers_ProjectionSource3DPy >, Fem::SMESH_HypothesisPy< StdMeshers_TrianglePreferencePy >, and Fem::SMESH_HypothesisPy< StdMeshers_Deflection1DPy >.

Definition at line 67 of file ExtensionOldType.hxx.

Referenced by Gui::PythonDebuggerP::PythonDebuggerP().

template<TEMPLATE_TYPENAME T>
virtual Object Py::PythonExtension< T >::getattr_default ( const char *  _name  )  [inline, protected, virtual]

Definition at line 118 of file ExtensionOldType.hxx.

template<TEMPLATE_TYPENAME T>
virtual Object Py::PythonExtension< T >::getattr_methods ( const char *  _name  )  [inline, protected, virtual]
template<TEMPLATE_TYPENAME T>
Object Py::PythonExtension< T >::self (  )  [inline, virtual]

Implements Py::PythonExtensionBase.

Definition at line 77 of file ExtensionOldType.hxx.

template<TEMPLATE_TYPENAME T>
PyObject* Py::PythonExtension< T >::selfPtr (  )  [inline, virtual]

Implements Py::PythonExtensionBase.

Definition at line 72 of file ExtensionOldType.hxx.

template<TEMPLATE_TYPENAME T>
static PyTypeObject* Py::PythonExtension< T >::type_object (  )  [inline, static]

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

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