Package mmLib :: Module mmCIF :: Class mmCIFFile
[hide private]
[frames] | no frames]

Class mmCIFFile

source code

object --+    
         |    
      list --+
             |
            mmCIFFile
Known Subclasses:

Class representing a mmCIF files.

Instance Methods [hide private]
 
__deepcopy__(self, memo) source code
 
__str__(self)
str(x)
source code
 
__eq__(self, other)
x==y
source code
 
__getattr__(self, name) source code
 
__getitem__(self, x)
Retrieve a mmCIFData object by index or name.
source code
 
__delitem__(self, x)
Remove a mmCIFData by index or data name.
source code
 
append(self, cdata)
Append a mmCIFData object.
source code
 
insert(self, i, cdata)
insert object before index
source code
 
has_key(self, x) source code
 
get(self, x, default=None) source code
 
load_file(self, fil)
Load and append the mmCIF data from file object fil into self.
source code
 
save_file(self, fil) source code
 
get_data(self, name)
Returns the mmCIFData object with the given name.
source code
 
new_data(self, name)
Creates a new mmCIFData object with the given name, adds it to this mmCIFFile, and returns it.
source code

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

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__eq__(self, other)
(Equality operator)

source code 

x==y

Overrides: list.__eq__
(inherited documentation)

__getitem__(self, x)
(Indexing operator)

source code 

Retrieve a mmCIFData object by index or name.

Overrides: list.__getitem__

__delitem__(self, x)
(Index deletion operator)

source code 

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.

Overrides: list.__delitem__

append(self, cdata)

source code 

Append a mmCIFData object. This will trigger the removal of any mmCIFData object in the file with the same name.

Overrides: list.append

insert(self, i, cdata)

source code 

insert object before index

Overrides: list.insert
(inherited documentation)

load_file(self, fil)

source code 

Load and append the mmCIF data from file object fil into self. The fil argument must be a file object or implement its iterface.

get_data(self, name)

source code 

Returns the mmCIFData object with the given name. Returns None if no such object exists.