This class also serves as an example of how to build restraints which have internal ScoreStates and perhaps more than one actual restraint object.
Public Member Functions | |
DiameterRestraint (UnaryFunction *f, SingletonContainer *sc, Float diameter) | |
Use f to restraint sc to be withing diameter of one another. | |
ContainersTemp | get_input_containers () const |
ParticlesTemp | get_input_particles () const |
ParticlesList | get_interacting_particles () const |
virtual std::string | get_type_name () const |
virtual ::IMP::VersionInfo | get_version_info () const |
void | set_model (Model *m) |
virtual double | unprotected_evaluate (DerivativeAccumulator *accum) const |
Friends | |
template<class T > | |
void | IMP::internal::unref (T *) |
IMP::core::DiameterRestraint::DiameterRestraint | ( | UnaryFunction * | f, | |
SingletonContainer * | sc, | |||
Float | diameter | |||
) |
Use f to restraint sc to be withing diameter of one another.
f should have a minimum at 0 and be an upper bound-style function.