8#ifndef IMPATOM_BOND_PAIR_CONTAINER_H
9#define IMPATOM_BOND_PAIR_CONTAINER_H
11#include <IMP/atom/atom_config.h>
19#include <IMP/internal/container_helpers.h>
22IMPATOM_BEGIN_NAMESPACE
33 virtual std::size_t do_get_contents_hash()
const override {
34 return sc_->get_contents_hash();
39 void apply_generic(F* f)
const {
41 Bond bp(get_model(), pi);
A Modifier on ParticlePairsTemp.
Apply a PairScore to a Pair.
A container for Singletons.
Contains decorators for a bond.
ParticleIndex get_particle_index() const
Returns the particle index decorated by this decorator.
A shared container for Singletons.
A container that returns pairs of the endpoints of the bonds.
virtual ParticleIndexPairs get_range_indexes() const override
BondPairContainer(SingletonContainer *sc)
The container containing the bonds.
virtual ParticleIndexPairs get_indexes() const override
virtual ModelObjectsTemp do_get_inputs() const override
ParticleIndexes get_all_possible_indexes() const override
Get contained particles.
A decorator for wrapping a particle representing a molecular bond.
Bonded get_bonded(unsigned int i) const
Get the atom i of the bond.
Compile-time generic restraint and constraint support.
IMP::Vector< IMP::Pointer< BondPairContainer > > BondPairContainers
IMP::Vector< IMP::Pointer< ModelObject > > ModelObjects
Index< ParticleIndexTag > ParticleIndex
IMP::Vector< ParticleIndexPair, std::allocator< ParticleIndexPair > > ParticleIndexPairs
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
Array< 2, ParticleIndex > ParticleIndexPair
An ordered pair of particles, each identified by its ParticleIndex.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
#define IMP_PAIR_CONTAINER_METHODS(Name)
Temporarily set particle attributes.
A smart pointer to a ref-counted Object that is a class member.