IMP logo
IMP Reference Guide  2.10.0
The Integrative Modeling Platform
LogWrapper.h
Go to the documentation of this file.
1 /**
2  * \file IMP/isd/LogWrapper.h
3  * \brief Calculate the -Log of a list of restraints.
4  *
5  * Copyright 2007-2018 IMP Inventors. All rights reserved.
6  *
7  */
8 
9 #ifndef IMPISD_LOG_WRAPPER_H
10 #define IMPISD_LOG_WRAPPER_H
11 
12 #include "isd_config.h"
13 #include <IMP/container_macros.h>
14 #include <IMP/RestraintSet.h>
15 
16 IMPISD_BEGIN_NAMESPACE
17 
18 //! Calculate the -Log of a list of restraints.
19 class IMPISDEXPORT LogWrapper : public RestraintSet {
20  void show_it(std::ostream &out) const;
21 
22  public:
23  //! Create an empty set that is registered with the model
24  LogWrapper(Model *m, double weight, const std::string &name = "LogWrapper %1%");
25  //! Create an empty set that is registered with the model
26  LogWrapper(Model *m, const std::string &name = "LogWrapper %1%");
27  //! Create a set that is registered with the model
28  LogWrapper(const RestraintsTemp &rs, double weight,
29  const std::string &name = "LogWrapper %1%");
30 
31  virtual double unprotected_evaluate(
34 
36 
37 };
38 
39 IMPISD_END_NAMESPACE
40 
41 #endif /* IMPISD_LOG_WRAPPER_H */
Used to hold a set of related restraints.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
virtual void do_add_score_and_derivatives(ScoreAccumulator sa) const
A restraint should override this to compute the score and derivatives.
Macros to define containers of objects.
Object used to hold a set of restraints.
Definition: RestraintSet.h:36
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:72
Class for adding up scores during ScoringFunction evaluation.
Calculate the -Log of a list of restraints.
Definition: LogWrapper.h:19
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Class for adding derivatives from restraints to the model.