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

Keeps all fragments candidates for the final selection. More...

#include <GrabAllCollector.hh>

Inheritance diagram for protocols::frag_picker::GrabAllCollector:
Inheritance graph
[legend]

Public Member Functions

 GrabAllCollector (core::Size query_size)
 create a collector for a given size of a query sequence More...
 
bool add (ScoredCandidate new_canditate) override
 Insert a fragment candidate to the container. More...
 
void clear () override
 removes all candidates from the container More...
 
void print_report (std::ostream &output, scores::FragmentScoreManagerOP) const override
 prints how many fragments have been collected for each position More...
 
core::Size count_candidates (core::Size seq_pos) const override
 Check how many candidates have been already collected for a given position. More...
 
core::Size count_candidates () const override
 Check how many candidates have been already collected for all positions. More...
 
core::Size query_length () const override
 Check the size of query sequence that this object knows. This is mainly to be able to check if it is the same as in the other parts of fragment picking machinery. More...
 
void insert (core::Size pos, CandidatesCollectorOP collector) override
 Inserts candidates from another Collector for a give position in the query. More...
 
ScoredCandidatesVector1get_candidates (core::Size position_in_query) override
 returns all stored fragment candidates that begins at a given position in a query More...
 

Private Attributes

utility::vector1
< ScoredCandidatesVector1
storage_
 

Detailed Description

Keeps all fragments candidates for the final selection.

The purpose of a collector is to keep fragment candidates to the end of vall processing. This simple implementation keeps all candidates which might use huge memory

Constructor & Destructor Documentation

protocols::frag_picker::GrabAllCollector::GrabAllCollector ( core::Size  query_size)
inline

create a collector for a given size of a query sequence

References core::scoring::pair, and storage_.

Member Function Documentation

bool protocols::frag_picker::GrabAllCollector::add ( ScoredCandidate  new_canditate)
inlineoverridevirtual

Insert a fragment candidate to the container.

Implements protocols::frag_picker::CandidatesCollector.

References storage_.

void protocols::frag_picker::GrabAllCollector::clear ( )
inlineoverridevirtual

removes all candidates from the container

Implements protocols::frag_picker::CandidatesCollector.

References storage_.

core::Size protocols::frag_picker::GrabAllCollector::count_candidates ( core::Size  seq_pos) const
inlineoverridevirtual

Check how many candidates have been already collected for a given position.

Implements protocols::frag_picker::CandidatesCollector.

References storage_.

core::Size protocols::frag_picker::GrabAllCollector::count_candidates ( ) const
inlineoverridevirtual

Check how many candidates have been already collected for all positions.

Implements protocols::frag_picker::CandidatesCollector.

References storage_.

ScoredCandidatesVector1& protocols::frag_picker::GrabAllCollector::get_candidates ( core::Size  position_in_query)
inlineoverridevirtual

returns all stored fragment candidates that begins at a given position in a query

Implements protocols::frag_picker::CandidatesCollector.

References storage_.

void protocols::frag_picker::GrabAllCollector::insert ( core::Size  pos,
CandidatesCollectorOP  collector 
)
inlineoverridevirtual

Inserts candidates from another Collector for a give position in the query.

Implements protocols::frag_picker::CandidatesCollector.

References core::pack::dunbrack::c, and storage_.

void protocols::frag_picker::GrabAllCollector::print_report ( std::ostream &  output,
scores::FragmentScoreManagerOP   
) const
inlineoverridevirtual

prints how many fragments have been collected for each position

Implements protocols::frag_picker::CandidatesCollector.

References core::chemical::element::I, and storage_.

core::Size protocols::frag_picker::GrabAllCollector::query_length ( ) const
inlineoverridevirtual

Check the size of query sequence that this object knows. This is mainly to be able to check if it is the same as in the other parts of fragment picking machinery.

Implements protocols::frag_picker::CandidatesCollector.

References storage_.

Member Data Documentation

utility::vector1< ScoredCandidatesVector1 > protocols::frag_picker::GrabAllCollector::storage_
private

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