![]() |
Rosetta Core
2014.16.56682
|
PDBPoseMap can be queried with PDB information (chain, sequence position) and returns a pose's resid position. Useful for handing input/output in terms of PDB positions. Can be tucked into the pose for repeated access, or generated just-in-time for a single use. Basically a wrapper class for std::map. More...
#include <PDBPoseMap.hh>
Classes | |
| struct | ResidueKey |
| sortable residue key internal to PDBPoseMap More... | |
Public Types | |
| typedef core::Size | Size |
Public Member Functions | |
| PDBPoseMap () | |
| default constructor More... | |
| PDBPoseMap (PDBInfo const &info) | |
| PDBInfo constructor. More... | |
| PDBPoseMap (PDBPoseMap const &map) | |
| copy constructor More... | |
| virtual | ~PDBPoseMap () |
| default destructor More... | |
| PDBPoseMap & | operator= (PDBPoseMap const &m) |
| copy assignment More... | |
| Size | size () const |
| number of mappings More... | |
| Size | find (char const chain, int const pdb_res, char const ins_code= ' ') const |
| lookup pose numbering More... | |
| void | insert (char const chain, int const pdb_res, char const ins_code, Size const pose_res) |
| insert pdb -> pose number mapping More... | |
| bool | conditional_erase (char const chain, int const pdb_res, char const ins_code, Size const pose_res) |
| remove mapping for pdb residue key only if Pose residue matches More... | |
| void | erase (char const chain, int const pdb_res, char const ins_code) |
| forcibly remove mapping for pdb residue key More... | |
| void | clear () |
| clear the current mapping data More... | |
| void | fill (PDBInfo const &info) |
| fill with corresponding pdb -> pose residue mapping More... | |
Private Types | |
| typedef utility::pointer::ReferenceCount | Super |
| typedef std::map< ResidueKey, Size > | Pdb2Pose |
Private Attributes | |
| Pdb2Pose | pdb2pose_ |
| maps ResidueKey -> Pose internal numbering More... | |
PDBPoseMap can be queried with PDB information (chain, sequence position) and returns a pose's resid position. Useful for handing input/output in terms of PDB positions. Can be tucked into the pose for repeated access, or generated just-in-time for a single use. Basically a wrapper class for std::map.
|
private |
| core::pose::PDBPoseMap::PDBPoseMap | ( | ) |
default constructor
| core::pose::PDBPoseMap::PDBPoseMap | ( | PDBPoseMap const & | map | ) |
copy constructor
|
virtual |
default destructor
|
inline |
clear the current mapping data
References pdb2pose_.
Referenced by core::pose::PDBInfo::rebuild_pdb2pose().
|
inline |
remove mapping for pdb residue key only if Pose residue matches
| [in] | chain | chain id |
| [in] | pdb_res | pdb residue numbering |
| [in] | ins_code | insertion code, use ' ' if no insertion code |
| [in] | pose_res | the mapped Pose residue |
References pdb2pose_.
Referenced by core::pose::PDBInfo::chain(), core::pose::PDBInfo::icode(), core::pose::PDBInfo::number(), and core::pose::PDBInfo::set_resinfo().
|
inline |
forcibly remove mapping for pdb residue key
| [in] | chain | chain id |
| [in] | pdb_res | pdb residue numbering |
| [in] | ins_code | insertion code, use ' ' if no insertion code |
References pdb2pose_.
Referenced by core::pose::PDBInfo::copy(), and core::pose::PDBInfo::delete_res().
| void core::pose::PDBPoseMap::fill | ( | PDBInfo const & | info | ) |
fill with corresponding pdb -> pose residue mapping
References core::pose::PDBInfo::chain(), core::pose::PDBInfo::icode(), insert(), core::pose::PDBInfo::nres(), and core::pose::PDBInfo::number().
Referenced by PDBPoseMap(), and core::pose::PDBInfo::rebuild_pdb2pose().
|
inline |
lookup pose numbering
| [in] | chain | chain id |
| [in] | pdb_res | pdb residue numbering |
| [in] | ins_code | insertion code |
References pdb2pose_.
Referenced by core::pose::PDBInfo::pdb2pose().
| void core::pose::PDBPoseMap::insert | ( | char const | chain, |
| int const | pdb_res, | ||
| char const | ins_code, | ||
| Size const | pose_res | ||
| ) |
insert pdb -> pose number mapping
| [in] | chain | chain id |
| [in] | pdb_res | pdb residue numbering |
| [in] | ins_code | insertion code, use ' ' if no insertion code |
| [in] | pose_res | pose numbering for residue |
References core::pose::PDBInfo::empty_record(), and pdb2pose_.
Referenced by core::pose::PDBInfo::append_res(), core::pose::PDBInfo::chain(), core::pose::PDBInfo::copy(), core::pose::PDBInfo::delete_res(), fill(), core::pose::PDBInfo::icode(), core::pose::PDBInfo::number(), core::pose::PDBInfo::prepend_res(), and core::pose::PDBInfo::set_resinfo().
| PDBPoseMap & core::pose::PDBPoseMap::operator= | ( | PDBPoseMap const & | m | ) |
copy assignment
References pdb2pose_.
|
private |
maps ResidueKey -> Pose internal numbering
Referenced by clear(), conditional_erase(), erase(), find(), insert(), operator=(), and size().
1.8.7