This restraint stores a Particle.

Public Member Functions | |
| ContainersTemp | get_input_containers () const |
| ParticlesTemp | get_input_particles () const |
| ParticlesList | get_interacting_particles () const |
| virtual bool | get_is_incremental () const |
| virtual std::string | get_type_name () const |
| virtual ::IMP::VersionInfo | get_version_info () const |
| SingletonRestraint (SingletonScore *ss, Particle *vt, std::string name="SingletonRestraint %1%") | |
| Create the restraint. | |
| virtual double | unprotected_evaluate (DerivativeAccumulator *accum) const |
| virtual double | unprotected_incremental_evaluate (DerivativeAccumulator *accum) const |
Friends | |
| template<class T > | |
| void | IMP::internal::unref (T *) |
| IMP::core::SingletonRestraint::SingletonRestraint | ( | SingletonScore * | ss, | |
| Particle * | vt, | |||
| std::string | name = "SingletonRestraint %1%" | |||
| ) |
Create the restraint.
This function takes the function to apply to the stored Singleton and the Singleton.