IMP logo
IMP Reference Guide  2.20.0
The Integrative Modeling Platform
IMP::core::CoinFlipPairPredicate Class Reference

Return true (1) with a fixed probability. More...

#include <IMP/core/pair_predicates.h>

+ Inheritance diagram for IMP::core::CoinFlipPairPredicate:

Detailed Description

Return true (1) with a fixed probability.

Definition at line 159 of file pair_predicates.h.

Public Member Functions

 CoinFlipPairPredicate (double p, std::string name="CoinFlipPairPredicate%1%")
 
virtual ModelObjectsTemp do_get_inputs (Model *, const ParticleIndexes &) const override
 Overload this method to specify the inputs. More...
 
virtual std::string get_type_name () const override
 
int get_value (const ParticlePair &a) const
 
Ints get_value (const ParticlePairsTemp &o) const
 
virtual int get_value_index (Model *, const ParticleIndexPair &) const override
 Compute the predicate and the derivative if needed. More...
 
Ints get_value_index (Model *m, const ParticleIndexPairs &o) const override
 
virtual ::IMP::VersionInfo get_version_info () const override
 Get information about the module and version of the object. More...
 
- Public Member Functions inherited from IMP::PairPredicate
 PairPredicate (std::string name="PairPredicate %1%")
 
virtual int get_value_index_in_batch (Model *m, const ParticleIndexPair &vt) const
 
int operator() (Model *m, const ParticleIndexPair &vt) const
 Enable them to be use as functors. More...
 
virtual void setup_for_get_value_index_in_batch (Model *) const
 
- Public Member Functions inherited from IMP::ParticleInputs
ModelObjectsTemp get_inputs (Model *m, const ParticleIndexes &pis) const
 Get the ModelObjects read when the given list of particles is used. More...
 
- Public Member Functions inherited from IMP::Object
virtual void clear_caches ()
 
CheckLevel get_check_level () const
 
LogLevel get_log_level () const
 
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

- Public Types inherited from IMP::PairPredicate
typedef ParticlePair Argument
 
typedef ParticleIndexPair IndexArgument
 
- Protected Member Functions inherited from IMP::Object
 Object (std::string name)
 Construct an object with the given name. More...
 
virtual void do_destroy ()
 

Member Function Documentation

virtual ModelObjectsTemp IMP::core::CoinFlipPairPredicate::do_get_inputs ( Model m,
const ParticleIndexes pis 
) const
overridevirtual

Overload this method to specify the inputs.

Implements IMP::ParticleInputs.

Definition at line 173 of file pair_predicates.h.

virtual int IMP::core::CoinFlipPairPredicate::get_value_index ( Model m,
const ParticleIndexPair vt 
) const
overridevirtual

Compute the predicate and the derivative if needed.

Implements IMP::PairPredicate.

Definition at line 166 of file pair_predicates.h.

virtual ::IMP::VersionInfo IMP::core::CoinFlipPairPredicate::get_version_info ( ) const
overridevirtual

Get information about the module and version of the object.

Reimplemented from IMP::Object.

Definition at line 178 of file pair_predicates.h.


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