IMP logo

IMP::core::TripletConstraint Class Reference


Detailed Description

Apply a TripletFunction to a Triplet.

The score state is passed up to two TripletModifiers, one to apply before evaluation and the other after. The one after should take a DerivativeAccumulator as its last argument for TripletModifier::apply() and will only be called if the score was computed with derivatives.

See also:
TripletsConstraint
Inheritance diagram for IMP::core::TripletConstraint:

Inheritance graph
[legend]

Public Member Functions

virtual std::string get_type_name () const
virtual ::IMP::VersionInfo get_version_info () const
void set_after_evaluate_modifier (TripletModifier *f)
 Apply this modifier to all the elements after an evaluate.
void set_before_evaluate_modifier (TripletModifier *f)
 Apply this modifier to all the elements before an evaluate.
 TripletConstraint (TripletModifier *before, TripletModifier *after, const ParticleTriplet &vt, std::string name="TripletConstraint %1%")

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 ParticlesList get_interacting_particles () const
virtual ContainersTemp get_output_containers () const
virtual ParticlesTemp get_output_particles () const

Friends

template<class T >
void IMP::internal::unref (T *)

Constructor & Destructor Documentation

IMP::core::TripletConstraint::TripletConstraint ( TripletModifier before,
TripletModifier after,
const ParticleTriplet &  vt,
std::string  name = "TripletConstraint %1%" 
)

before and after are the modifiers to apply before and after evaluate.


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

Generated on Mon Mar 8 23:08:58 2010 for IMP by doxygen 1.5.8