OEAddMols¶
bool OEAddMols(OEMolBase &dst, const OEMolBase &src,
OEAtomBase **amap=(OEAtomBase **) 0,
OEBondBase **bmap=(OEBondBase **) 0)
bool OEAddMols(OEMolBase &dst, const OEMolBase &src,
const char *delim,
OEAtomBase **amap=(OEAtomBase **) 0,
OEBondBase **bmap=(OEBondBase **) 0)
Adds the one molecule to another molecule.
- dst
The destination molecule.
- src
The molecule that will be added to the destination molecule.
- delim
The delimiter used to concatenate the title of the two molecules. The empty string (e.g.
"") is a valid argument, and causes a direct concatenation of the two titles. If(char *)0is passed as the argument, no concatenation of titles occurs. If not specified_character will be used as to concatenate the titles together.- amap
This parameter can be used to obtain mappings between the atoms in the original
srcmolecule and the newly created atoms in thedstmolecule. It is assumed that argument passed toamapis array of atom pointers of at leastsrc.GetMaxAtomIdx()in size.The newly created atom corresponding to a source atom can be obtained by atom index lookup into the
amaparray.- bmap
This parameter can be used to obtain mappings between the bonds in the original
srcmolecule and the newly created bonds in thedstmolecule. It is assumed that argument passed tobmapis array of bond pointers of at leastsrc.GetMaxBondIdx()in size.The newly created atom corresponding to a source atom can be obtained by atom index lookup into the
bmaparray.
Note
OEAddMols will not generate bonds between the
molecules added.
See also
Example program catmols.cpp