Inherits from
- common_base_converter: SciPy.weave.c_spec.common_base_converter
Method summary
- __cmp__(self, other)
- __init__(self, class_name = 'undefined', pycobj = 0, runtime_version = None)
- c_to_py_code(self)
- generate_build_info(self)
- init_info(self, runtime = 0)
- py_to_c_code(self)
- type_match(self, value)
- type_spec(self, name, value)
Methods
- __cmp__(self, other)
- __init__(self, class_name = 'undefined', pycobj = 0, runtime_version = None)
Initializes the instance.
Parameters
class_name : string
Name of class, this is set dynamically at build time by the type_spec method.
pycobj : int
If pycobj is 0 then code is generated to deal with string representations of the SWIG wrapped pointer. If it is 1, then code is generated to deal with a PyCObject. If it is 2 then code is generated to deal with with PySwigObject.
runtime_version : int
Specifies the SWIG_RUNTIME_VERSION to use. Defaults to None. In this case the runtime is automatically determined. This option is useful if you want to force the runtime_version to be a specific one and override the auto-detected one.
- c_to_py_code(self)
- generate_build_info(self)
- init_info(self, runtime = 0)
Keyword arguments:
runtime -- If false (default), the user does not need to link to the swig runtime (libswipy). Newer versions of SWIG (>=1.3.23) do not need to build a SWIG runtime library at all. In these versions of SWIG the swig_type_info is stored in a common module. swig_type_info stores the type information and the type converters to cast pointers correctly.
With earlier versions of SWIG (<1.3.22) one has to either link the weave module with a SWIG runtime library (libswigpy) in order to get the swig_type_info. Thus, if runtime is True, the user must link to the swipy runtime library and in this case type checking will be performed. With these versions of SWIG, if runtime is False, no type checking is done.
- py_to_c_code(self)
- type_match(self, value)
This is a generic type matcher for SWIG-1.3 objects. For specific instances, override this method. The method also handles cases where SWIG uses a PyCObject for the this attribute and not a string.
- type_spec(self, name, value)
This returns a generic type converter for SWIG-1.3 objects. For specific instances, override this function if necessary.
