This container is for implementing connectivity when
The contents of this container are a set of pairs defining a tree over the spheres in the supplied SingletonContainer. This set of edges has the property that
It is significantly more efficient than the ConnectivityRestraint but less flexible.
Public Member Functions | |
void | apply (const PairModifier *sm, DerivativeAccumulator &da) |
void | apply (const PairModifier *sm) |
ConnectingPairContainer (SingletonContainer *sc, double error, bool mst) | |
double | evaluate (const PairScore *s, DerivativeAccumulator *da) const |
double | evaluate_change (const PairScore *s, DerivativeAccumulator *da) const |
double | evaluate_prechange (const PairScore *s, DerivativeAccumulator *da) const |
ParticlesTemp | get_contained_particles () const |
bool | get_contained_particles_changed () const |
bool | get_contains_particle_pair (const ParticlePair &p) const |
ContainersTemp | get_input_containers () const |
unsigned int | get_number_of_particle_pairs () const |
ParticlePair | get_particle_pair (unsigned int i) const |
virtual std::string | get_type_name () const |
virtual ::IMP::VersionInfo | get_version_info () const |
Friends | |
template<class T > | |
void | IMP::internal::unref (T *) |
IMP::core::ConnectingPairContainer::ConnectingPairContainer | ( | SingletonContainer * | sc, | |
double | error, | |||
bool | mst | |||
) |
For efficiency, the set of edges is only updated occasionally. The error parameter determines how far particles need to move before the set of edges is updated.