![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
Data structure for the storage and lookup of formal charge definitions used by the MMFF94 charge model. More...
Inheritance diagram for CDPL.ForceField.MMFF94FormalAtomChargeDefinitionTable:Classes | |
| class | Entry |
| Data structure for the storage of values associated with a single table entry. More... | |
Public Member Functions | |
| None | __init__ () |
Constructs an empty MMFF94FormalAtomChargeDefinitionTable instance. | |
| None | __init__ (MMFF94FormalAtomChargeDefinitionTable table) |
Initializes a copy of the MMFF94FormalAtomChargeDefinitionTable instance table. More... | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| None | addEntry (str atom_type, int ass_mode, float charge, str type_list) |
| bool | removeEntry (str atom_type) |
| Removes the entry for the symbolic MMFF94 atom type atom_type. More... | |
| Entry | getEntry (str atom_type) |
| Returns the entry for the symbolic MMFF94 atom type atom_type. More... | |
| None | clear () |
| Removes all entries from the table. | |
| int | getNumEntries () |
| Returns the number of entries in the table. More... | |
| list | getEntries () |
| None | load (Base.IStream is) |
| Loads table entries from the input stream is. More... | |
| None | loadDefaults () |
| Loads the built-in default MMFF94 formal charge definitions. | |
| MMFF94FormalAtomChargeDefinitionTable | assign (MMFF94FormalAtomChargeDefinitionTable table) |
Replaces the current state of self with a copy of the state of the MMFF94FormalAtomChargeDefinitionTable instance table. More... | |
Static Public Member Functions | |
| None | set (MMFF94FormalAtomChargeDefinitionTable table) |
| Replaces the process-wide default table by table. More... | |
| MMFF94FormalAtomChargeDefinitionTable | get () |
| Returns the process-wide default table (lazily initialized on first call). More... | |
Properties | |
| objectID = property(getObjectID) | |
| numEntries = property(getNumEntries) | |
| entries = property(getEntries) | |
Data structure for the storage and lookup of formal charge definitions used by the MMFF94 charge model.
Each entry specifies a formal charge plus an assignment-mode flag that controls how the charge is distributed across the atom and its neighbours of selected types.
| None CDPL.ForceField.MMFF94FormalAtomChargeDefinitionTable.__init__ | ( | MMFF94FormalAtomChargeDefinitionTable | table | ) |
Initializes a copy of the MMFF94FormalAtomChargeDefinitionTable instance table.
| table | The MMFF94FormalAtomChargeDefinitionTable instance to copy. |
| int CDPL.ForceField.MMFF94FormalAtomChargeDefinitionTable.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python MMFF94FormalAtomChargeDefinitionTable 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 MMFF94FormalAtomChargeDefinitionTable 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().
| None CDPL.ForceField.MMFF94FormalAtomChargeDefinitionTable.addEntry | ( | str | atom_type, |
| int | ass_mode, | ||
| float | charge, | ||
| str | type_list | ||
| ) |
| atom_type | |
| ass_mode | |
| charge | |
| type_list |
| bool CDPL.ForceField.MMFF94FormalAtomChargeDefinitionTable.removeEntry | ( | str | atom_type | ) |
Removes the entry for the symbolic MMFF94 atom type atom_type.
| atom_type | The symbolic MMFF94 atom type. |
True if a matching entry was removed, and False if no such entry existed. | Entry CDPL.ForceField.MMFF94FormalAtomChargeDefinitionTable.getEntry | ( | str | atom_type | ) |
Returns the entry for the symbolic MMFF94 atom type atom_type.
| atom_type | The symbolic MMFF94 atom type. |
| int CDPL.ForceField.MMFF94FormalAtomChargeDefinitionTable.getNumEntries | ( | ) |
Returns the number of entries in the table.
| list CDPL.ForceField.MMFF94FormalAtomChargeDefinitionTable.getEntries | ( | ) |
| None CDPL.ForceField.MMFF94FormalAtomChargeDefinitionTable.load | ( | Base.IStream | is | ) |
Loads table entries from the input stream is.
| is | The input stream to read from. |
| MMFF94FormalAtomChargeDefinitionTable CDPL.ForceField.MMFF94FormalAtomChargeDefinitionTable.assign | ( | MMFF94FormalAtomChargeDefinitionTable | table | ) |
Replaces the current state of self with a copy of the state of the MMFF94FormalAtomChargeDefinitionTable instance table.
| table | The MMFF94FormalAtomChargeDefinitionTable instance to copy. |
|
static |
Replaces the process-wide default table by table.
| table | The new default table (a nullptr resets to the built-in default). |
|
static |
Returns the process-wide default table (lazily initialized on first call).