IMP logo
IMP Reference Guide  2.6.0
The Integrative Modeling Platform
ISDRestraint.h
Go to the documentation of this file.
1 /**
2  * \file IMP/isd/ISDRestraint.h
3  *
4  * Copyright 2007-2016 IMP Inventors. All rights reserved.
5  *
6  */
7 
8 #ifndef IMPISD_ISD_RESTRAINT_H
9 #define IMPISD_ISD_RESTRAINT_H
10 
11 #include "isd_config.h"
12 #include <IMP/ScoringFunction.h>
13 #include <IMP/Restraint.h>
14 #include <string>
15 
16 IMPISD_BEGIN_NAMESPACE
17 
18 //! A base class for ISD Restraints.
19 class IMPISDEXPORT ISDRestraint : public Restraint {
20  public:
21  //! Create the restraint.
22  /** Restraints should store the particles they are to act on,
23  preferably in a Singleton or PairContainer as appropriate.
24  */
25  ISDRestraint(Model *m, std::string name);
26 
27  virtual double get_probability() const;
28 
29  virtual double unprotected_evaluate(DerivativeAccumulator *accum) const
31 
33 
35 };
36 
38 
39 IMPISD_END_NAMESPACE
40 
41 #endif /* IMPISD_ISD_RESTRAINT_H */
A base class for ISD Restraints.
Definition: ISDRestraint.h:19
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:72
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
Definition: object_macros.h:42
Represents a scoring function on the model.
Abstract base class for all restraints.
virtual ModelObjectsTemp do_get_inputs() const =0
#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.
A restraint is a term in an IMP ScoringFunction.
Definition: Restraint.h:52