SyFi 0.3
swig::SwigPtr_PyObject Class Reference
Inheritance diagram for swig::SwigPtr_PyObject:
swig::SwigVar_PyObject

List of all members.

Public Member Functions

 SwigPtr_PyObject ()
 SwigPtr_PyObject (const SwigPtr_PyObject &item)
 SwigPtr_PyObject (PyObject *obj, bool initial_ref=true)
SwigPtr_PyObjectoperator= (const SwigPtr_PyObject &item)
 ~SwigPtr_PyObject ()
 operator PyObject * () const
PyObject * operator-> () const

Protected Attributes

PyObject * _obj

Detailed Description

Definition at line 2801 of file SyFi_wrap.cc.


Constructor & Destructor Documentation

swig::SwigPtr_PyObject::SwigPtr_PyObject ( ) [inline]

Definition at line 2806 of file SyFi_wrap.cc.

                       :_obj(0)
    {
    }
swig::SwigPtr_PyObject::SwigPtr_PyObject ( const SwigPtr_PyObject item) [inline]

Definition at line 2810 of file SyFi_wrap.cc.

References _obj.

                                                   : _obj(item._obj)
    {
      Py_XINCREF(_obj);      
    }
swig::SwigPtr_PyObject::SwigPtr_PyObject ( PyObject *  obj,
bool  initial_ref = true 
) [inline]

Definition at line 2815 of file SyFi_wrap.cc.

References _obj.

                                                             :_obj(obj)
    {
      if (initial_ref) {
        Py_XINCREF(_obj);
      }
    }
swig::SwigPtr_PyObject::~SwigPtr_PyObject ( ) [inline]

Definition at line 2830 of file SyFi_wrap.cc.

References _obj.

    {
      Py_XDECREF(_obj);
    }

Member Function Documentation

swig::SwigPtr_PyObject::operator PyObject * ( ) const [inline]

Definition at line 2835 of file SyFi_wrap.cc.

References _obj.

    {
      return _obj;
    }
PyObject* swig::SwigPtr_PyObject::operator-> ( ) const [inline]

Definition at line 2840 of file SyFi_wrap.cc.

References _obj.

    {
      return _obj;
    }
SwigPtr_PyObject& swig::SwigPtr_PyObject::operator= ( const SwigPtr_PyObject item) [inline]

Definition at line 2822 of file SyFi_wrap.cc.

References _obj.

    {
      Py_XINCREF(item._obj);
      Py_XDECREF(_obj);
      _obj = item._obj;
      return *this;      
    }

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines