Chemical Data Processing Library Python API - Version 1.2.0
|
Public Member Functions | |
None | __init__ () |
Initializes the FragmentLibrary instance. | |
None | __init__ (FragmentLibrary lib) |
Initializes a copy of the FragmentLibrary instance lib. More... | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
None | addEntries (FragmentLibrary lib) |
bool | addEntry (FragmentLibraryEntry entry) |
bool | removeEntry (int hash_code) |
FragmentLibraryEntry | getEntry (int hash_code) |
bool | containsEntry (int hash_code) |
None | clear () |
int | getNumEntries () |
list | getEntries () |
None | load (Base.IStream is) |
None | loadDefaults () |
None | save (Base.OStream os) |
FragmentLibrary | assign (FragmentLibrary lib) |
Replaces the current state of self with a copy of the state of the FragmentLibrary instance lib. More... | |
Static Public Member Functions | |
None | set (FragmentLibrary lib) |
FragmentLibrary | get () |
Properties | |
objectID = property(getObjectID) | |
numEntries = property(getNumEntries) | |
entries = property(getEntries) | |
None CDPL.ConfGen.FragmentLibrary.__init__ | ( | FragmentLibrary | lib | ) |
Initializes a copy of the FragmentLibrary instance lib.
lib | The FragmentLibrary instance to copy. |
int CDPL.ConfGen.FragmentLibrary.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python FragmentLibrary 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 FragmentLibrary 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.ConfGen.FragmentLibrary.addEntries | ( | FragmentLibrary | lib | ) |
lib |
bool CDPL.ConfGen.FragmentLibrary.addEntry | ( | FragmentLibraryEntry | entry | ) |
entry |
bool CDPL.ConfGen.FragmentLibrary.removeEntry | ( | int | hash_code | ) |
hash_code |
FragmentLibraryEntry CDPL.ConfGen.FragmentLibrary.getEntry | ( | int | hash_code | ) |
hash_code |
bool CDPL.ConfGen.FragmentLibrary.containsEntry | ( | int | hash_code | ) |
hash_code |
int CDPL.ConfGen.FragmentLibrary.getNumEntries | ( | ) |
list CDPL.ConfGen.FragmentLibrary.getEntries | ( | ) |
None CDPL.ConfGen.FragmentLibrary.load | ( | Base.IStream | is | ) |
is |
None CDPL.ConfGen.FragmentLibrary.save | ( | Base.OStream | os | ) |
os |
FragmentLibrary CDPL.ConfGen.FragmentLibrary.assign | ( | FragmentLibrary | lib | ) |
Replaces the current state of self with a copy of the state of the FragmentLibrary instance lib.
lib | The FragmentLibrary instance to copy. |
|
static |
lib |
|
static |
<br> |