Rosetta Protocols  2014.35
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>

Public Member Functions

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

Private Attributes

Size component_id_
 

Detailed Description

comparator based on one of the score components calculated for fragments

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

Constructor & Destructor Documentation

protocols::frag_picker::CompareScoreComponent::CompareScoreComponent ( 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 
)
inlinevirtual

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 ascending according to their total score

Implements protocols::frag_picker::FragmentComparatorBase.

References component_id_.

Member Data Documentation

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

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