Rosetta
|
Used to define a compound logical statement involving other filters with AND, OR and XOR. More...
#include <BasicFilters.hh>
Public Types | |
typedef std::vector< std::pair< FilterOP, boolean_operations > > | CompoundStatement |
typedef CompoundStatement::iterator | iterator |
typedef CompoundStatement::const_iterator | const_iterator |
Public Member Functions | |
CompoundFilter () | |
~CompoundFilter () override | |
CompoundFilter (CompoundStatement const &) | |
bool | apply (core::pose::Pose const &) const override |
Returns true if the given pose passes the filter, false otherwise. More... | |
FilterOP | clone () const override |
FilterOP | fresh_instance () const override |
void | report (std::ostream &, core::pose::Pose const &) const override |
core::Real | report_sm (core::pose::Pose const &) const override |
used to report filter internals through a score or silent file More... | |
bool | compute (core::pose::Pose const &) const |
void | clear () override |
used to clear internal variables if needed. Using fresh_instance is preferred since it's a pure virtual More... | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
void | set_resid (core::Size const resid) override |
void | set_resid (core::pose::ResidueIndexDescriptionCOP r) override |
void | invert (bool const inv) |
void | set_reset_filters (utility::vector1< FilterOP > const &reset_filters) |
void | reset_filters () |
void | clear_reset_filters () |
void | parse_my_tag (utility::tag::TagCOP, basic::datacache::DataMap &) override |
Called by FilterFactory when constructing new Filter. Takes care of the specific mover's parsing. More... | |
std::string | name () const override |
![]() | |
Filter () | |
Filter (std::string const &) | |
~Filter () override | |
virtual std::string | get_type () const |
std::string | get_user_defined_name () const |
void | set_user_defined_name (std::string const &name) |
virtual core::Real | score (core::pose::Pose &pose) |
virtual void | provide_citation_info (basic::citation_manager::CitationCollectionList &) const |
Provide citations to the passed CitationCollectionList Subclasses should add the info for themselves and any other classes they use. More... | |
![]() | |
ResId ()=default | |
ResId (core::Size const r) | |
virtual | ~ResId ()=default |
virtual core::Size | get_resid (core::pose::Pose const &) const |
bool | modifiable () const |
should another method be able to modify resid_. This is used by modify_ResId_based_object as a test More... | |
void | modifiable (bool const u) |
Static Public Member Functions | |
static std::string | class_name () |
static void | provide_xml_schema (utility::tag::XMLSchemaDefinition &xsd) |
Protected Member Functions | |
bool | compute_subfilter (FilterOP const &filter, core::pose::Pose const &pose) const |
Private Attributes | |
CompoundStatement | compound_statement_ |
bool | invert_ |
utility::vector1< FilterOP > | reset_filters_ |
Additional Inherited Members | |
![]() | |
std::string | scorename_ |
Used to define a compound logical statement involving other filters with AND, OR and XOR.
typedef std::vector< std::pair< FilterOP, boolean_operations > > protocols::filters::CompoundFilter::CompoundStatement |
typedef CompoundStatement::const_iterator protocols::filters::CompoundFilter::const_iterator |
typedef CompoundStatement::iterator protocols::filters::CompoundFilter::iterator |
protocols::filters::CompoundFilter::CompoundFilter | ( | ) |
|
overridedefault |
protocols::filters::CompoundFilter::CompoundFilter | ( | CompoundStatement const & | compound_statement | ) |
|
overridevirtual |
Returns true if the given pose passes the filter, false otherwise.
Implements protocols::filters::Filter.
References compute(), and protocols::filters::TR().
CompoundFilter::iterator protocols::filters::CompoundFilter::begin | ( | ) |
References compound_statement_.
CompoundFilter::const_iterator protocols::filters::CompoundFilter::begin | ( | ) | const |
References compound_statement_.
|
static |
Referenced by protocols::filters::CompoundFilterCreator::keyname().
|
overridevirtual |
used to clear internal variables if needed. Using fresh_instance is preferred since it's a pure virtual
Reimplemented from protocols::filters::Filter.
References compound_statement_.
void protocols::filters::CompoundFilter::clear_reset_filters | ( | ) |
References reset_filters_.
|
overridevirtual |
Implements protocols::filters::Filter.
bool protocols::filters::CompoundFilter::compute | ( | core::pose::Pose const & | pose | ) | const |
References protocols::filters::AND, protocols::filters::ANDNOT, compound_statement_, compute_subfilter(), invert_, protocols::filters::NAND, protocols::filters::NOR, protocols::filters::NOT, protocols::filters::OR, protocols::filters::ORNOT, protocols::filters::TR(), and protocols::filters::XOR.
Referenced by apply(), report(), and report_sm().
|
protected |
We break out the subfilter evaluation into a separate method so that we can have diagnostic output while still preserving the lazy evaluation semantics.
References protocols::filters::TR().
Referenced by compute().
CompoundFilter::iterator protocols::filters::CompoundFilter::end | ( | ) |
References compound_statement_.
CompoundFilter::const_iterator protocols::filters::CompoundFilter::end | ( | ) | const |
References compound_statement_.
|
overridevirtual |
Implements protocols::filters::Filter.
void protocols::filters::CompoundFilter::invert | ( | bool const | inv | ) |
References invert_.
|
overridevirtual |
Reimplemented from protocols::filters::Filter.
References protocols::filters::TrueFilter::class_name().
|
overridevirtual |
Called by FilterFactory when constructing new Filter. Takes care of the specific mover's parsing.
Reimplemented from protocols::filters::Filter.
References protocols::filters::AND, protocols::filters::ANDNOT, compound_statement_, protocols::filters::create_compound_statement_from_logic(), invert_, protocols::filters::NAND, protocols::filters::NOR, protocols::filters::NOT, protocols::filters::OR, protocols::filters::ORNOT, protocols::rosetta_scripts::parse_filter_or_null(), protocols::filters::TR(), and protocols::filters::XOR.
|
static |
|
overridevirtual |
Reimplemented from protocols::filters::Filter.
References compute(), and core::conformation::membrane::out.
|
overridevirtual |
used to report filter internals through a score or silent file
Reimplemented from protocols::filters::Filter.
References compute().
void protocols::filters::CompoundFilter::reset_filters | ( | ) |
References compound_statement_, and reset_filters_.
Referenced by set_reset_filters().
void protocols::filters::CompoundFilter::set_reset_filters | ( | utility::vector1< FilterOP > const & | reset_filters | ) |
References reset_filters(), and reset_filters_.
|
overridevirtual |
call the compound statement's constituent filters' set_resid
Reimplemented from protocols::moves::ResId.
References compound_statement_, and protocols::moves::modify_ResId_based_object().
|
overridevirtual |
call the compound statement's constituent filters' set_resid
Reimplemented from protocols::moves::ResId.
References compound_statement_, and protocols::moves::modify_ResId_based_object().
|
private |
Referenced by begin(), clear(), compute(), end(), parse_my_tag(), reset_filters(), and set_resid().
|
private |
Referenced by compute(), invert(), and parse_my_tag().
|
private |
Referenced by clear_reset_filters(), reset_filters(), and set_reset_filters().