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::CompareScoreComponent Class Reference

comparator based on one of the score components calculated for fragments More...

#include <CommonFragmentComparators.hh>

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

Public Member Functions

 CompareScoreComponent (core::Size component_id)
 Sets up the comparator based on a given score component. More...
 
bool operator() (ScoredCandidate first_candidate, ScoredCandidate second_candidate) override
 compares two fragment candidates More...
 

Private Attributes

core::Size component_id_
 

Detailed Description

comparator based on one of the score components calculated for fragments

returns true if first pair has lower score component than the second one

Constructor & Destructor Documentation

protocols::frag_picker::CompareScoreComponent::CompareScoreComponent ( core::Size  component_id)
inline

Sets up the comparator based on a given score component.

References component_id_.

Member Function Documentation

bool protocols::frag_picker::CompareScoreComponent::operator() ( ScoredCandidate  first_candidate,
ScoredCandidate  second_candidate 
)
inlineoverridevirtual

compares two fragment candidates

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

Implements protocols::frag_picker::FragmentComparatorBase.

References component_id_.

Member Data Documentation

core::Size protocols::frag_picker::CompareScoreComponent::component_id_
private

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