IMP logo
IMP Reference Guide  2.14.0
The Integrative Modeling Platform
TripletRestraint.h
Go to the documentation of this file.
1 // Autogenerated by ../../../../tmp/nightly-build-16408/imp-2.14.0/tools/build/make_containers.py
2 // from ../../../../tmp/nightly-build-16408/imp-2.14.0/tools/build/container_templates/core/ClassnameRestraint.h
3 // Do not edit - any changes will be lost!
4 
5 /**
6  * \file IMP/core/TripletRestraint.h
7  * \brief Apply a TripletScore to a Triplet.
8  *
9  * Copyright 2007-2020 IMP Inventors. All rights reserved.
10  *
11  */
12 
13 #ifndef IMPCORE_TRIPLET_RESTRAINT_H
14 #define IMPCORE_TRIPLET_RESTRAINT_H
15 
16 #include <IMP/core/core_config.h>
17 
18 #include <IMP/internal/TupleRestraint.h>
19 #include <IMP/TripletScore.h>
20 
21 #include <iostream>
22 
23 IMPCORE_BEGIN_NAMESPACE
24 
25 //! Applies a TripletScore to a Triplet.
26 /** This restraint stores a Triplet.
27  \see TripletRestraint
28  */
30 #if defined(SWIG) || defined(IMP_DOXYGEN)
31  public Restraint
32 #else
33  public IMP::internal::TupleRestraint<TripletScore>
34 #endif
35  {
36  public:
37  //! Create the restraint.
38  /** This function takes the function to apply to the
39  stored Triplet and the Triplet.
40  */
42  std::string name = "TripletRestraint %1%")
43  : IMP::internal::TupleRestraint<TripletScore>(ss, m, vt, name) {
44  }
45 
46 #if defined(SWIG) || defined(IMP_DOXYGEN)
47  protected:
48  double unprotected_evaluate(IMP::DerivativeAccumulator *accum) const;
49  IMP::ModelObjectsTemp do_get_inputs() const;
51 #endif
52 };
53 
54 IMPCORE_END_NAMESPACE
55 
56 #endif /* IMPCORE_TRIPLET_RESTRAINT_H */
A class to store an fixed array of same-typed values.
Definition: Array.h:33
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
A more IMP-like version of the std::vector.
Definition: Vector.h:39
TripletRestraint(Model *m, TripletScore *ss, const ParticleIndexTriplet &vt, std::string name="TripletRestraint %1%")
Create the restraint.
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:72
Applies a TripletScore to a Triplet.
Define TripletScore.
Abstract class for scoring object(s) of type ParticleIndexTriplet.
Definition: TripletScore.h:37
Class for adding derivatives from restraints to the model.
A restraint is a term in an IMP ScoringFunction.
Definition: Restraint.h:54