OEMCMolBase *OENewMCMolBase(unsigned int type=OEMCMolType::OEDefault) OEMCMolBase *OENewMCMolBase(const OEMolBase &mol, unsigned int type=OEMCMolType::OEDefault) OEMCMolBase *OENewMCMolBase(const OEMCMolBase &mol, unsigned int type=OEMCMolType::OEDefault)
The OENewMCMolBase
factory methods allocate an implementation
of an OEMCMolBase
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 namespace OEMCMolType
. An
OEMolBase
or OEMCMolBase
may be passed in order to copy
construct the OEMCMolBase
instance. The pointer to the
OEMCMolBase
memory returned by the function is allocated
dynamically. The OEMCMolBase::delete
operator must be called
for all returned instances to prevent memory leaks.