Subsections

 
8.9 OEConfTest

class OEConfTest

OEConfTest is the abstract base class which defined the interface for classes used to determine whether consecutive molecules read from single-conformer file-formats are combined into multi-conformer molecules.

For implementations of OEConfTest see OEAbsCanonicalConfTest, OEAbsoluteConfTest, OEDefaultConfTest and OEIsomericConfTest.

8.9.1 CompareMols

virtual bool CompareMols(const OEMolBase &m1, OEMolBase &m2) const = 0

This is the pure virtual function used to determine if two molecules are conformers of the same multi-conformer molecule. Users inheriting from this class must define this function. Note the molecule which is the second argument is not const. This allows the second molecule to be modified as may be necessary for it to be part of a multi-conformer molecule. It can be assumed that every molecule from an input stream will be used as argument m2 in this function call at least once.

8.9.2 CreateCopy

virtual OEConfTest *CreateCopy() const = 0

This pure virtual copy constructor should return a deep copy of the OEConfTest object. The copy of the object returned is in memory now owned by the user making the function call. Thus if you use this function, you must subsequently call delete on the pointer.