| Home | Trees | Index | Help | 
      
  | 
  
|---|
| Package mmLib :: Module mmCIF :: Class mmCIFFile | 
  | 
object--+ |list--+ | mmCIFFile
mmCIFDictionary| Method Summary | |
|---|---|
__deepcopy__(self,
          memo)
 | |
Remove a mmCIFData by index or data name.  | |
__eq__(self,
          other)
 | |
__getattr__(self,
          name)
 | |
Retrieve a mmCIFData object by index or name.  | |
__str__(self)
 | |
Append a mmCIFData object.  | |
get(self,
          x,
          default)
 | |
Returns the mmCIFData object with the given name.  | |
has_key(self,
          x)
 | |
insert(self,
          i,
          cdata)
 | |
Load and append the mmCIF data from file object fil into self.  | |
Creates a new mmCIFData object with the given name, adds it to this mmCIFFile, and returns it.  | |
save_file(self,
          fil)
 | |
| Inherited from list | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature  | |
x.__add__(y) <==> x+y  | |
x.__contains__(y) <==> y in x  | |
Use of negative indices is not supported.  | |
x.__ge__(y) <==> x>=y  | |
x.__getattribute__('name') <==> x.name  | |
Use of negative indices is not supported.  | |
x.__gt__(y) <==> x>y  | |
x.__hash__() <==> hash(x)  | |
x.__iadd__(y) <==> x+=y  | |
x.__imul__(y) <==> x*=y  | |
x.__iter__() <==> iter(x)  | |
x.__le__(y) <==> x<=y  | |
x.__len__() <==> len(x)  | |
x.__lt__(y) <==> x<y  | |
x.__mul__(n) <==> x*n  | |
x.__ne__(y) <==> x!=y  | |
T.__new__(S, ...) -> a new object with type S, a subtype of T  | |
x.__repr__() <==> repr(x)  | |
L.__reversed__() -- return a reverse iterator over the list  | |
x.__rmul__(n) <==> n*x  | |
x.__setitem__(i, y) <==> x[i]=y  | |
Use of negative indices is not supported.  | |
L.count(value) -> integer -- return number of occurrences of value  | |
L.extend(iterable) -- extend list by appending elements from the iterable  | |
L.index(value, [start, [stop]]) -> integer -- return first index of value  | |
L.pop([index]) -> item -- remove and return item at index (default last)  | |
L.remove(value) -- remove first occurrence of value  | |
L.reverse() -- reverse *IN PLACE*  | |
L.sort(cmp=None, key=None, reverse=False) -- stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1  | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name  | |
helper for pickle  | |
helper for pickle  | |
x.__setattr__('name', value) <==> x.name = value  | |
| Method Details | 
|---|
  __delitem__(self,
          x)
    
  Remove a mmCIFData by index or data name. Raises IndexError or 
  KeyError if the mmCIFData object is not found, the error raised depends 
  on the argument type.
   | 
  __getitem__(self,
          x)
    
  Retrieve a mmCIFData object by index or name.
   | 
  append(self, cdata)Append a mmCIFData object. This will trigger the removal of any mmCIFData object in the file with the same name.
  | 
  get_data(self, name)Returns the mmCIFData object with the given name. Returns None if no such object exists. | 
  load_file(self, fil)Load and append the mmCIF data from file object fil into self. The fil argument must be a file object or implement its iterface. | 
  new_data(self, name)Creates a new mmCIFData object with the given name, adds it to this mmCIFFile, and returns it. | 
| Home | Trees | Index | Help | 
      
  | 
  
|---|
| Generated by Epydoc 2.1 on Sun Apr 23 22:08:39 2006 | http://epydoc.sf.net |