IMP  2.0.0
The Integrative Modeling Platform
ConstantRestraint.h
Go to the documentation of this file.
1 /**
2  * \file IMP/core/ConstantRestraint.h \brief Constant restraint.
3  *
4  * Just return a constant.
5  *
6  * Copyright 2007-2013 IMP Inventors. All rights reserved.
7  *
8  */
9 
10 #ifndef IMPCORE_CONSTANT_RESTRAINT_H
11 #define IMPCORE_CONSTANT_RESTRAINT_H
12 
13 #include <IMP/core/core_config.h>
14 
15 #include <IMP/Restraint.h>
16 #include <IMP/PairScore.h>
17 #include <IMP/restraint_macros.h>
18 
19 IMPCORE_BEGIN_NAMESPACE
20 
21 //! Return a constant value.
22 /** This restraint is mostly for testing, but can also be used to make
23  the total score look nicer.
24  */
25 class IMPCOREEXPORT ConstantRestraint : public Restraint
26 {
27  Float v_;
28 public:
29  //! Add v to the total score.
31 
33 };
34 
35 IMPCORE_END_NAMESPACE
36 
37 #endif /* IMPCORE_CONSTANT_RESTRAINT_H */