IMP  2.0.0
The Integrative Modeling Platform
IMP::kernel::TripletModifier Class Referenceabstract

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

#include <IMP/kernel/TripletModifier.h>

+ Inheritance diagram for IMP::kernel::TripletModifier:

Public Types

typedef ParticleTriplet Argument
 
typedef ParticleIndexTriplet IndexArgument
 

Public Member Functions

 TripletModifier (std::string name="TripletModifier %1%")
 
virtual void apply (const ParticleTriplet &) const =0
 
virtual void apply_index (Model *m, const ParticleIndexTriplet &v) const
 
virtual void apply_indexes (Model *m, const ParticleIndexTriplets &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
< TripletModifier > > 
TripletModifiersTemp
 

Detailed Description

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

See Also
IMP::TripletFunctor

Implementors should see IMP_TRIPLET_MODIFIER(). Also see TripletDerivativeModifier.

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

Member Function Documentation

virtual void IMP::kernel::TripletModifier::apply ( const ParticleTriplet ) const
pure virtual

Apply the function to a single value

virtual void IMP::kernel::TripletModifier::apply_index ( Model m,
const ParticleIndexTriplet v 
) const
virtual

Apply the function to a single value

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

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

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

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

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

Override if this reads other objects during evaluate.

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

Override if this reads other objects during evaluate.

ContainersTemp IMP::kernel::TripletModifier::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::TripletModifier::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::TripletModifier::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::TripletModifier::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::TripletModifier::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::TripletModifier::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 117 of file kernel/base_types.h.


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