CHEM :: Common :: Util :: virtual_oemolistream :: Class virtual_oemolistream
[hide private]
[frames] | no frames]

Class virtual_oemolistream



object --+    
         |    
      list --+
             |
            virtual_oemolistream

Similar to using StringIO to simulate a virtual file object. Use this to simulate a virtual oemolistream object that reads from a string (molstring) instead of from a file.

Since no file names is specified, can't automatically guess the molecule format from the file extension, thus it must be explicitly specified (or assumed to be SMILES).

Instance Methods [hide private]
 
__init__(self, molstring, format=-1)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
GetOEGraphMols(self)
Overridden method to account for special behavior if input is an empty string

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __hash__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variables [hide private]
  emptyStream = False
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, molstring, format=-1)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Returns:
new list

Overrides: list.__init__
(inherited documentation)