Stores a searchable shared collection of particle_triplets.
Public Member Functions | |
virtual void | apply (const TripletModifier *sm, DerivativeAccumulator &da)=0 |
Apply a SingletonModifier to the contents. | |
virtual void | apply (const TripletModifier *sm)=0 |
Apply a SingletonModifier to the contents. | |
virtual double | evaluate (const TripletScore *s, DerivativeAccumulator *da) const =0 |
Avaluate a score on the contents. | |
virtual bool | get_contains_particle_triplet (const ParticleTriplet &v) const =0 |
virtual unsigned int | get_number_of_particle_triplets () const =0 |
return the number of particle_triplets in the container | |
virtual ParticleTriplet | get_particle_triplet (unsigned int i) const =0 |
ParticleTripletsTemp | get_particle_triplets () const |
ParticleTripletIterator | particle_triplets_begin () const |
begin iterating through the particle_triplets | |
ParticleTripletIterator | particle_triplets_end () const |
iterate through the particle_triplets | |
TripletContainer (std::string name="TripletContainer %1%") | |
Incremental Scoring | |
When incremental scoring is used, the container keeps track of changes to it since the last Model::evaluate() call.
| |
virtual double | evaluate_change (const TripletScore *o, DerivativeAccumulator *da) const =0 |
virtual double | evaluate_prechange (const TripletScore *o, DerivativeAccumulator *da) const =0 |
TripletContainer * | get_added_triplets_container () const |
TripletContainer * | get_removed_triplets_container () const |
Protected Member Functions | |
void | set_added_and_removed_containers (TripletContainer *added, TripletContainer *removed) |
Friends | |
template<class T > | |
void | IMP::internal::unref (T *) |
virtual double IMP::TripletContainer::evaluate_change | ( | const TripletScore * | o, | |
DerivativeAccumulator * | da | |||
) | const [pure virtual] |
Return the change in score (and derivatives) since the last evaluate of the current contents of the container.
virtual double IMP::TripletContainer::evaluate_prechange | ( | const TripletScore * | o, | |
DerivativeAccumulator * | da | |||
) | const [pure virtual] |
Return the score of the last evaluate for the current contents of the container.
virtual bool IMP::TripletContainer::get_contains_particle_triplet | ( | const ParticleTriplet & | v | ) | const [pure virtual] |
virtual unsigned int IMP::TripletContainer::get_number_of_particle_triplets | ( | ) | const [pure virtual] |
void IMP::TripletContainer::set_added_and_removed_containers | ( | TripletContainer * | added, | |
TripletContainer * | removed | |||
) | [protected] |
Containers must have containers that keep track of the particles which have been added or since the last step. These containers must be registered with the parent TripletContainer.
Containers which are themselves returned by the get_added/removed functions do not have to register such containers.