Rosetta
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]

Public Member Functions

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

Protected Member Functions

core::Size round (core::Real x)
 
core::Size next_from_pool (ScoredCandidatesVector1 const &, core::Size recently_taken, std::set< core::Size > &in_use)
 
void push_the_limits (utility::vector1< core::Size > &q_limits, core::Size target_total)
 
void push_the_limits_to_the_winner (utility::vector1< core::Size > &q_limits, core::Size target_total)
 
void push_the_limits (utility::vector1< core::Size > &, core::Size, utility::vector1< core::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_
 
core::Size q_pos_
 

Private Attributes

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

Detailed Description

selects a given number of fragments using a quota scheme

Constructor & Destructor Documentation

◆ QuotaSelector()

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

Constructor sets the desired number of fragments.

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

◆ ~QuotaSelector()

protocols::frag_picker::quota::QuotaSelector::~QuotaSelector ( )
inlineoverride

Member Function Documentation

◆ next_from_pool()

core::Size protocols::frag_picker::quota::QuotaSelector::next_from_pool ( ScoredCandidatesVector1 const &  pool,
core::Size  recently_taken,
std::set< core::Size > &  in_use 
)
protected

◆ push_the_limits() [1/2]

void protocols::frag_picker::quota::QuotaSelector::push_the_limits ( utility::vector1< core::Size > &  q_limits,
core::Size  target_total,
utility::vector1< core::Real > &  q_fractions 
)
protected

◆ push_the_limits() [2/2]

void protocols::frag_picker::quota::QuotaSelector::push_the_limits ( utility::vector1< core::Size > &  q_limits,
core::Size  target_total 
)
protected

◆ push_the_limits_to_the_winner()

void protocols::frag_picker::quota::QuotaSelector::push_the_limits_to_the_winner ( utility::vector1< core::Size > &  q_limits,
core::Size  target_total 
)
protected

◆ round()

core::Size protocols::frag_picker::quota::QuotaSelector::round ( core::Real  x)
inlineprotected

◆ select_fragments()

void protocols::frag_picker::quota::QuotaSelector::select_fragments ( ScoredCandidatesVector1 const &  in,
ScoredCandidatesVector1 out 
)
inlineoverridevirtual

◆ select_fragments_200()

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

◆ select_fragments_25_200()

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

Member Data Documentation

◆ collector_

QuotaCollectorOP protocols::frag_picker::quota::QuotaSelector::collector_
protected

◆ q_pos_

core::Size protocols::frag_picker::quota::QuotaSelector::q_pos_
protected

◆ tag_map_

std::map<std::string,core::Size> protocols::frag_picker::quota::QuotaSelector::tag_map_
private

◆ tags_

utility::vector1<std::string> protocols::frag_picker::quota::QuotaSelector::tags_
private

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