The decorator stores an optional list of resdiue indexes.
Public Member Functions | |
Fragment (::IMP::Particle *p) | |
bool | get_contains_residue (int rindex) |
Return true if this fragment contains a given residue. | |
Ints | get_residue_indexes () const |
ResidueIndexIterator | residue_indexes_begin () const |
ResidueIndexIterator | residue_indexes_end () const |
void | set_residue_indexes (Ints o) |
Add the residues whose indexes are listed in the passed vector. | |
Static Public Member Functions | |
static Fragment | decorate_particle (::IMP::Particle *p) |
static bool | particle_is_instance (Particle *p) |
static Fragment | setup_particle (Particle *p, Fragment o) |
Create a domain by copying from o. | |
static Fragment | setup_particle (Particle *p) |
bool IMP::atom::Fragment::get_contains_residue | ( | int | rindex | ) |
Return true if this fragment contains a given residue.
This could be made more efficient.