13 #ifndef IMPCONTAINER_PREDICATE_QUADS_RESTRAINT_H
14 #define IMPCONTAINER_PREDICATE_QUADS_RESTRAINT_H
16 #include <IMP/container/container_config.h>
17 #include <boost/unordered_map.hpp>
23 IMPCONTAINER_BEGIN_NAMESPACE
37 mutable boost::unordered_map<int, ParticleIndexQuads> lists_;
38 boost::unordered_map<int, PointerMember<QuadScore> > scores_;
39 mutable std::size_t input_version_;
40 bool error_on_unknown_;
41 void update_lists_if_necessary()
const;
47 "PredicateQuadsRestraint %1%");
51 void set_score(
int predicate_value,
QuadScore *score);
64 return lists_.find(predicate_value)->second;
74 Restraints do_create_current_decomposition() const;
77 IMPCONTAINER_END_NAMESPACE
Abstract predicate function.
Various important functionality for implementing decorators.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
virtual void do_add_score_and_derivatives(ScoreAccumulator sa) const
A restraint should override this to compute the score and derivatives.
Applies a QuadScore to each Quad in a list based on a predicate.
void set_is_complete(bool tf)
Abstract class for scoring object(s) of type ParticleIndexQuad.
A smart pointer to a ref-counted Object that is a class member.
Class for adding up scores during ScoringFunction evaluation.
ParticleIndexQuads get_indexes(int predicate_value) const
virtual ModelObjectsTemp do_get_inputs() const =0
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
A restraint is a term in an IMP ScoringFunction.