Class Avogadro::Core::AtomTyper#
-
template<typename OutputType>
class AtomTyper# The AtomTyper class provides a base interface for generating a list of type identifiers describing the atoms in a molecule.
Public Types
-
typedef OutputType ValueType#
Public Functions
-
virtual ~AtomTyper()#
-
virtual void run()#
Iterate through the molecule and generate type descriptions for each atom. The results can be obtained by calling types().
-
virtual OutputType atomType(const Atom &atom)#
Perform a type lookup on the specified atom. If run() has been called previously, a cached result is returned.
- Returns:
The type of atom.
-
Array<OutputType> types() const#
Protected Functions
-
virtual void initialize()#
Perform any setup needed that needs to be done prior to calling type(). The base implementation of this function reserves enough room in the m_types Array for the current Molecule.
-
virtual OutputType type(const Atom &atom) = 0#
Determines the type of the atom.
- Parameters:
atom – The atom to type.
- Returns:
The type of atom.
Protected Attributes
-
Array<OutputType> m_types#
The array of types to be populated.
-
typedef OutputType ValueType#