IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
isd/ISDRestraint.h
Go to the documentation of this file.
1/**
2 * \file IMP/isd/ISDRestraint.h
3 *
4 * Copyright 2007-2022 IMP Inventors. All rights reserved.
5 *
6 */
7
8#ifndef IMPISD_ISD_RESTRAINT_H
9#define IMPISD_ISD_RESTRAINT_H
10
11#include <IMP/isd/isd_config.h>
12#include <IMP/ScoringFunction.h>
13#include <IMP/Restraint.h>
14#include <string>
15
16IMPISD_BEGIN_NAMESPACE
17
18//! A base class for ISD Restraints.
19class 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
30 override;
31
32 virtual ModelObjectsTemp do_get_inputs() const override;
33
35};
36
38
39IMPISD_END_NAMESPACE
40
41#endif /* IMPISD_ISD_RESTRAINT_H */
Abstract base class for all restraints.
Represents a scoring function on the model.
Class for adding derivatives from restraints to the model.
Restraint(Model *m, std::string name)
Create a restraint and register it with the model.
A base class for ISD Restraints.
virtual double unprotected_evaluate(DerivativeAccumulator *accum) const override
Return the unweighted score for the restraint.
ISDRestraint(Model *m, std::string name)
Create the restraint.
virtual ModelObjectsTemp do_get_inputs() const override
IMP::Vector< IMP::Pointer< ISDRestraint > > ISDRestraints
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
Definition base_types.h:122
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.