Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
protocols::frag_picker::quota::QuotaSelector Class Reference

selects a given number of fragments using a quota scheme More...

#include <QuotaSelector.hh>

Inheritance diagram for protocols::frag_picker::quota::QuotaSelector:
Inheritance graph
[legend]
Collaboration diagram for protocols::frag_picker::quota::QuotaSelector:
Collaboration graph
[legend]

Public Member Functions

 QuotaSelector (Size, Size, QuotaCollectorOP)
 Constructor sets the desired number of fragments. More...
 
virtual ~QuotaSelector ()
 
virtual void select_fragments (ScoredCandidatesVector1 const &in, ScoredCandidatesVector1 &out)
 Selects desired number of fragments from a given candidates. More...
 
- Public Member Functions inherited from protocols::frag_picker::FragmentSelectingRule
 FragmentSelectingRule (Size frags_per_pos)
 Constructor sets the desired number of fragments. More...
 
Size frags_per_pos ()
 Says how many fragments will be selected for each position in a query sequence. More...
 
virtual ~FragmentSelectingRule ()
 

Protected Member Functions

Size round (Real x)
 
Size next_from_pool (ScoredCandidatesVector1 const &, Size recently_taken, std::set< Size > &in_use)
 
void push_the_limits (utility::vector1< Size > &q_limits, Size target_total)
 
void push_the_limits_to_the_winner (utility::vector1< Size > &q_limits, Size target_total)
 
void push_the_limits (utility::vector1< Size > &, Size, utility::vector1< Real > &)
 
virtual void select_fragments_200 (ScoredCandidatesVector1 const &in, ScoredCandidatesVector1 &out)
 
virtual void select_fragments_25_200 (ScoredCandidatesVector1 const &in, ScoredCandidatesVector1 &out)
 

Protected Attributes

QuotaCollectorOP collector_
 
Size q_pos_
 

Private Attributes

utility::vector1< std::string > tags_
 
std::map< std::string, Sizetag_map_
 

Detailed Description

selects a given number of fragments using a quota scheme

Constructor & Destructor Documentation

protocols::frag_picker::quota::QuotaSelector::QuotaSelector ( Size  frags_per_pos,
Size  pos_in_query,
QuotaCollectorOP  collector 
)

Constructor sets the desired number of fragments.

References collector_, q_pos_, and protocols::frag_picker::quota::trQuotaSelector().

virtual protocols::frag_picker::quota::QuotaSelector::~QuotaSelector ( )
inlinevirtual

Member Function Documentation

Size protocols::frag_picker::quota::QuotaSelector::next_from_pool ( ScoredCandidatesVector1 const &  pool,
Size  recently_taken,
std::set< Size > &  in_use 
)
protected
void protocols::frag_picker::quota::QuotaSelector::push_the_limits ( utility::vector1< Size > &  q_limits,
Size  target_total 
)
protected
void protocols::frag_picker::quota::QuotaSelector::push_the_limits ( utility::vector1< Size > &  q_limits,
Size  target_total,
utility::vector1< Real > &  q_fractions 
)
protected
void protocols::frag_picker::quota::QuotaSelector::push_the_limits_to_the_winner ( utility::vector1< Size > &  q_limits,
Size  target_total 
)
protected
Size protocols::frag_picker::quota::QuotaSelector::round ( Real  x)
inlineprotected
virtual void protocols::frag_picker::quota::QuotaSelector::select_fragments ( ScoredCandidatesVector1 const &  in,
ScoredCandidatesVector1 out 
)
inlinevirtual

Selects desired number of fragments from a given candidates.

Implements protocols::frag_picker::FragmentSelectingRule.

References select_fragments_25_200().

Referenced by protocols::frag_picker::FragmentPicker::quota_protocol().

void protocols::frag_picker::quota::QuotaSelector::select_fragments_200 ( ScoredCandidatesVector1 const &  in,
ScoredCandidatesVector1 out 
)
protectedvirtual
void protocols::frag_picker::quota::QuotaSelector::select_fragments_25_200 ( ScoredCandidatesVector1 const &  in,
ScoredCandidatesVector1 out 
)
protectedvirtual

Member Data Documentation

QuotaCollectorOP protocols::frag_picker::quota::QuotaSelector::collector_
protected
Size protocols::frag_picker::quota::QuotaSelector::q_pos_
protected
std::map<std::string,Size> protocols::frag_picker::quota::QuotaSelector::tag_map_
private
utility::vector1<std::string> protocols::frag_picker::quota::QuotaSelector::tags_
private

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