
Public Member Functions | |
| Atom (::IMP::Particle *p) | |
| AtomType | get_atom_type () const |
| Element | get_element () const |
| Particle * | get_particle () const |
| void | set_atom_type (AtomType t) |
| Set the name and corresponding element and mass. | |
The atom index in the input file | |
This index is not necessarily unique over any particular set of atoms and so should never be used as an atom identifier except during I/O. | |
| Int | get_input_index () const |
| void | set_input_index (Int t) |
Static Public Member Functions | |
| static Atom | decorate_particle (::IMP::Particle *p) |
| static bool | particle_is_instance (Particle *p) |
| return true if the particle has the needed attributes | |
| static Atom | setup_particle (Particle *p, Atom o) |
| static Atom | setup_particle (Particle *p, AtomType t) |
Keys | |
These methods provide access to the various keys used to store things in the Atom. These can be used if you want to use an attribute to search a set of particles. | |
| static IntKey | get_atom_type_key () |
| static IntKey | get_element_key () |
| static IntKey | get_input_index_key () |
Create a decorator by copying from o.
Create a decorator with the passed type and coordinates.