8 #ifndef IMPMISC_LOG_PAIR_SCORE_H
9 #define IMPMISC_LOG_PAIR_SCORE_H
11 #include <IMP/misc/misc_config.h>
14 #include <boost/unordered_map.hpp>
16 IMPMISC_BEGIN_NAMESPACE
22 mutable boost::unordered_map<kernel::ParticlePair, unsigned int> map_;
41 unsigned int>::const_iterator it = map_.begin();
42 it != map_.end(); ++it) {
43 ret.push_back(it->first);
51 return map_.find(pp) != map_.end();
62 if (map_.find(pp) == map_.end()) {
kernel::ParticlePairsTemp get_particle_pairs() const
Get a list of all pairs (without multiplicity)
Class for adding derivatives from restraints to the model.
IMP::base::Vector< IMP::base::WeakPointer< kernel::ModelObject > > ModelObjectsTemp
Particle * get_particle(ParticleIndex p) const
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Track the pairs of particles passed.
#define IMP_PAIR_SCORE_METHODS(Name)
LogPairScore()
create with an empty map
bool get_contains(const kernel::ParticlePair &pp) const
Return true if the pair is in the list.
virtual kernel::ModelObjectsTemp do_get_inputs(kernel::Model *, const kernel::ParticleIndexes &) const
A class to store an fixed array of same-typed values.
Abstract class for scoring object(s) of type ParticlePair.
Import IMP/kernel/PairScore.h in the namespace.
void clear()
Clear the lst of pairs.
double Float
Basic floating-point value (could be float, double...)
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Class for storing model, its restraints, constraints, and particles.
Import IMP/kernel/generic.h in the namespace.