8 #ifndef IMPEXAMPLE_EXAMPLE_PAIR_SCORE_H 
    9 #define IMPEXAMPLE_EXAMPLE_PAIR_SCORE_H 
   11 #include <IMP/example/example_config.h> 
   17 #include <cereal/access.hpp> 
   19 IMPEXAMPLE_BEGIN_NAMESPACE
 
   42   friend class cereal::access;
 
   43   template<
class Archive> 
void serialize(Archive &ar) {
 
   44     ar(cereal::base_class<PairScore>(
this), x0_, k_);
 
   52 IMPEXAMPLE_END_NAMESPACE
 
Abstract class for scoring object(s) of type ParticleIndexPair. 
 
Macros for various classes. 
 
#define IMP_PAIR_SCORE_METHODS(Name)
 
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object. 
 
Single variable function. 
 
A more IMP-like version of the std::vector. 
 
Class for storing model, its restraints, constraints, and particles. 
 
#define IMP_OBJECT_SERIALIZE_DECL(Name)
Declare methods needed for serialization of Object pointers. 
 
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs. 
 
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers. 
 
A nullptr-initialized pointer to an IMP Object. 
 
Apply a harmonic to the distance between two particles. 
 
virtual double evaluate_index(Model *m, const ParticleIndexPair &vt, DerivativeAccumulator *da) const =0
Compute the score and the derivative if needed. 
 
Class for adding derivatives from restraints to the model.