omde.converter
index
/usr/local/lib/python2.1/site-packages/omde/converter.py

Converter base classes.
 
Concepts and code borrowed from Erasmus Zipfel.

 
Classes
            
omde.functional.Generator
Converter
Thru

 
class Converter(omde.functional.Generator)
      Base class for all OMDE converters.
 
Converters supports two semantics: procedural and
functional conversion.
 
  
__add__(self, object) from omde.functional.Generator
__call__(self) from omde.functional.Generator
__div__(self, object) from omde.functional.Generator
__init__(self, input=None)
__mul__(self, object) from omde.functional.Generator
__radd__(self, object) from omde.functional.Generator
__rdiv__(self, object) from omde.functional.Generator
__rmul__(self, object) from omde.functional.Generator
__rsub__(self, object) from omde.functional.Generator
__sub__(self, object) from omde.functional.Generator
_call1(self, object)
Version of __call__ for procedural conversion only.
_call2(self, *args)
Version of __call__ for both procedural and functional conversion.
convert(self, object)
Pure virtual method implementing the real conversion.

 
class Thru(Converter)
      Trivial converter.
 
This converter returns its input.
 
  
__add__(self, object) from omde.functional.Generator
__call__(self) from omde.functional.Generator
__div__(self, object) from omde.functional.Generator
__init__(self, input=None)
Return an instance of Thru.
__mul__(self, object) from omde.functional.Generator
__radd__(self, object) from omde.functional.Generator
__rdiv__(self, object) from omde.functional.Generator
__rmul__(self, object) from omde.functional.Generator
__rsub__(self, object) from omde.functional.Generator
__sub__(self, object) from omde.functional.Generator
_call1(self, object) from Converter
_call2(self, *args) from Converter
convert(self, object)
Implementation of the Thru converter.
 
Returns its argument.

 
Data
             __file__ = '/usr/local/lib/python2.1/site-packages/omde/converter.pyc'
__name__ = 'omde.converter'