Rosetta 3.4
Public Types | Public Member Functions
core::pack::task::operation::ReadResfileAndObeyLengthEvents Class Reference

written by flo, feb 2011 class that can apply a resfile to a pose that had its length changed at some point in a protocol. A LengthEventCollector must be set in the pose's observer cache for this to work properly More...

#include <TaskOperations.hh>

Inheritance diagram for core::pack::task::operation::ReadResfileAndObeyLengthEvents:
Inheritance graph
[legend]
Collaboration diagram for core::pack::task::operation::ReadResfileAndObeyLengthEvents:
Collaboration graph
[legend]

List of all members.

Public Types

typedef ReadResfile parent

Public Member Functions

 ReadResfileAndObeyLengthEvents ()
 BEGIN ReadResfileAndObeyLengthEvents.
 ReadResfileAndObeyLengthEvents (std::string const &)
 ~ReadResfileAndObeyLengthEvents ()
virtual TaskOperationOP clone () const
 Create another task operation of the type matching the most-derived version of the class.
void apply (pose::Pose const &pose, PackerTask &ptask)
virtual void parse_tag (TagPtr)
 Used to parse an xml-like tag to load parameters and properties.
std::list< ResfileCommandCOP >
const & 
resfile_commands (Size const resfile_seqpos, ResfileContents const &contents, PackerTask const &ptask) const

Detailed Description

written by flo, feb 2011 class that can apply a resfile to a pose that had its length changed at some point in a protocol. A LengthEventCollector must be set in the pose's observer cache for this to work properly


Member Typedef Documentation


Constructor & Destructor Documentation

core::pack::task::operation::ReadResfileAndObeyLengthEvents::ReadResfileAndObeyLengthEvents ( )

BEGIN ReadResfileAndObeyLengthEvents.

Referenced by clone().

core::pack::task::operation::ReadResfileAndObeyLengthEvents::ReadResfileAndObeyLengthEvents ( std::string const &  filename)
core::pack::task::operation::ReadResfileAndObeyLengthEvents::~ReadResfileAndObeyLengthEvents ( )

Member Function Documentation

void core::pack::task::operation::ReadResfileAndObeyLengthEvents::apply ( pose::Pose const &  pose,
PackerTask ptask 
)

not quite certain on the ideal approach yet. it's prolly best to parse the resfile, and then apply the ResfileCommands to the remapped residues. this necessitates getting the ResfileContents. the code under 2. here is some duplication of ResfileReader::parse_resfile/parse_resfile_string, ideally this and ResfileReader should be refactored a bit

References core::pack::task::operation::ReadResfile::apply(), core::id::combine_sequence_mappings(), core::pack::task::operation::ReadResfile::filename(), core::pose::datacache::CacheableObserverType::LENGTH_EVENT_COLLECTOR, core::pose::Pose::observer_cache(), resfile_commands(), and core::pack::task::PackerTask::total_residue().

Referenced by protocols::enzdes::DetectProteinLigandInterface::apply().

TaskOperationOP core::pack::task::operation::ReadResfileAndObeyLengthEvents::clone ( ) const [virtual]

Create another task operation of the type matching the most-derived version of the class.

Reimplemented from core::pack::task::operation::ReadResfile.

References ReadResfileAndObeyLengthEvents().

void core::pack::task::operation::ReadResfileAndObeyLengthEvents::parse_tag ( TagPtr  tag) [virtual]

Used to parse an xml-like tag to load parameters and properties.

Reimplemented from core::pack::task::operation::ReadResfile.

References core::pack::task::operation::ReadResfile::parse_tag().

std::list< ResfileCommandCOP > const & core::pack::task::operation::ReadResfileAndObeyLengthEvents::resfile_commands ( core::Size const  resfile_seqpos,
ResfileContents const &  contents,
PackerTask const &  ptask 
) const

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines