Logo Search packages:      
Sourcecode: cdk version File versions  Download package

boolean org::openscience::cdk::layout::TemplateHandler::haveSameAtoms ( IAtomContainer  atomContainer1,
IAtomContainer  atomContainer2 
) [inline, private]

Returns true if both IAtomContainers have the same number of atoms and all atoms are equal, false otherwise.

Parameters:
atomContainer1an IAtomContainer
atomContainer2another IAtomContainer
Returns:
true if both IAtomContainers have the same number of atoms and all atoms are equal, false otherwise.

Definition at line 335 of file TemplateHandler.java.

References org::openscience::cdk::interfaces::IAtomContainer::atoms(), org::openscience::cdk::interfaces::IAtomContainer::contains(), and org::openscience::cdk::interfaces::IAtomContainer::getAtomCount().

Referenced by getMappedSubstructures().

                                                                                                  {
            if (atomContainer1.getAtomCount() != atomContainer2.getAtomCount())
                  return false;
            for (Iterator<IAtom> iterator = atomContainer1.atoms().iterator(); iterator.hasNext(); )
                  if (!atomContainer2.contains(iterator.next()))
                        return false;
            return true;
      }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index