Rosetta 3.4
Public Member Functions
protocols::frag_picker::CompareTotalScore Class Reference

comparator based on the total score of fragments More...

#include <CommonFragmentComparators.hh>

Inheritance diagram for protocols::frag_picker::CompareTotalScore:
Inheritance graph
Collaboration diagram for protocols::frag_picker::CompareTotalScore:
Collaboration graph

List of all members.

Public Member Functions

 CompareTotalScore (scores::FragmentScoreManagerOP scoring)
 Sets up the comparator for a given FragmentScoreManager.
bool operator() (ScoredCandidate first_candidate, ScoredCandidate second_candidate)
 compares two fragment candidates
 ~CompareTotalScore ()

Detailed Description

comparator based on the total score of fragments

Detailed: returns true if first pair has lower total score than the second one

Constructor & Destructor Documentation

protocols::frag_picker::CompareTotalScore::CompareTotalScore ( scores::FragmentScoreManagerOP  scoring) [inline]

Sets up the comparator for a given FragmentScoreManager.

Detailed: Only the scoring manager knows how to calculate the total score
from a vector of small scores (those gathered in a FragmentScoreMap object)
protocols::frag_picker::CompareTotalScore::~CompareTotalScore ( ) [inline]

Member Function Documentation

bool protocols::frag_picker::CompareTotalScore::operator() ( ScoredCandidate  first_candidate,
ScoredCandidate  second_candidate 
) [inline, virtual]

compares two fragment candidates

Detailed: returns true if second pair has greater total score than the first one.
Using this comparator to sort fragment candidates order them descending according to their total score

Implements protocols::frag_picker::FragmentComparatorBase.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines