Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
protocols::topology_broker::SequenceNumberResolver Class Reference

#include <SequenceNumberResolver.hh>

Inheritance diagram for protocols::topology_broker::SequenceNumberResolver:
Inheritance graph
[legend]

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...
 

Member Typedef Documentation

map sequence labels to offsets

Constructor & Destructor Documentation

protocols::topology_broker::SequenceNumberResolver::SequenceNumberResolver ( )
inline
protocols::topology_broker::SequenceNumberResolver::SequenceNumberResolver ( const SequenceNumberResolver src)

Member Function Documentation

core::Size protocols::topology_broker::SequenceNumberResolver::find_global_pose_number ( std::string const &  label,
core::Size  resid 
) const
core::Size protocols::topology_broker::SequenceNumberResolver::find_global_pose_number ( std::pair< std::string, core::Size pos_pair) const
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.

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>

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.

References search_reversed_map().

core::Size protocols::topology_broker::SequenceNumberResolver::offset ( std::string const &  label) const
void protocols::topology_broker::SequenceNumberResolver::register_label_offset ( std::string const &  label,
core::Size  offset 
)
Exceptions
EXCN_BadInputif label or offset is already taken

References offset(), offset_map_, and offset_map_reversed_.

std::map< core::Size, std::string >::const_iterator protocols::topology_broker::SequenceNumberResolver::search_reversed_map ( core::Size  pose_number) const
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.

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

References offset_map_reversed_.

Referenced by protocols::topology_broker::MetalloClaimer::generate_claims().

Member Data Documentation

OffsetMap protocols::topology_broker::SequenceNumberResolver::offset_map_
private
std::map< core::Size, std::string > protocols::topology_broker::SequenceNumberResolver::offset_map_reversed_
private

Inverse map, mapping offsets to labels.

Referenced by register_label_offset(), search_reversed_map(), SequenceNumberResolver(), and terminal_pair().


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