3.24.19 NewAtom

virtual OEAtomBase *NewAtom(unsigned int elemno)
virtual OEAtomBase *NewAtom(const OEAtomBase &src)

Create a new atom. In the first form, the elemno argument specifies the atomic number of the atom to be created, and returns a pointer to the newly created atom. The second form, creates a new atom copying its atomic properties (atomic number, formal charge, implicit hydrogen count, etc...) from the specified atom. This method does not create any bonds, and the returned atom is always disconnected.