Stores a searchable shared collection of particle_pairs.
Public Member Functions | |
def | __disown__ |
virtual void | apply (const PairModifier *sm, DerivativeAccumulator &da)=0 |
Apply a SingletonModifier to the contents. | |
virtual void | apply (const PairModifier *sm)=0 |
Apply a SingletonModifier to the contents. | |
virtual double | evaluate (const PairScore *s, DerivativeAccumulator *da) const =0 |
Avaluate a score on the contents. | |
virtual bool | get_contains_particle_pair (const ParticlePair &v) const =0 |
virtual unsigned int | get_number_of_particle_pairs () const =0 |
return the number of particle_pairs in the container | |
virtual ParticlePair | get_particle_pair (unsigned int i) const =0 |
ParticlePairsTemp | get_particle_pairs () const |
PairContainer (std::string name="PairContainer %1%") | |
ParticlePairIterator | particle_pairs_begin () const |
begin iterating through the particle_pairs | |
ParticlePairIterator | particle_pairs_end () const |
iterate through the particle_pairs | |
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 PairScore *o, DerivativeAccumulator *da) const =0 |
virtual double | evaluate_prechange (const PairScore *o, DerivativeAccumulator *da) const =0 |
PairContainer * | get_added_pairs_container () const |
PairContainer * | get_removed_pairs_container () const |
Protected Member Functions | |
void | set_added_and_removed_containers (PairContainer *added, PairContainer *removed) |
Friends | |
template<class T > | |
void | IMP::internal::unref (T *) |
virtual double IMP::PairContainer::evaluate_change | ( | const PairScore * | 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::PairContainer::evaluate_prechange | ( | const PairScore * | o, | |
DerivativeAccumulator * | da | |||
) | const [pure virtual] |
Return the score of the last evaluate for the current contents of the container.
virtual bool IMP::PairContainer::get_contains_particle_pair | ( | const ParticlePair & | v | ) | const [pure virtual] |
virtual unsigned int IMP::PairContainer::get_number_of_particle_pairs | ( | ) | const [pure virtual] |
void IMP::PairContainer::set_added_and_removed_containers | ( | PairContainer * | added, | |
PairContainer * | 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 PairContainer.
Containers which are themselves returned by the get_added/removed functions do not have to register such containers.