![]() |
Rosetta Core
2014.16.56682
|
#include <ResfileReader.hh>
Public Member Functions | |
| ResfileContents (pose::Pose const &pose, std::istream &istream) | |
| virtual | ~ResfileContents () |
| std::list< ResfileCommandCOP > const & | default_commands () const |
| bool | specialized_commands_exist_for_residue (Size resid) const |
| std::list< ResfileCommandCOP > const & | commands_for_residue (Size resid) const |
Private Types | |
| enum | residue_identifier_type { SINGLE_RESID =1, RANGE_RESID, CHAIN_RESID } |
Private Member Functions | |
| void | parse_header_line (utility::vector1< std::string > const &tokens, std::map< std::string, ResfileCommandOP > const &command_map, Size const lineno, bool &have_read_start_token) |
| void | parse_body_line (pose::Pose const &pose, utility::vector1< std::string > const &tokens, std::map< std::string, ResfileCommandOP > const &command_map, Size const lineno, utility::vector1< std::list< ResfileCommandOP > > &residue_range_commands, utility::vector1< std::list< ResfileCommandOP > > &residue_chain_commands) |
| void | parse_resid (Size &which_token, utility::vector1< std::string > const &tokens, Size const lineno, int &PDBnum, int &PDBnum_end, char &icode, char &icode_end, char &chain, residue_identifier_type &id_type) const |
| void | parse_PDBnum_icode (std::string const &token, Size const lineno, int &PDBnum, char &icode) const |
| Size | locate_resid (core::pose::Pose const &pose, char const chain, Size const PDBnum, char const icode, Size const lineno) const |
| ResfileCommandOP | locate_command (Size const which_token, utility::vector1< std::string > const &tokens, std::map< std::string, ResfileCommandOP > const &command_map, Size const lineno) const |
Private Attributes | |
| std::list< ResfileCommandCOP > | default_commands_ |
| utility::vector1< std::list < ResfileCommandCOP > > | commands_ |
| core::pack::task::ResfileContents::ResfileContents | ( | pose::Pose const & | pose, |
| std::istream & | istream | ||
| ) |
|
virtual |
| std::list< ResfileCommandCOP > const & core::pack::task::ResfileContents::commands_for_residue | ( | Size | resid | ) | const |
| std::list< ResfileCommandCOP > const & core::pack::task::ResfileContents::default_commands | ( | ) | const |
|
private |
References core::pack::task::get_token(), and core::pack::task::onError().
Referenced by parse_body_line(), and parse_header_line().
|
private |
References core::pack::task::onError(), core::pose::Pose::pdb_info(), and core::pose::Pose::total_residue().
Referenced by parse_body_line().
|
private |
@ details Parse body line in resfile expected formats: <residue identifier>=""> <chain identifier>=""> <commands*> <residue identifier>=""> - <residue identifier>=""> <chain identifier>=""> <commands*>
The here is how a residue specification is resolved if it is specified multiple times:
1) If a residue is specified by multiple commands of the same level (SINGLE, RANGE, or CHAIN), then this is an error 2) If a residue is specified by multiple commands of different levels then the more restricted level takes precidence, SINGLE over RANGE and CHAIN, and RANGE over CHAIN
References chain, CHAIN_RESID, commands_, core::pack::task::comment_begin(), locate_command(), locate_resid(), core::pack::task::onError(), parse_resid(), core::pose::Pose::pdb_info(), RANGE_RESID, runtime_assert, SINGLE_RESID, core::pose::Pose::total_residue(), and utility_exit_with_message.
Referenced by ResfileContents().
|
private |
References core::pack::task::comment_begin(), default_commands_, core::pack::task::get_token(), and locate_command().
Referenced by ResfileContents().
|
private |
References core::pack::task::onError().
Referenced by parse_resid().
|
private |
References CHAIN_RESID, core::chemical::chr_chains(), core::pack::task::get_token(), core::pack::task::onError(), parse_PDBnum_icode(), RANGE_RESID, and SINGLE_RESID.
Referenced by parse_body_line().
|
private |
Referenced by commands_for_residue(), parse_body_line(), ResfileContents(), and specialized_commands_exist_for_residue().
|
private |
Referenced by default_commands(), and parse_header_line().
1.8.7