9#ifndef IMPATOM_CHARMM_ATOM_H
10#define IMPATOM_CHARMM_ATOM_H
12#include <IMP/atom/atom_config.h>
21IMPATOM_BEGIN_NAMESPACE
24class IMPATOMEXPORT CHARMMAtom :
public Atom {
28 "Particle must already be an Atom particle");
29 m->add_attribute(get_charmm_type_key(), pi, charmm_type);
43 return Atom::get_is_setup(m, pi) &&
44 m->get_has_attribute(get_charmm_type_key(), pi);
Decorator for helping deal with a hierarchy of molecules.
#define IMP_USAGE_CHECK(expr, message)
A runtime test for incorrect usage of a class or method.
Class for storing model, its restraints, constraints, and particles.
static bool get_is_setup(Model *m, ParticleIndex pi)
Return true if the particle is an instance of a CHARMMAtom.
The standard decorator for manipulating molecular structures.
Helper macros for implementing Decorators.
#define IMP_DECORATOR_SETUP_1(Name, FirstArgumentType, first_argument_name)
#define IMP_DECORATOR_GET_SET(name, AttributeKey, Type, ReturnType)
Define methods for getting and setting a particular simple field.
#define IMP_DECORATOR_METHODS(Name, Parent)
Atoms get_charmm_untyped_atoms(Hierarchy hierarchy)
Get all atoms in the Hierarchy that do not have CHARMM types.
void remove_charmm_untyped_atoms(Hierarchy hierarchy)
Remove any atom from the Hierarchy that does not have a CHARMM type.
Index< ParticleIndexTag > ParticleIndex
Key< 2 > StringKey
The type used to identify string attributes in the Particles.
std::string String
Basic string value.