Rosetta Core  2014.16.56682
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
core::pack::task::residue_selector::AndResidueSelector Class Reference

The AndResidueSelector combines the output of multiple ResidueSelectors using AND logic, i.e., only residues selected by ALL contained ResidueSelectors will be selected. ResidueSelecters can be pulled in from a DataMap, from subtags (for ResidueSelectors known to the ResidueSelectorFactory) or programmatically through add_residue_selector. More...

#include <AndResidueSelector.hh>

Public Member Functions

 AndResidueSelector ()
 
 AndResidueSelector (ResidueSelectorCOP selector1, ResidueSelectorCOP selector2)
 
virtual ~AndResidueSelector ()
 
virtual void apply (core::pose::Pose const &pose, ResidueSubset &subset) const
 Make modifications to the subset vector given an input pose. The input ResidueSubset should already be of size pose.total_residue() More...
 
virtual void parse_my_tag (utility::tag::TagCOP tag, basic::datacache::DataMap &datamap)
 Initialize any data members of this instance from an input tag and a DataMap object. More...
 
virtual std::string get_name () const
 
void add_residue_selector (ResidueSelectorCOP selector)
 adds a ResidueSelector More...
 
Size num_selectors () const
 
void apply_and_to_subset (ResidueSubset const &newSubset, ResidueSubset &existingSubset) const
 applies newSubset to existingSubset and thereby modifies the latter More...
 
- Public Member Functions inherited from core::pack::task::residue_selector::ResidueSelector
 ResidueSelector ()
 
virtual ~ResidueSelector ()
 

Static Public Member Functions

static std::string class_name ()
 

Private Attributes

std::list< ResidueSelectorCOPselectors_
 

Detailed Description

The AndResidueSelector combines the output of multiple ResidueSelectors using AND logic, i.e., only residues selected by ALL contained ResidueSelectors will be selected. ResidueSelecters can be pulled in from a DataMap, from subtags (for ResidueSelectors known to the ResidueSelectorFactory) or programmatically through add_residue_selector.

Constructor & Destructor Documentation

core::pack::task::residue_selector::AndResidueSelector::AndResidueSelector ( )
core::pack::task::residue_selector::AndResidueSelector::AndResidueSelector ( ResidueSelectorCOP  selector1,
ResidueSelectorCOP  selector2 
)
core::pack::task::residue_selector::AndResidueSelector::~AndResidueSelector ( )
virtual

Member Function Documentation

void core::pack::task::residue_selector::AndResidueSelector::add_residue_selector ( ResidueSelectorCOP  selector)

adds a ResidueSelector

References selectors_.

Referenced by AndResidueSelector(), and parse_my_tag().

void core::pack::task::residue_selector::AndResidueSelector::apply ( core::pose::Pose const &  pose,
ResidueSubset subset 
) const
virtual

Make modifications to the subset vector given an input pose. The input ResidueSubset should already be of size pose.total_residue()

Implements core::pack::task::residue_selector::ResidueSelector.

References apply_and_to_subset(), num_selectors(), selectors_, and core::pose::Pose::total_residue().

void core::pack::task::residue_selector::AndResidueSelector::apply_and_to_subset ( ResidueSubset const &  newSubset,
ResidueSubset existingSubset 
) const

applies newSubset to existingSubset and thereby modifies the latter

Referenced by apply().

std::string core::pack::task::residue_selector::AndResidueSelector::class_name ( )
static
std::string core::pack::task::residue_selector::AndResidueSelector::get_name ( ) const
virtual
Size core::pack::task::residue_selector::AndResidueSelector::num_selectors ( ) const

References selectors_.

Referenced by apply().

void core::pack::task::residue_selector::AndResidueSelector::parse_my_tag ( utility::tag::TagCOP  tag,
basic::datacache::DataMap datacache 
)
virtual

Initialize any data members of this instance from an input tag and a DataMap object.

Noop implementation in the base class in the case that a derived class has no need to read data from an input tag

Reimplemented from core::pack::task::residue_selector::ResidueSelector.

References add_residue_selector(), basic::datacache::DataMap::get(), core::pack::task::residue_selector::ResidueSelectorFactory::get_instance(), core::pack::task::residue_selector::ResidueSelectorFactory::new_residue_selector(), and utility::string_split().

Member Data Documentation

std::list< ResidueSelectorCOP > core::pack::task::residue_selector::AndResidueSelector::selectors_
private

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