IMP logo
IMP Reference Guide  develop.63b38c487d,2024/12/21
The Integrative Modeling Platform
functor_linear_distance_pair_scores.h
Go to the documentation of this file.
1 /**
2  * \file functor_linear_distance_pair_scores.h
3  * \brief A Score on the distance between a pair of particles.
4  *
5  * Copyright 2007-2022 IMP Inventors. All rights reserved.
6  */
7 
8 #ifndef IMPNPCTRANSPORT_FUNCTOR_LINEAR_DISTANCE_PAIR_SCORES_H
9 #define IMPNPCTRANSPORT_FUNCTOR_LINEAR_DISTANCE_PAIR_SCORES_H
10 
11 #include "npctransport_config.h"
13 #include <IMP/algebra/utility.h>
18 
19 #include <boost/array.hpp>
20 
21 IMPNPCTRANSPORT_BEGIN_NAMESPACE
22 
23 
24 //! Score a pair of particles
26  : public
27 //#ifndef SWIG
28  IMP::score_functor::DistancePairScore<LinearSoftSphereScore>
29 //#else
30 // IMP::PairScore
31 //#endif
32  {
34 
35  public:
37  std::string name = "LinearSSPairScore%1%")
38  : P(LinearSoftSphereScore(k), name) {}
39  //#ifdef SWIG
41  //#endif
42 };
43 
44 
46 
47 //! Score a pair of particles
49  : public
50 //#ifndef SWIG
51  IMP::score_functor::DistancePairScore<LinearInteractionScore>
52 //#else
53 // IMP::PairScore
54 //#endif
55  {
57 
58  public:
59  FunctorLinearInteractionPairScore(double krep, double attr_range,
60  double kattr,
61  std::string name = "LinearSSPairScore%1%")
62  : P(LinearInteractionScore(LinearInteraction(krep, attr_range, kattr)),
63  name) {}
64  //#ifdef SWIG
66  //#endif
67 };
68 
69 IMPNPCTRANSPORT_END_NAMESPACE
70 
71 #endif /* IMPNPCTRANSPORT_FUNCTOR_LINEAR_DISTANCE_PAIR_SCORES_H */
Various important macros for implementing decorators.
A Score on the distance between a pair of particles.
A Score on the distance between a pair of particles.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
Create efficient distance-based pair scores.
Functions to deal with very common math operations.
A Score on the distance between a pair of particles.
Typedefs for the functor scores on the distance between a pair of particles.