Stores a set of PairContainers.
The input sets must be disjoint. This can change if there is demand for it.
- Note:
- The maintenance of the invariant is done by an associated IMP::Constraint. As a result, the state is only guaranteed to be correct either during model evaluation, or immediately following model evaluation before any particles have been changed.
Public Member Functions |
| | PairContainerSet (Model *m, std::string name="PairContainerSet %1%") |
| | Construct and empty set.
|
|
| PairContainerSet (const PairContainersTemp &pc, std::string name="PairContainerSet %1%") |
| void | apply (const PairModifier *sm) const |
| | Apply a SingletonModifier to the contents.
|
| void | apply (const PairDerivativeModifier *sm, DerivativeAccumulator &da) const |
| | Apply a SingletonModifier to the contents.
|
| double | evaluate (const PairScore *s, DerivativeAccumulator *da) const |
| | Evaluate a score on the contents.
|
| double | evaluate_if_good (const PairScore *s, DerivativeAccumulator *da, double max) const |
| | Evaluate a score on the contents.
|
| ParticlesTemp | get_all_possible_particles () const |
| | Get contained particles.
|
| bool | get_contains_particle_pair (const ParticlePair &) const |
| bool | get_is_changed () const |
|
template<class SM > |
| void | template_apply (const SM *sm, DerivativeAccumulator &da) const |
|
template<class SM > |
| void | template_apply (const SM *sm) const |
|
template<class SS > |
| double | template_evaluate (const SS *s, DerivativeAccumulator *da) const |
|
template<class SS > |
| double | template_evaluate_if_good (const SS *s, DerivativeAccumulator *da, double max) const |
| virtual unsigned int | get_number_of_particle_pairs () const |
| | return the number of Pairs in the container
|
|
virtual ParticlePair | get_particle_pair (unsigned int i) const |
|
ParticlePairsTemp | get_particle_pairs () const |
| virtual void | do_after_evaluate (DerivativeAccumulator *accpt) |
| | Reset changed status.
|
| virtual ParticlesTemp | get_input_particles () const |
| | Return get_all_possible_particles()
|
| virtual bool | get_is_decomposable () const |
| virtual ContainersTemp | get_output_containers () const |
| | Containers don't have output.
|
| virtual ParticlesTemp | get_output_particles () const |
| | Containers don't have output.
|
|
| Constraint (Model *m, std::string name="Constraint %1%") |
|
| ScoreState (Model *m, std::string name="ScoreState %1%") |
|
void | after_evaluate (DerivativeAccumulator *accpt) |
|
void | before_evaluate () |
|
virtual ContainersTemp | get_input_containers () const =0 |
|
| ModelObject (Model *m, std::string name) |
|
ModelObjectsTemp | get_inputs () const |
|
Model * | get_model () const |
|
ModelObjectsTemp | get_outputs () const |
|
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) |
Methods to control the nested container |
This container merges a set of nested containers. To add or remove nested containers, use the methods below.
|
|
void | remove_pair_container (PairContainer *d) |
|
template<class F > |
| void | remove_pair_containers_if (const F &f) |
|
template<class List > |
| void | remove_pair_containers (List d) |
|
template<class List > |
| void | set_pair_containers (List ps) |
|
template<class List > |
| void | set_pair_containers_order (List ps) |
|
unsigned int | add_pair_container (PairContainer *obj) |
|
template<class List > |
| void | add_pair_containers (List objs) |
|
void | clear_pair_containers () |
|
unsigned int | get_number_of_pair_containers () const |
|
bool | get_has_pair_containers () const |
|
PairContainer * | get_pair_container (unsigned int i) const |
|
PairContainers | get_pair_containers () const |
|
void | reserve_pair_containers (unsigned int sz) |
|
PairContainerIterator | pair_containers_begin () |
|
PairContainerIterator | pair_containers_end () |
|
PairContainerConstIterator | pair_containers_begin () const |
|
PairContainerConstIterator | pair_containers_end () const |