IMP  2.0.1
The Integrative Modeling Platform
IMP::core::SingletonConstraint Class Reference

Apply a SingletonFunction to a Singleton. More...

#include <IMP/core/SingletonConstraint.h>

+ Inheritance diagram for IMP::core::SingletonConstraint:

Public Member Functions

 SingletonConstraint (SingletonModifier *before, SingletonDerivativeModifier *after, Particle *vt, std::string name="SingletonConstraint %1%")
 
- Public Member Functions inherited from IMP::kernel::Constraint
 Constraint (Model *m, std::string name="Constraint %1%")
 
virtual void do_after_evaluate (DerivativeAccumulator *da)
 
virtual void do_before_evaluate ()
 
- Public Member Functions inherited from IMP::kernel::ScoreState
 ScoreState (Model *m, std::string name="ScoreState %1%")
 
void after_evaluate (DerivativeAccumulator *accpt)
 Do post evaluation work if needed.
 
void before_evaluate ()
 Force update of the structure.
 
ContainersTemp get_input_containers () const
 
ParticlesTemp get_input_particles () const
 
ContainersTemp get_output_containers () const
 
ParticlesTemp get_output_particles () const
 
- Public Member Functions inherited from IMP::kernel::ModelObject
 ModelObject (Model *m, std::string name)
 
ModelObjectsTemp get_inputs () const
 
ModelObjectsTemps get_interactions () const
 
Modelget_model () const
 
ModelObjectsTemp get_outputs () const
 
- Public Member Functions inherited from IMP::base::Object
virtual void clear_caches ()
 
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. More...
 
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)
 

Protected Member Functions

virtual ModelObjectsTemp do_get_inputs () const
 
virtual ModelObjectsTemp do_get_outputs () const
 
void do_update_attributes ()
 
void do_update_derivatives (DerivativeAccumulator *da)
 

Additional Inherited Members

Detailed Description

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.

See Also
container::SingletonsConstraint

Definition at line 31 of file SingletonConstraint.h.

Constructor & Destructor Documentation

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.

Definition at line 43 of file SingletonConstraint.h.

Member Function Documentation

virtual ModelObjectsTemp IMP::core::SingletonConstraint::do_get_inputs ( ) const
protectedvirtual

Override if this reads other objects during evaluate.

Implements IMP::kernel::ModelObject.

virtual ModelObjectsTemp IMP::core::SingletonConstraint::do_get_outputs ( ) const
protectedvirtual

Override if this writes other objects during evaluate.

Implements IMP::kernel::ModelObject.


The documentation for this class was generated from the following file: