Chemical Data Processing Library Python API - Version 1.1.1
|
A datastructure for the storage of imported PDB data records (see [CTFILE]). More...
Classes | |
class | RecordType |
Public Member Functions | |
None | __init__ () |
Initializes the PDBData instance. | |
None | __init__ (PDBData other) |
Initializes a copy of the PDBData instance other. More... | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
int | getNumRecords () |
bool | isEmpty () |
None | clear () |
PDBData | assign (PDBData data) |
Replaces the current state of self with a copy of the state of the PDBData instance data. More... | |
bool | containsRecord (RecordType type) |
str | getData (RecordType type) |
bool | removeRecord (RecordType type) |
None | setRecord (RecordType type, str data) |
object | getRecordTypes () |
object | getRecordData () |
object | getRecords () |
int | __len__ () |
str | __getitem__ (RecordType type) |
None | __setitem__ (RecordType type, str data) |
bool | __delitem__ (RecordType type) |
bool | __contains__ (RecordType type) |
Returns the result of the membership test operation type in self . More... | |
Properties | |
objectID = property(getObjectID) | |
numRecords = property(getNumRecords) | |
recordTypes = property(getRecordTypes) | |
recordData = property(getRecordData) | |
records = property(getRecords) | |
A datastructure for the storage of imported PDB data records (see [CTFILE]).
None CDPL.Biomol.PDBData.__init__ | ( | PDBData | other | ) |
Initializes a copy of the PDBData instance other.
other | The PDBData instance to copy. |
int CDPL.Biomol.PDBData.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python PDBData instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b
thus cannot tell reliably whether the two PDBData instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID()
.
int CDPL.Biomol.PDBData.getNumRecords | ( | ) |
bool CDPL.Biomol.PDBData.isEmpty | ( | ) |
Replaces the current state of self with a copy of the state of the PDBData instance data.
data | The PDBData instance to copy. |
bool CDPL.Biomol.PDBData.containsRecord | ( | RecordType | type | ) |
type |
str CDPL.Biomol.PDBData.getData | ( | RecordType | type | ) |
type |
bool CDPL.Biomol.PDBData.removeRecord | ( | RecordType | type | ) |
type |
None CDPL.Biomol.PDBData.setRecord | ( | RecordType | type, |
str | data | ||
) |
type | |
data |
object CDPL.Biomol.PDBData.getRecordTypes | ( | ) |
object CDPL.Biomol.PDBData.getRecordData | ( | ) |
object CDPL.Biomol.PDBData.getRecords | ( | ) |
int CDPL.Biomol.PDBData.__len__ | ( | ) |
str CDPL.Biomol.PDBData.__getitem__ | ( | RecordType | type | ) |
type |
None CDPL.Biomol.PDBData.__setitem__ | ( | RecordType | type, |
str | data | ||
) |
type | |
data |
bool CDPL.Biomol.PDBData.__delitem__ | ( | RecordType | type | ) |
type |
bool CDPL.Biomol.PDBData.__contains__ | ( | RecordType | type | ) |
Returns the result of the membership test operation type in self
.
type | The value to test for membership. |