OEQMolBase *OENewQMolBase(unsigned int type=OEQMolType::OEDefault)
OEQMolBase *OENewQMolBase(const OEMolBase &mol,
                          unsigned int type=OEQMolType::OEDefault)
OEQMolBase *OENewQMolBase(const OEQMolBase &mol,
                          unsigned int type=OEQMolType::OEDefault)

Allocates an implementation of an OEQMolBase based on the integer ‘type’ argument. The ‘type’ argument specifies the implementation type to be allocated, and should be one of the values listed in OEQMolType. An OEMolBase or OEQMolBase may be passed in order to copy construct the OEQMolBase instance. The pointer to the OEQMolBase memory returned by the function is allocated dynamically. The delete operator must be called for all returned instances to prevent memory leaks.