![]() |
Chemical Data Processing Library Python API - Version 1.2.3
|
Inheritance diagram for CDPL.Biomol.MMCIFData.Item:Public Member Functions | |
| None | __init__ (str name) |
| Initializes the Item instance. More... | |
| None | __init__ (Item item) |
| Initializes a copy of the Item instance item. More... | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| Item | assign (Item item) |
Replaces the current state of self with a copy of the state of the Item instance item. More... | |
| None | swap (Item cat) |
| None | clear () |
| str | getName () |
| int | getNumValues () |
| str | getValue (int index) |
| None | setValue (int index, str value) |
| None | addValue (str value) |
| None | removeValue (int index) |
| int | __len__ () |
| str | __getitem__ (int index) |
| None | __delitem__ (int index) |
| None | __setitem__ (int index, str value) |
Properties | |
| objectID = property(getObjectID) | |
| numValues = property(getNumValues) | |
| name = property(getName) | |
| None CDPL.Biomol.MMCIFData.Item.__init__ | ( | str | name | ) |
Initializes the Item instance.
| name |
| None CDPL.Biomol.MMCIFData.Item.__init__ | ( | Item | item | ) |
Initializes a copy of the Item instance item.
| item | The Item instance to copy. |
| int CDPL.Biomol.MMCIFData.Item.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python Item 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 Item 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().
Replaces the current state of self with a copy of the state of the Item instance item.
| item | The Item instance to copy. |
| None CDPL.Biomol.MMCIFData.Item.swap | ( | Item | cat | ) |
| cat |
| str CDPL.Biomol.MMCIFData.Item.getName | ( | ) |
| arg1 |
| int CDPL.Biomol.MMCIFData.Item.getNumValues | ( | ) |
| str CDPL.Biomol.MMCIFData.Item.getValue | ( | int | index | ) |
| index |
| None CDPL.Biomol.MMCIFData.Item.setValue | ( | int | index, |
| str | value | ||
| ) |
| index | |
| value |
| None CDPL.Biomol.MMCIFData.Item.addValue | ( | str | value | ) |
| value |
| None CDPL.Biomol.MMCIFData.Item.removeValue | ( | int | index | ) |
| index |
| int CDPL.Biomol.MMCIFData.Item.__len__ | ( | ) |
| str CDPL.Biomol.MMCIFData.Item.__getitem__ | ( | int | index | ) |
| index |
| None CDPL.Biomol.MMCIFData.Item.__delitem__ | ( | int | index | ) |
| index |
| None CDPL.Biomol.MMCIFData.Item.__setitem__ | ( | int | index, |
| str | value | ||
| ) |
| index | |
| value |