Class Avogadro::Core::NameAtomTyper#

class NameAtomTyper : public AtomTyper<std::string>#

The NameAtomTyper class is a simple implementation of AtomTyper that assigns element names to each atom.

Public Functions

explicit NameAtomTyper(const Molecule *mol = nullptr)#
~NameAtomTyper() override#

Protected Functions

virtual std::string type(const Atom &atom) override#

Determines the type of the atom.

Parameters:

atom – The atom to type.

Returns:

The type of atom.