IMP  2.0.0
The Integrative Modeling Platform
IMP::container::DistributeSingletonsScoreState Class Reference

Distribute contents of one container into several based on predicates. More...

#include <IMP/container/DistributeSingletonsScoreState.h>

+ Inheritance diagram for IMP::container::DistributeSingletonsScoreState:

Public Member Functions

 DistributeSingletonsScoreState (SingletonContainerAdaptor input, std::string name="DistributeSingletonsScoreState %1%")
 
DynamicListSingletonContaineradd_predicate (SingletonPredicate *predicate, int value)
 
virtual void do_after_evaluate (DerivativeAccumulator *da)
 
virtual void do_before_evaluate ()
 
virtual ModelObjectsTemp do_get_inputs () const
 
virtual ModelObjectsTemp do_get_outputs () const
 
virtual void do_show (std::ostream &out) const
 
- 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)
 

Additional Inherited Members

- Protected Member Functions inherited from IMP::kernel::ScoreState
virtual void do_update_dependencies ()
 

Detailed Description

This ScoreState takes a list of predicates and values. For each tuple in the input container, it is placed in a given output container if the predicate, when applied, has the passed value.

Note
The output containers contents are not necessarily disjoint.

Definition at line 37 of file DistributeSingletonsScoreState.h.

Member Function Documentation

DynamicListSingletonContainer* IMP::container::DistributeSingletonsScoreState::add_predicate ( SingletonPredicate predicate,
int  value 
)

A given tuple will go into the returned container if predicate returns value when applied to it.

Definition at line 52 of file DistributeSingletonsScoreState.h.

virtual ModelObjectsTemp IMP::container::DistributeSingletonsScoreState::do_get_inputs ( ) const
virtual

Override if this reads other objects during evaluate.

Implements IMP::kernel::ModelObject.

virtual ModelObjectsTemp IMP::container::DistributeSingletonsScoreState::do_get_outputs ( ) const
virtual

Override if this writes other objects during evaluate.

Implements IMP::kernel::ModelObject.


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