Py::GeometryT< T, PyT, valuePtr > Class Template Reference

This is a template class to provide wrapper classes for geometric classes like Base::Matrix4D, Base::Rotation and their Python binding classes. More...

#include <GeometryPyCXX.h>

Inheritance diagram for Py::GeometryT< T, PyT, valuePtr >:
Py::Object

List of all members.

Public Member Functions

virtual bool accepts (PyObject *pyob) const
 GeometryT (const Object &other)
 GeometryT (const T &v)
 GeometryT ()
 GeometryT (const GeometryT &ob)
 GeometryT (PyObject *pyob, bool owned)
const T & getValue () const
 operator T () const
GeometryToperator= (const T &v)
GeometryToperator= (PyObject *rhsp)
GeometryToperator= (const Object &rhs)

Detailed Description

template<class T, class PyT, T *(PyT::*)() const valuePtr>
class Py::GeometryT< T, PyT, valuePtr >

This is a template class to provide wrapper classes for geometric classes like Base::Matrix4D, Base::Rotation and their Python binding classes.

Since the class inherits from Py::Object it can be used in the same fashion as Py::String, Py::List, etc. to simplify the usage with them.

Author:
Werner Mayer

Definition at line 98 of file GeometryPyCXX.h.


Constructor & Destructor Documentation

template<class T , class PyT , T *(PyT::*)() const valuePtr>
Py::GeometryT< T, PyT, valuePtr >::GeometryT ( PyObject pyob,
bool  owned 
) [inline, explicit]

Definition at line 101 of file GeometryPyCXX.h.

References Py::Object::validate().

template<class T , class PyT , T *(PyT::*)() const valuePtr>
Py::GeometryT< T, PyT, valuePtr >::GeometryT ( const GeometryT< T, PyT, valuePtr > &  ob  )  [inline]

Definition at line 104 of file GeometryPyCXX.h.

References Py::Object::validate().

template<class T , class PyT , T *(PyT::*)() const valuePtr>
Py::GeometryT< T, PyT, valuePtr >::GeometryT (  )  [inline, explicit]

Definition at line 107 of file GeometryPyCXX.h.

References Py::Object::validate().

template<class T , class PyT , T *(PyT::*)() const valuePtr>
Py::GeometryT< T, PyT, valuePtr >::GeometryT ( const T &  v  )  [inline, explicit]

Definition at line 112 of file GeometryPyCXX.h.

References Py::Object::validate().

template<class T , class PyT , T *(PyT::*)() const valuePtr>
Py::GeometryT< T, PyT, valuePtr >::GeometryT ( const Object other  )  [inline]

Definition at line 117 of file GeometryPyCXX.h.

References Py::Object::validate().


Member Function Documentation

template<class T , class PyT , T *(PyT::*)() const valuePtr>
virtual bool Py::GeometryT< T, PyT, valuePtr >::accepts ( PyObject pyob  )  const [inline, virtual]

Reimplemented from Py::Object.

Definition at line 120 of file GeometryPyCXX.h.

Referenced by Base::PlacementPy::setRotation().

template<class T , class PyT , T *(PyT::*)() const valuePtr>
const T& Py::GeometryT< T, PyT, valuePtr >::getValue (  )  const [inline]

Definition at line 138 of file GeometryPyCXX.h.

References Py::Object::ptr().

template<class T , class PyT , T *(PyT::*)() const valuePtr>
Py::GeometryT< T, PyT, valuePtr >::operator T (  )  const [inline]

Definition at line 146 of file GeometryPyCXX.h.

References Py::Object::ptr().

template<class T , class PyT , T *(PyT::*)() const valuePtr>
GeometryT& Py::GeometryT< T, PyT, valuePtr >::operator= ( const T &  v  )  [inline]

Definition at line 133 of file GeometryPyCXX.h.

template<class T , class PyT , T *(PyT::*)() const valuePtr>
GeometryT& Py::GeometryT< T, PyT, valuePtr >::operator= ( PyObject rhsp  )  [inline]

Reimplemented from Py::Object.

Definition at line 127 of file GeometryPyCXX.h.

References Py::Object::ptr().

template<class T , class PyT , T *(PyT::*)() const valuePtr>
GeometryT& Py::GeometryT< T, PyT, valuePtr >::operator= ( const Object rhs  )  [inline]

Definition at line 123 of file GeometryPyCXX.h.


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

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