IMP  2.0.1
The Integrative Modeling Platform
IMP::domino::SubsetFilter Class Referenceabstract

#include <IMP/domino/subset_filters.h>

+ Inheritance diagram for IMP::domino::SubsetFilter:

Public Member Functions

 SubsetFilter (std::string name="SubsetFilter%1%")
 
virtual bool get_is_ok (const Assignment &state) const =0
 
virtual int get_next_state (int pos, const Assignment &state) const
 Return a next possible acceptable state for the particle in pos. More...
 
- 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)
 

Related Functions

(Note that these are not member functions.)

typedef IMP::base::Vector
< IMP::base::WeakPointer
< SubsetFilter > > 
SubsetFiltersTemp
 

Additional Inherited Members

- Protected Member Functions inherited from IMP::base::Object
 Object (std::string name)
 Construct an object with the given name. More...
 

Detailed Description

An instance of this type is created by the SubsetFilterTable::get_subset_filter method(). It's job is to reject some of the Assignments correspinding to the Subset it was created with. It has one method of interest, get_is_ok() which true if the state passes the filter.

The passed Assignment has the particles ordered in the same order as they were in the Subset that was passed to the table in order to create the filter.

Definition at line 46 of file subset_filters.h.

Member Function Documentation

virtual bool IMP::domino::SubsetFilter::get_is_ok ( const Assignment state) const
pure virtual

Return true if the given state passes this filter for the Subset it was created with

virtual int IMP::domino::SubsetFilter::get_next_state ( int  pos,
const Assignment state 
) const
virtual

The default implementation returns the current value +1. This method needs to make sure it does not skip any valid states.

The method can assume !get_is_ok(state) and that the state minus pos is ok.

Definition at line 60 of file subset_filters.h.

Friends And Related Function Documentation

Pass a set of objects.

Definition at line 67 of file subset_filters.h.


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