Rosetta
|
#include <SequenceNumberResolver.hh>
Public Member Functions | |
SequenceNumberResolver () | |
SequenceNumberResolver (const SequenceNumberResolver &) | |
void | register_label_offset (std::string const &label, core::Size offset) |
core::Size | find_global_pose_number (std::string const &label, core::Size resid) const |
Returns global position of element at position resid in sequence claim with the specified label. More... | |
core::Size | find_global_pose_number (std::pair< std::string, core::Size > pos_pair) const |
core::Size | find_global_pose_number (std::string const &label) const |
Returns global position of first element of sequence claim with the specified label. More... | |
std::string | find_label (core::Size pose_number) const |
Returns label of sequence claim that corresponds to the global sequence position <pose_number> More... | |
core::Size | find_local_pose_number (core::Size pose_number) const |
Returns position of global <pose_number> in corresponding sequence claim. More... | |
core::Size | offset (std::string const &label) const |
Returns offset of a given label. More... | |
std::pair< core::Size, std::string > | terminal_pair () const |
returns the map element with the largest offset = SequenceClaim at the end of the sequence More... | |
Private Types | |
typedef std::map< std::string, core::Size > | OffsetMap |
map sequence labels to offsets More... | |
Private Member Functions | |
std::map< core::Size, std::string >::const_iterator | search_reversed_map (core::Size pose_number) const |
Searches for entry in reversed map with highest offset that is smaller than the given pose_number. This entry contains label and offset corresponding to the given pose_number. More... | |
Private Attributes | |
OffsetMap | offset_map_ |
std::map< core::Size, std::string > | offset_map_reversed_ |
Inverse map, mapping offsets to labels. More... | |
Definition at line 36 of file SequenceNumberResolver.hh.
|
private |
map sequence labels to offsets
Definition at line 70 of file SequenceNumberResolver.hh.
|
inline |
Definition at line 39 of file SequenceNumberResolver.hh.
protocols::topology_broker::SequenceNumberResolver::SequenceNumberResolver | ( | const SequenceNumberResolver & | src | ) |
Definition at line 44 of file SequenceNumberResolver.cc.
References offset_map_, and offset_map_reversed_.
core::Size protocols::topology_broker::SequenceNumberResolver::find_global_pose_number | ( | std::string const & | label, |
core::Size | resid | ||
) | const |
Returns global position of element at position resid in sequence claim with the specified label.
Definition at line 86 of file SequenceNumberResolver.cc.
References offset().
Referenced by protocols::topology_broker::RigidChunkClaimer::allow_claim(), find_global_pose_number(), protocols::topology_broker::BasicJumpClaimer::generate_claims(), protocols::topology_broker::MetalloClaimer::generate_claims(), protocols::topology_broker::FragmentClaimer::get_sequence_region(), and protocols::topology_broker::BasicJumpClaimer::initialize_dofs().
core::Size protocols::topology_broker::SequenceNumberResolver::find_global_pose_number | ( | std::pair< std::string, core::Size > | pos_pair | ) | const |
Definition at line 90 of file SequenceNumberResolver.cc.
References find_global_pose_number().
core::Size protocols::topology_broker::SequenceNumberResolver::find_global_pose_number | ( | std::string const & | label | ) | const |
Returns global position of first element of sequence claim with the specified label.
Definition at line 95 of file SequenceNumberResolver.cc.
References find_global_pose_number().
std::string protocols::topology_broker::SequenceNumberResolver::find_label | ( | core::Size | pose_number | ) | const |
Returns label of sequence claim that corresponds to the global sequence position <pose_number>
Definition at line 99 of file SequenceNumberResolver.cc.
References search_reversed_map().
core::Size protocols::topology_broker::SequenceNumberResolver::find_local_pose_number | ( | core::Size | pose_number | ) | const |
Returns position of global <pose_number> in corresponding sequence claim.
Definition at line 104 of file SequenceNumberResolver.cc.
References search_reversed_map().
core::Size protocols::topology_broker::SequenceNumberResolver::offset | ( | std::string const & | label | ) | const |
Returns offset of a given label.
Definition at line 53 of file SequenceNumberResolver.cc.
References offset_map_, and tr().
Referenced by find_global_pose_number(), protocols::topology_broker::FragmentClaimer::generate_claims(), protocols::topology_broker::FragmentJumpClaimer::generate_claims(), and register_label_offset().
void protocols::topology_broker::SequenceNumberResolver::register_label_offset | ( | std::string const & | label, |
core::Size | offset | ||
) |
EXCN_BadInput | if label or offset is already taken |
Definition at line 68 of file SequenceNumberResolver.cc.
References offset(), offset_map_, and offset_map_reversed_.
|
private |
Searches for entry in reversed map with highest offset that is smaller than the given pose_number. This entry contains label and offset corresponding to the given pose_number.
Definition at line 114 of file SequenceNumberResolver.cc.
References offset_map_reversed_.
Referenced by find_label(), and find_local_pose_number().
std::pair< core::Size, std::string > protocols::topology_broker::SequenceNumberResolver::terminal_pair | ( | ) | const |
returns the map element with the largest offset = SequenceClaim at the end of the sequence
Definition at line 109 of file SequenceNumberResolver.cc.
References offset_map_reversed_.
Referenced by protocols::topology_broker::MetalloClaimer::generate_claims().
|
private |
Definition at line 71 of file SequenceNumberResolver.hh.
Referenced by offset(), register_label_offset(), and SequenceNumberResolver().
|
private |
Inverse map, mapping offsets to labels.
Definition at line 74 of file SequenceNumberResolver.hh.
Referenced by register_label_offset(), search_reversed_map(), SequenceNumberResolver(), and terminal_pair().