OENewMCMolBase¶
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)
OEMCMolBase *OENewMCMolBase(const OESystem::OEBase &b,
unsigned int type=OEMCMolType::OEDefault)
The OENewMCMolBase
factory functions 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
OEMCMolType
namespace. 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 delete
operator must be called for all returned instances to prevent memory leaks.