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

The ResidueIndexSelector returns a ResidueSubset, i.e. a utility::vector1< bool > containing 'true' for residue positions which match the given residue index. The index is read as comma-separated list of either Rosetta indices (e.g. 10) or PDB numbers (e.g. 10A, residue 10 of chain A). Detection and mapping from PDB to Rosetta residue numbers is done internally. More...

#include <ResidueIndexSelector.hh>

Public Member Functions

 ResidueIndexSelector ()
 
 ResidueIndexSelector (std::string const &index_str)
 
virtual ~ResidueIndexSelector ()
 
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 &)
 Initialize any data members of this instance from an input tag and a DataMap object. More...
 
virtual std::string get_name () const
 
void set_index (std::string const &index_str)
 sets the string by which residues are selected 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::string index_str_
 

Detailed Description

The ResidueIndexSelector returns a ResidueSubset, i.e. a utility::vector1< bool > containing 'true' for residue positions which match the given residue index. The index is read as comma-separated list of either Rosetta indices (e.g. 10) or PDB numbers (e.g. 10A, residue 10 of chain A). Detection and mapping from PDB to Rosetta residue numbers is done internally.

Constructor & Destructor Documentation

core::pack::task::residue_selector::ResidueIndexSelector::ResidueIndexSelector ( )
core::pack::task::residue_selector::ResidueIndexSelector::ResidueIndexSelector ( std::string const &  index_str)

References index_str_.

core::pack::task::residue_selector::ResidueIndexSelector::~ResidueIndexSelector ( )
virtual

Member Function Documentation

void core::pack::task::residue_selector::ResidueIndexSelector::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 core::pose::get_resnum_list(), index_str_, and core::pose::Pose::total_residue().

std::string core::pack::task::residue_selector::ResidueIndexSelector::class_name ( )
static
std::string core::pack::task::residue_selector::ResidueIndexSelector::get_name ( ) const
virtual
void core::pack::task::residue_selector::ResidueIndexSelector::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 set_index().

void core::pack::task::residue_selector::ResidueIndexSelector::set_index ( std::string const &  index_str)

sets the string by which residues are selected

References index_str_.

Referenced by parse_my_tag().

Member Data Documentation

std::string core::pack::task::residue_selector::ResidueIndexSelector::index_str_
private

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