Apply a SingletonFunction to a Singleton.
The score state is passed up to two SingletonModifiers, one to apply before evaluation and the other after. The one after should take a DerivativeAccumulator as its last argument for SingletonModifier::apply() and will only be called if the score was computed with derivatives.
Examples: symmetry
Inheritance diagram for IMP::core::SingletonConstraint:Public Member Functions | |
| SingletonConstraint (SingletonModifier *before, SingletonDerivativeModifier *after, Particle *vt, std::string name="SingletonConstraint %1%") | |
| void | set_after_evaluate_modifier (SingletonDerivativeModifier *f) |
| Apply this modifier to all the elements after an evaluate. | |
| void | set_before_evaluate_modifier (SingletonModifier *f) |
| Apply this modifier to all the elements before an evaluate. | |
Public Member Functions inherited from IMP::Constraint | |
| Constraint (Model *m, std::string name="Constraint %1%") | |
Public Member Functions inherited from IMP::ScoreState | |
| ScoreState (Model *m, std::string name="ScoreState %1%") | |
| void | after_evaluate (DerivativeAccumulator *accpt) |
| void | before_evaluate () |
Public Member Functions inherited from IMP::ModelObject | |
| ModelObject (Model *m, std::string name) | |
| ModelObjectsTemp | get_inputs () const |
| Model * | get_model () const |
| ModelObjectsTemp | get_outputs () const |
Public Member Functions inherited from IMP::base::Object | |
| std::size_t | __hash__ () const |
| virtual std::string | get_type_name () const =0 |
| Return a string identifying the type of the object. | |
| virtual IMP::base::VersionInfo | get_version_info () const =0 |
| Get information about the module and version of the object. | |
| void | set_check_level (CheckLevel l) |
| void | set_log_level (LogLevel l) |
| Set the logging level used in this object. | |
| void | set_was_used (bool tf) const |
| void | show (std::ostream &out=std::cout) const |
| const std::string & | get_name () const |
| void | set_name (std::string name) |
Static Public Member Functions | |
| static SingletonConstraint * | get_from (IMP::base::Object *o) |
Protected Member Functions | |
| void | do_update_attributes () |
| void | do_update_derivatives (DerivativeAccumulator *da) |
| virtual ContainersTemp | get_input_containers () const |
| virtual ParticlesTemp | get_input_particles () const |
| virtual ContainersTemp | get_output_containers () const |
| virtual ParticlesTemp | get_output_particles () const |
| IMP::core::SingletonConstraint::SingletonConstraint | ( | SingletonModifier * | before, |
| SingletonDerivativeModifier * | after, | ||
| Particle * | vt, | ||
| std::string | name = "SingletonConstraint %1%" |
||
| ) |
before and after are the modifiers to apply before and after evaluate.
| void IMP::core::SingletonConstraint::set_after_evaluate_modifier | ( | SingletonDerivativeModifier * | f | ) |
Apply this modifier to all the elements after an evaluate.
| void IMP::core::SingletonConstraint::set_before_evaluate_modifier | ( | SingletonModifier * | f | ) |
Apply this modifier to all the elements before an evaluate.