IMP logo
PairsRestraint.h
Go to the documentation of this file.
1 /**
2  * \file PairsRestraint.h
3  * \brief Apply a PairScore to each Pair in a list.
4  *
5  * This file is generated by a script (core/tools/make-container).
6  * Do not edit directly.
7  *
8  * Copyright 2007-2012 IMP Inventors. All rights reserved.
9  *
10  */
11 
12 #ifndef IMPCONTAINER_PAIRS_RESTRAINT_H
13 #define IMPCONTAINER_PAIRS_RESTRAINT_H
14 
15 #include "container_config.h"
16 
17 #include <IMP/internal/InternalPairsRestraint.h>
18 
19 #include <iostream>
20 
21 IMPCONTAINER_BEGIN_NAMESPACE
22 
23 //! Applies a PairScore to each Pair in a list.
24 /** This restraint stores the used particles in a ParticlePairsTemp.
25  The container used can be set so that the list can be shared
26  with other containers (or a nonbonded list can be used). By default
27  a ListPairContainer is used and the
28  {add_, set_, clear_}particle_pair{s} methodas can be used.
29 
30  Examples using various multiplicity containers:
31  \pythonexample{restrain_in_sphere}
32  \pythonexample{nonbonded_interactions}
33 
34  \see PairRestraint
35  */
36 class IMPCONTAINEREXPORT PairsRestraint :
37 #if defined(SWIG) || defined(IMP_DOXYGEN)
38 public Restraint
39 #else
40 public IMP::internal::InternalPairsRestraint
41 #endif
42 {
43  typedef IMP::internal::InternalPairsRestraint P;
44 public:
45 
46  //! Create the restraint with a shared container
47  /** \param[in] ss The function to apply to each particle.
48  \param[in] pc The container containing the stored particles. This
49  container is not copied.
50  \param[in] name The object name
51  */
54  std::string name="PairsRestraint %1%");
55 
56 #if defined(IMP_DOXYGEN) || defined(SWIG)
58 
59  //! Get the container used to store Particles
60  ParticlePairsTemp get_arguments() const;
61 
62  PairContainer* get_container() const;
63 
64  PairScore* get_score() const;
65 #else
67 #endif
68 };
69 
70 IMP_OBJECTS(PairsRestraint,PairsRestraints);
71 
72 IMPCONTAINER_END_NAMESPACE
73 
74 #endif /* IMPCONTAINER_PAIRS_RESTRAINT_H */

Generated on Tue May 22 2012 23:33:15 for IMP by doxygen 1.8.1