IMP  2.0.1
The Integrative Modeling Platform
IMP::kernel::SingletonModifier Class Referenceabstract

A base class for modifiers of ParticlesTemp. More...

#include <IMP/kernel/SingletonModifier.h>

+ Inheritance diagram for IMP::kernel::SingletonModifier:

Public Types

typedef ParticleArgument
 
typedef ParticleIndex IndexArgument
 

Public Member Functions

 SingletonModifier (std::string name="SingletonModifier %1%")
 
virtual void apply (Particle *) const =0
 
virtual void apply_index (Model *m, ParticleIndex v) const
 
virtual void apply_indexes (Model *m, const ParticleIndexes &o, unsigned int lower_bound, unsigned int upper_bound) const
 
ContainersTemp get_input_containers (Particle *p) const
 
ParticlesTemp get_input_particles (Particle *p) const
 
ModelObjectsTemp get_inputs (Model *m, const ParticleIndexes &pis) const
 
ContainersTemp get_output_containers (Particle *p) const
 
ParticlesTemp get_output_particles (Particle *p) const
 
ModelObjectsTemp get_outputs (Model *m, const ParticleIndexes &pis) 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)
 

Protected Member Functions

virtual ModelObjectsTemp do_get_inputs (Model *m, const ParticleIndexes &pis) const =0
 
virtual ModelObjectsTemp do_get_outputs (Model *m, const ParticleIndexes &pis) const =0
 
- Protected Member Functions inherited from IMP::base::Object
 Object (std::string name)
 Construct an object with the given name. More...
 

Related Functions

(Note that these are not member functions.)

typedef IMP::base::Vector
< IMP::base::WeakPointer
< SingletonModifier > > 
SingletonModifiersTemp
 

Detailed Description

The primary function of such a class is to change the passed particles.

See Also
IMP::SingletonFunctor

Implementors should see IMP_SINGLETON_MODIFIER(). Also see SingletonDerivativeModifier.

Definition at line 33 of file kernel/SingletonModifier.h.

Member Function Documentation

virtual void IMP::kernel::SingletonModifier::apply ( Particle ) const
pure virtual

Apply the function to a single value

virtual void IMP::kernel::SingletonModifier::apply_index ( Model m,
ParticleIndex  v 
) const
virtual

Apply the function to a single value

Definition at line 44 of file kernel/SingletonModifier.h.

virtual void IMP::kernel::SingletonModifier::apply_indexes ( Model m,
const ParticleIndexes o,
unsigned int  lower_bound,
unsigned int  upper_bound 
) const
virtual

Apply the function to a collection of ParticlesTemp If bounds are passed, only apply to ones between the upper and lower bounds.

Definition at line 51 of file kernel/SingletonModifier.h.

virtual ModelObjectsTemp IMP::kernel::SingletonModifier::do_get_inputs ( Model m,
const ParticleIndexes pis 
) const
protectedpure virtual

Override if this reads other objects during evaluate.

virtual ModelObjectsTemp IMP::kernel::SingletonModifier::do_get_outputs ( Model m,
const ParticleIndexes pis 
) const
protectedpure virtual

Override if this reads other objects during evaluate.

ContainersTemp IMP::kernel::SingletonModifier::get_input_containers ( Particle p) const

Get the set of input containers when this modifier is applied to the arguments.

Deprecated:
use get_outputs() instead.
ParticlesTemp IMP::kernel::SingletonModifier::get_input_particles ( Particle p) const

Get the set of particles read when applied to the arguments.

Deprecated:
use get_inputs() instead.
ModelObjectsTemp IMP::kernel::SingletonModifier::get_inputs ( Model m,
const ParticleIndexes pis 
) const

Get all the ModelObject objects that are read when the referenced particles are passed in.

ContainersTemp IMP::kernel::SingletonModifier::get_output_containers ( Particle p) const

Get the set of output containers when this modifier is applied to the arguments.

Deprecated:
use get_outputs() instead.
ParticlesTemp IMP::kernel::SingletonModifier::get_output_particles ( Particle p) const

Get the set of particles read when applied to the arguments.

Deprecated:
use get_outputs() instead.
ModelObjectsTemp IMP::kernel::SingletonModifier::get_outputs ( Model m,
const ParticleIndexes pis 
) const

Get all the ModelObject objects that are read when the referenced particles are passed in.

Friends And Related Function Documentation

Pass a set of objects.

Definition at line 113 of file kernel/base_types.h.


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